CERTIFIED KUBERNETES ADMINISTRATOR practice exam questions fully solved & updated.
Purpose of Kubernetes to host your applications in the form of containers in automated fashion so you can easily deploy as many instances of your application as required and easy to enable communication between different services within your application. What K8S Worker nodes do? Host applications as Containers - COMPLETE ME Brainpower Read More Previous Play Next Rewind 10 seconds Move forward 10 seconds Unmute 0:00 / 0:00 Full screen Master Node Manage , Plan , Schedule , Monitor Nodes What is ETCD? is a distributed reliable key-value store that is simple , secure and fast. What does kube-scheduler identifies the right node to place a container base on containers resource requirements the worker nodes capacity or any other policies or constraints such as tents and tolerations or node affinity rules that are on the, kube-apiserver is the primary management component of Kubernetes . the kube -apiserver is responsible for orchestrating all operations within the exposes the kubernetes API which is used by externals users to perform management operations on the cluster as well as the various controllers to monitor the state of the cluster and make the necessary changes as required and by the worker nodes to communicate with the server. kubelet Agent that runs on each node in the cluster, it listens for instructions from the kube-api server and deploys or destroys containers on the nodes as required what is a key value store? store information in a key value format . ETCDCTL is the CLI tool used to interact with ETCD. ETCDCTL can interact with ETCD Server using 2 API versions - Version 2 and Version 3. By default its set to use Version 2. Each version has different sets of commands. For example ETCDCTL version 2 supports the following commands: etcdctl backup etcdctl cluster-health etcdctl mk etcdctl mkdir etcdctl set Whereas the commands are different in version 3 etcdctl snapshot save etcdctl endpoint health etcdctl get etcdctl put To set the right version of API set the environment variable ETCDCTL_API command export ETCDCTL_API=3 When API version is not set, it is assumed to be set to version 2. And version 3 commands listed above don't work. When API version is set to version 3, version 2 commands listed above don't work. Apart from that, you must also specify path to certificate files so that ETCDCTL can authenticate to the ETCD API Server. The certificate files are available in the etcd-master at the following path. We discuss more about certificates in the security section of this course. So don't worry if this looks complex: --cacert /etc/kubernetes/pki/etcd/ --cert /etc/kubernetes/pki/etcd/ --key /etc/kubernetes/pki/etcd/ So for the commands I showed in the previous video to work you must specify the ETCDCTL API version and path to certificate files. Below is the final form: kubectl exec etcd-master -n kube-system -- sh -c "ETCDCTL_API=3 etcdctl get / --prefix --keys-only --limit=10 --cacert /etc/kubernetes/pki/etcd/ --cert /etc/kubernetes/pki/etcd/ --key /etc/kubernetes/pki/etcd/" what ETCD stores? stored information regarding the cluster such as the nodes , pods , configs , secrets , accounts , roles , bindings and others. (every infromation you see when you run the kubectl get command is from the ETCD server. .every change you make to your cluster , such as adding additional nodes , deploying pods or replica sets are updated in the ETCD server . only once it is updated in the ETCD server , is the change considered to be complete.
Document information
- Uploaded on
- February 1, 2024
- Number of pages
- 3
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers