- kubectl uses the kubeconfig file, which is located in ~\.kube\config. This YAML configuration file contains all of the parameters required for kubectl to connect to the Kubernetes API for your cluster
- You can use a KUBECONFIG environment variable or the --kubeconfig flag for individual commands to force kubectl to use a different kubeconfig.
- Contexts are used for organizing and coordinating access to multiple Kubernetes clusters.
- kubectl create is an imperative command to create new API resources, whereas kubectl apply is a declarative management command for managing API resources.
- kubectl patch updates a resource by merging the current resource state and a patch that contains only the modified properties. A common use case for patching is when you need to enforce a node selector for an existing DaemonSet in hybrid Linux/Windows...