Kubernetes - Context
Context: Used to group the access parameters under an easily recognizable name in a kubeconfig file. Its a connection to particular cluster used by kubectl. Context consist of Cluster Name, Namespace and a user and the configuration (CERTS/KEYS) to access the cluster. The term context applies only to the client side. K8s server side does not recognize the term 'context'. Let me start with creating a namespace called "prod" and create a pod inside it. root@masterk8s:~# kubectl create ns prod namespace/prod created root@masterk8s:~# root@masterk8s:~# kubectl run nginx --image=nginx -n prod pod/nginx created root@masterk8s:~# root@masterk8s:~# kubectl get pods -n prod NAME READY STATUS RESTARTS AGE nginx 1/1 Running 0 21s root@masterk8s:~# When calling the kubectl get pods -n prod, you're retrieving the list of the pods located under the namespace 'prod'. If...