K8 config file Flashcards
3 parts of a Kubernetes config file
config file main thing for configuring components in k8 cluster
metadata
specification
status (this is generated by K8) (k8 looks at desired state and actual state, if does not match k8 will try to fix this)
What does etcd do?
This holds the status of any k8 cluster
Whats template?
Where pod has its own configuration. Port to open, image based on etc etc
How do you know which pods belong to which
using labels (this is in config file) and selectors (this is in service component)
kubectl get secret
get secret
How to reference a secret in k8 config file without values
Template >> specificiation ValueFrom SecretkeyRef Name Key
kubectl describe
can see information about the pod
how to reference ConfigMap in yaml file
very similar to secret. different is putting ‘configmapkeyref’ instead