29 Questions
What is the purpose of running kubeadm upgrade plan
?
To plan the upgrade of the control plane components
What is the command to upgrade the kubelet on the master node?
apt-get upgrade -y kubelet=1.12.0-00
What is the purpose of running kubectl drain node1
?
To mark the node as unschedulable
What is the command to upgrade the node configuration on the worker node?
kubeadm upgrade node config --kubelet-version v1.12.0
What is the purpose of running kubectl uncordon node1
?
To mark the node as schedulable
What is the command to update the package lists on the worker node?
apt update
What is the primary purpose of running the command 'docker ps | grep etcd'?
To check the status of the ETCD pod
What is the consequence of not updating the volumeMounts for etcd-data when changing the --data-dir in the YAML file?
The restored data will not be used
What is the primary goal of Kubernetes Security Primitives?
To control access to the API server and ensure secure authentication
What is the purpose of certificates in TLS basics?
To guarantee trust between two parties during a transaction
What is the consequence of not restarting the ETCD pod after restoring data?
The restored data will not be used
What is the relationship between mountPath and data-dir according to the provided notes?
They must match all the time, but hostPath is exempt
What is the default location where Docker stores its data?
/var/lib/docker
What is the purpose of Storage Drivers in Docker?
To manage storage on images and containers
What is the command to switch to a new namespace using Kubens?
kubens
What is the purpose of the command 'docker volume create data_volume'?
To add a Persistent volume
What is the command to see the current context using Kubectx?
kubectx -c
What happens if 'docker volume create' is not done before the 'docker run' command?
Docker will automatically create the volume in the /var/lib/ folder
What is the purpose of Node Affinity types when there are no labels on the nodes?
To provide a fallback option when a matching node is not found
What happens when a pod with RequiredDuringScheduling affinity cannot find a matching node?
The pod will not be scheduled
What is the difference between RequiredDuringExecution and IgnoredDuringExecution?
RequiredDuringExecution evicts pods, while IgnoredDuringExecution does not
When is PreferredDuringScheduling affinity used?
When a matching node is not found
What is the main difference between Node Affinity and Taints and Tolerations?
Node Affinity is used to ensure pod placement, while Taints and Tolerations are used to prevent pods from getting to our nodes
What is the state of a pod during the DuringExecution phase?
The pod has been running and a change is made in the environment that affects node affinity
What is the primary function of the ip route command?
To configure a router as a default gateway
What is the purpose of setting the value of /proc/sys/net/ipv4/ip_forward to 1?
To configure a system as a router
What is the effect of not setting the changes made by the ip addr add command to the etc/network/interfaces file?
The changes will only be valid until a restart
What is the purpose of the ip link command?
To list the available interfaces on a host
What is the difference between the ip route add command and the ip addr add command?
ip route add is used to configure a gateway, while ip addr add is used to assign an IP address
Test your knowledge of Node Affinity in Kubernetes, including the different types and states of a pod's lifecycle during scheduling and execution. Learn about the available and planned states, and how they affect node affinity during pod creation and changes to the environment.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free