Instantly create, update and remove Kubernetes PersistenVolumeClaims with Serverless Components.
$ npm install -g serverlessJust create a serverless.yml file
$ touch serverless.ymlThen create a .env file
$ touch .envUpdate 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
# serverless.yml org: acme app: todo name: todo-kubernetes-pvc component: kubernetes-pvc@dev inputs: namespace: 'default' # default is `'default'` name: my-pvc spec: # ...
$ serverlessCheckout the Serverless Components repo for more information.