-
Create cluster
k3d cluster create horti-test
-
Set Context
kubectl config use-context k3d-horti-test
-
create namespace
kubectl create namespace cht
-
Create service account
kubectl -n cht create serviceaccount cht-horticulturalist
-
Get the token name
kubectl -n cht get serviceaccount/cht-horticulturalist -o yaml
-
Get token content
kubectl -n cht get secrets cht-horticulturalist-token-nsmsm -o yaml
-
Get kubeconfig structure
kubectl config view -o yaml
-
Create you kubeconfig similar to
horti-kubeconfig.yml
N.B you url ports will definately be different.