Open
Description
After provisioning the Linode Kubernetes cluster its kubeconfig file is saved to .kube/kubeconfig.yaml. However the current Kubernetes contenxt remains as is.
The installers/install-knative-istio.sh script simply installs to the current Kubernetes context and NOT to the Linode cluster.
There are two reasonable ways to address it:
- In the shell,
export KUBECONFIG=${PWD}/.kube/kubeconfig.yam
before running the script. - In the script set
KUBECONFIG=${PWD}/.kube/kubeconfig.yam
The #1 option is good for accessing the cluster later with kubectl without having to pass the context in every command using --context .kube/kubeconfig.yaml
The #2 option is safer because the script will always install Istio and Knative to the correct cluster even if the user forgot to set KUBECONFIG.
Of course you do both. It's idempotent.
Metadata
Metadata
Assignees
Labels
No labels