Certified Kubernetes Administrator 2021 practice exam questions fully solved & updated.
Primary Purpose of Kubernetes dynamically manage containers across multiple systems k8s control plane is a collection of multiple components responsible for managing the cluster itself globally. Brainpower Read More Previous Play Next Rewind 10 seconds Move forward 10 seconds Unmute 0:14 / 0:15 Full screen kube-api-server is the component that serves the k8s api, the primary interface of the control plane. Etcd is the backend data store for the k8s cluster. Provides high availability distributed storage for data relating to the cluster. kube-scheduler is the process of selecting an available node in the cluster on which to run containers. kube-controller-manager is a collection of multiple controller utilities in a single process. These controllers carry out a variety of automation tasks. cloud-controller-manager is an interface between k8s and cloud platforms Control plane components kube-api-server etcd kube-scheduler kube-controller-manager cloud-controller-manager K8s Nodes/worker nodes the machines where the containers managed by the cluster run. kubelet the k8s agent that runs on each node and communicates with the control plane. container runtime the software responsible for running containers on the machine. K8s supports multiple container runtimes. kube-proxy a networking proxy that runs on each node and handles networking related tasks between containers and services. worker-node components kube-proxy kubelet container runtime kubeadm is a tool to simplify k8s setup set hostname command sudo hostnamectl set-hostname $NAME set host file for nodes sudo vim /etc/hosts $PRIVATEIPADDRESS k8s-control $PRIVATEIPADDRESS k8s-worker1 $PRIVATEIPADDRESS k8s-worker2 configure containerd cat << EOF | sudo tee /etc/modules-load.d/ overlay br_netfilter EOF #enable commands without restart sudo modprobe overlay sudo modprobe br_netfilter k8s networking configs on nodes cat <<EOF | sudo tee /etc/sysctl.d/ e-nf-call-iptables = 1 _forward = 1 e-nf-call-ip6tables = 1 EOF #enable configs immediately sudo sysctl --system install containerd sudo apt-get update && sudo apt-get install -y containerd set up containerd config file sudo mkdir -p /etc/containerd sudo containerd config default | sudo tee /etc/containerd/ sudo systemctl restart containerd install k8s packages on all nodes sudo swapoff -a sudo apt-get update && sudo apt-get install -y apt-transport-https curl curl -s cat << EOF | sudo tee /etc/apt/.d/ deb EOF sudo apt-get update sudo apt-get install -y kubelet=1.24.0-00 kubeadm=1.24.0-00 kubectl=1.24.0-00 sudo apt-mark hold kubelet kubeadm kubectl init cluster on controller sudo kubeadm init --pod-network-cidr 192.168.0.0/16 --kubernetes-version 1.24.0 set up kube/config mkdir -p $HOME/.kube sudo cp -i /etc/kubernetes/ $HOME/.kube/config sudo chown $(id -u):$(id -g) $HOME/.kube/config (part of the init command output) configure networking plugin kubectl apply -f
Escuela, estudio y materia
- Institución
- Certified Kubernetes Administrator
- Grado
- Certified Kubernetes Administrator
Información del documento
- Subido en
- 1 de febrero de 2024
- Número de páginas
- 5
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas
Temas
-
certified kubernetes administrator 2021