@serverless/kubernetes-namespace
v0.2.0
Published
Instantly create, update and remove Kubernetes namespaces with [Serverless Components](https://github.com/serverless/components).
Downloads
20
Readme
kubernetes-namespace
Instantly create, update and remove Kubernetes namespaces with Serverless Components.
1. Install
$ npm install -g serverless
2. Create
Just create a serverless.yml
file
$ touch serverless.yml
Make sure that you have generated your Kubeconfig
file via kubectl
.
3. Configure
# serverless.yml
myKubernetesNamespace:
component: '@serverless/kubernetes-namespace'
inputs:
kubeConfigPath: ../kubeconfig # default is `~/.kube/config`
name: 'default' # default is `'default'`
labels: # default is `null`
foo: bar
baz: qux
4. Deploy
$ serverless
New to Components?
Checkout the Serverless Components repo for more information.