I'm kinda new to Kubernetes and I would like to know which kind of configuration/state/metadata files etcd cluster holds? didn't find any examples on that. just general explanation.
Thanks :)
which kind of configuration/state/metadata files etcd cluster holds?
Etcd is the database for Kubernetes, so it essentially store all configuration/state/metadata that you have in your cluster.
Kubernetes is an eventual consistency system.
Example
There is no app in the cluster. Now you want to deploy an app that you have created.
In the above example, you created an resource, a Deployment
that is stored in etcd. But also all the controllers also create resources, e.g. ReplicaSet
and Pod
when you created your Deployment
.
Separation of Concern
When you created the Deployment
-manifest, you wrote some metadata and then a spec:
- this is the desired state. The controllers write its state in status:
and you can inspect this with e.g. kubectl get deployment my-app -o yaml
and you will see if the controllers have written any issues or that the condition is Running.