I didn’t understand exactly what is a context in the kubernetes cluster. What are they used for?
OK. So technically speaking a context isn’t part of the cluster. As raoconnor suggests, it’s a
kubectl client setting that tells
kubectl which cluster to send commands to. For example, you might have a test/dev cluster and a separate prod cluster. Two clusters would be two contexts. If you have your
kubectl context set to dev/test, all
kubectl commands will be issued to the dev/test cluster. If you want to start working on the prod cluster, you switch contexts and
kubectl will start sending commands to the prod cluster. HTH. Nigel