Thursday, January 20, 2022

Kubectl - Multiple Eksctl contexts - Switch - How ??

https://stackoverflow.com/a/43661208/2413870

https://stackoverflow.com/questions/43643463/how-to-switch-kubectl-clusters-between-gcloud-and-minikube

You can switch from local (minikube) to gcloud and back with:

kubectl config use-context CONTEXT_NAME


to list all contexts:

kubectl config get-contexts


You can create different enviroments for local and gcloud and put it in separate yaml files.

https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/


No comments:

Post a Comment

Azure - Pipeline - Add Approver for Stage

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass