0% found this document useful (0 votes)
48 views

Kubernetes Interview Questions 1 3 1685320790

The document contains questions about Kubernetes commands, services, pods, deployments, and networking. It includes over 80 questions covering topics such as listing and managing resources, accessing services, pod and deployment operations, and Kubernetes networking configurations and components.

Uploaded by

cumar2014
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views

Kubernetes Interview Questions 1 3 1685320790

The document contains questions about Kubernetes commands, services, pods, deployments, and networking. It includes over 80 questions covering topics such as listing and managing resources, accessing services, pod and deployment operations, and Kubernetes networking configurations and components.

Uploaded by

cumar2014
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

1.

Kubernetes Commands:
§ How to List pods with nodes info?
§ What is the command for List everything in Kubernetes cluster?
§ How can we Get all the services?
§ What is the command for Get all deployments?
§ How can we Show nodes with labels?
§ Can you tell the commands for Get resources with json output?
§ How to Validate a yaml file with dry run?
§ How to Get system config via configmap?
§ What is the command for Watching pods?
§ What is the Query health check endpoint?
§ How can we Open a bash terminal in a pod?
§ How can we check the environment variable of the pod?
§ How can we use the “kubectl apply command” on the folder where our yml file is
located?
§ How can we Get services sorted by name?
§ How can we Get pods sorted by restart count?
§ How can we get a list of pods and imagesHow can we list out all container images?
§ How can we Get node resource usage?
§ How can we Get pod resource usage?
§ How to List resource uGlizaGon for all containers?
§ What is the command for Delete pod?
§ What is the command for Delete pod by force?
§ How can we Delete pods by labels?
§ How can we Delete all resources filtered by labels?
§ How can we Delete persistent volumes by labels?
§ What is the command for List all criGcal pods?
§ How can we List Out pods with more info?
§ How can we get pod info?
§ How can we List all pods with labels?
§ How can we List all unhealthy pods?
§ How can we list out only running pods?
§ How can we Filter pods by label?
§ How can we Manually add labels to a pod?
§ What is the command for removing labels of pods?
§ How can we List secrets in Kubernetes?
§ How can we Generate secret?
§ How can we Get secret?
§ How can we List all Secrets currently in use by a pod?
§ How can we Get a specific field of a secret?
§ How can we List storage class?
§ How can we Check the mounted volumes?
§ How can we Check persistent volume?
§ How can we Copy local file to the pod?
§ How can we Copy pod file to local?
§ How can we View all events?
§ How can we List Events sorted by Gmestamp?
§ How can we Mark node as unschedulable?
§ How can we Mark node as schedulable?
§ How can we Drain node in preparaGon for maintenance?

Kubernetes Services:
§ What is the Kubernetes service?
§ How does Kubernetes service work?
§ What is the difference between deployment and service Kubernetes?
§ How do services connect to the deployment?
§ What are the different types of services in Kubernetes?
§ How to IdenGfy a Kubernetes service?
§ How do I access Kubernetes service?
§ What is the Kubernetes headless service?
§ What is the default protocol for a Service?
§ What is the command for LisGng all Kubernetes services?
§ What is the command for lisGng service endpoints?
§ How can we Get service details?
§ How can we Get service cluster IP?
§ How can we get service cluster port?
§ How can we Expose service as load balancer service?

Kubernetes Pods:
§ What is a pod and why are pods so important?
§ Does kubelet create pods?
§ How to check if a pod is running from the dashboard?
§ How do I start a pod in Kubernetes?
§ Do explain pod lifecycle?
§ When and how pods will be created?
§ Why do we need pods in Kubernetes?
§ How do you get pods in a pod?
§ How do I delete the POD forcefully in Kubernetes?
§ How do containers within a pod communicate?
§ How do I access Kubernetes pod from outside?
§ Can pods in different namespaces communicate?
§ What do containers share inside a pod?
§ What are the different types of mulGple-container pods?
§ How do I delete all pods in Kubernetes?
§ Can we recover pods aRer deleGon?
§ Can we run windows and Linux containers in the same pod?
§ How do I update all my pods if the image changed but the tag is the same?
§ What is the difference between the pod and the container?
§ How to configure VerGcal pod autoscaler?
§ How to configure Horizontal pod autoscaler?
§ How many pods can run on a node?

Kubernetes Deployments:
§ What are Kubernetes Deployments?
§ What are Kubernetes manifests?
§ How can we check if Deployment is created or not?
§ How do I rollback the Deployment? How to determine the status of deployment?
§ How can we see ReplicaSet which is created by deployment?
§ How can we get details of the deployment?
§ How can we Delete deployments by labels?
§ How to Pause/Resume deployments?
§ How to Check update history of deployment?
§ How to Check the update status of Deployments?
§ How to scale-out deployment?
§ How to Rollback Deployment to the previous version?
§ How can we Expose deployment as a load balancer service?

Kubernetes Networking :
§ What is Kubernetes networking?
§ What are the different types of Kubernetes networking?
§ How does the Kubernetes Network work?
§ What are the Kubernetes Networking CondiGons?
§ Why do we need network policy in Kubernetes?
§ How to apply network policy on pod?
§ How Does Kubernetes Networking Compare to Docker Networking?
§ What is cbr0 in Kubernetes?
§ What is Container to Container network?
§ What is pod to pod network?
§ What is pod to service network?
§ Explain the Internet to Cluster Networking
§ What is Ingress?
§ What is Egress?
§ What is CNI (container network interface)?
§ How many Kubernetes Network drives are supported in windows?
§ What are the different types of CNI?
§ How do I check my network for Kubernetes?
§ What is a flannel network in Kubernetes?

You might also like