Skip to content

Instantly create, update and remove Kubernetes namespaces with Serverless Components.

Notifications You must be signed in to change notification settings

serverless-components/kubernetes-namespace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

13ba511 · Apr 3, 2020

History

12 Commits
Apr 1, 2020
Oct 24, 2019
Oct 24, 2019
Mar 31, 2020
Oct 24, 2019
Oct 24, 2019
Mar 31, 2020
Apr 3, 2020
Oct 24, 2019
Mar 20, 2020

Repository files navigation

kubernetes-namespace

Instantly create, update and remove Kubernetes namespaces with Serverless Components.

 

  1. Install
  2. Create
  3. Configure
  4. Deploy

 

1. Install

$ npm install -g serverless

2. Create

Just create a serverless.yml file

$ touch serverless.yml

Then create a .env file

$ touch .env

Update the .env file with information about your Kubernetes setup

# .env
KUBERNETES_ENDPOINT=https://cluster.example.com
KUBERNETES_PORT=6443
KUBERNETES_SERVICE_ACCOUNT_TOKEN=xxxx
KUBERNETES_SKIP_TLS_VERIFY=false

3. Configure

# serverless.yml
org: acme
app: todo
name: todo-kubernetes-namespace

component: kubernetes-namespace@dev

inputs:
  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.

Releases

No releases published

Packages

No packages published