Skip to content

Latest commit

 

History

History
69 lines (48 loc) · 1.07 KB

README.md

File metadata and controls

69 lines (48 loc) · 1.07 KB

kubernetes-pvc

Instantly create, update and remove Kubernetes PersistenVolumeClaims 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-pvc

component: kubernetes-pvc@dev

inputs:
  namespace: 'default' # default is `'default'`
  name: my-pvc
  spec:
    # ...

4. Deploy

$ serverless

New to Components?

Checkout the Serverless Components repo for more information.