Are you looking for somewhere to learn more about Kubernetes interview questions? You’re in the right place! We publish a Kubernetes question every day on our social media channels, LinkedIn, Telegram, and YouTube, and at the end of the week, we provide the correct answers with details here. If you want to test your Kubernetes knowledge or prepare yourself for Kubernetes role interviews, follow our social media.
B) Deployment will be paused, and changes will not take effect
C) Kube-apiserver will be paused to accept new Deployments
D) All traffic to Deployment’s Pods will be paused
When you “pause” a Deployment object, any changes to the deployment will not go live or take effect, especially the rollout mechanism. So, the behaviour is: pausing the deployment, and the result is: pausing the Deployment’s rollouts.
The CrobJob controller inside the kube-controller-manager component is responsible for running CronJob’s Pods, and as it runs inside the kube-controller-manager, it runs the CronJob based on the kube-controller-manager timezone. From Kubernetes 1.24, a new option timezone is added to allow changing the timezone for every Cron job.
What happens if the Pod readinessProbe gets failed?
A) Pod-to-Pod traffic will not be sent until readinessProbe gets passed
B) Service-to-Pod traffic will not be sent until readinessProbe gets passed
C) Pod will stay Pending until readinessProbe gets passed
D) Pod will be restarted until readinessProbe gets passed
The readinessProbe option helps Kubernetes, Endpoints controller, to find if the Pod is ready to accept connections or not. If the readinessProbe of the Pod fails, the Pod’s IP address will be removed from the corresponding Endpoints object, which means if traffic comes from the Service, the Service will not send the traffic to that Pod.
A) All components call kube-apiserver, and no one calls kubelet APIs
B) kube-apiserver may need to call kubelet APIs
C) kube-controller-manager may need to call kubelet APIs
D) kube-scheduler may need to call kubelet APIs
Although all components call kube-apiserver to do their jobs, kube-apiserver needs to call kubelet to do two things. kube-apiserver will call kubelet APIs to access Pod’s shell in kubectl exec command and to get Pod’s logs in kubectl logs command.
13 October 2023:
What happens if the Pod livenessProbe gets failed?
A) Pod-to-Pod traffic will not be sent until livenessProbe gets passed
B) Service-to-Pod traffic will not be sent until livenessProbe gets passed
C) Pod will stay Pending until livenessProbe gets passed
D) Pod will be restarted until livenessProbe gets passed
The livenessProbe job is to ensure the container is healthy, and if it fails, the container keeps restarting until it becomes healthy. Both livenessProbe and readinessProbe should be defined for every container to ensure they work properly.
Kubernetes itself is wild. Man vs. Wild in interviews needs deep knowledge, hands-on experience and additional skills to pass. If you want to pass Kubernetes role interviews, read more and do many more with Kubernetes. Our goal in Kubedemy is to help you understand and solve Kubernetes difficulties in all situations.
If you like this series of articles, please share them and write your thoughts as comments here. Your feedback encourages me to complete this massively planned program.