Skip to content

Sample code to update k8s cluster resources through nodejs

License

Notifications You must be signed in to change notification settings

nomulex/horti-kubectl-example

Repository files navigation

CHT Sample Horti update

  1. Create cluster k3d cluster create horti-test

  2. Set Context

kubectl config use-context k3d-horti-test

  1. create namespace kubectl create namespace cht

  2. Create service account kubectl -n cht create serviceaccount cht-horticulturalist

  3. Get the token name kubectl -n cht get serviceaccount/cht-horticulturalist -o yaml

  4. Get token content kubectl -n cht get secrets cht-horticulturalist-token-nsmsm -o yaml

  5. Get kubeconfig structure kubectl config view -o yaml

  6. Create you kubeconfig similar to horti-kubeconfig.yml N.B you url ports will definately be different.

About

Sample code to update k8s cluster resources through nodejs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published