Tuesday, January 25, 2022

Kubectl Context Switch - Kubernetes

eksctl creates Cluster using Cloudformation template

Cluster is mapped to EC2-Role and it here where we get visibility

Each Cluster is mapped to  "Context" in ~/.kube/config File which is a config file used by kubectl

kubectl knows what its target vms are or context is.

Each Context/Target Nodes can be shared between many different Project by using "namespaces"


~\.kube\config


kubectl config get-contexts

kubectl config current-context

kubectl config use-context <context-name>


https://www.shellhacks.com/kubectl-switch-context-kubernetes/


https://www.shellhacks.com/kubectl-get-pods-list-all-pods-kubernetes/


=========================================================================




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