Object Management in Kubernetes
Kubernetes resources such as pods or deployments are maintained in etcd by kube-apiserver. Controller managers and schedulers interact with kube-apiserver to create pods for scaling up or for assigning nodes for scheduling. Additionally, every API request made by client tools such as kubectl is reflected on the cluster state maintained in etcd. While creating, updating, and deleting resources appears to be straightforward, there are multiple approaches that you can use to manage Kubernetes resources. In this section, the following three techniques for object management in Kubernetes will be discussed:
- Imperative commands: These are used for running
kubectlcommands directly on live Kubernetes resources. - Imperative configuration: This is used for running
kubectlcommands with a specific command and configuration file. - Declarative configuration: This is used for running
kubectlcommands with a configuration file and makingkubectlautomatically...