Kubernetes Interview Questions And Answers

As far as I understand, to access any application within Kubernetes cluster there should be a Service resource created and that should have an IP address which is accessible from an external network. But in case of port-forward how does kubectl create a connection to the application without an IP address which is accessible externally?

kubernetes - How does kubectl port-forward create a connection? - Stack ...

Kubernetes Interview Questions And Answers 2

Let me break this question into each sub-parts the way we do in agile. What exactly is a headless service. It is used for discovering individual pods (especially IPs) which allows another service to interact directly with the Pods instead of a proxy. With NodePort, LoadBalancer, ExternalName, and ClusterIP clients usually connect to the pods through a Service (Kubernetes Services simply ...

kubernetes - What is a headless service, what does it do/accomplish ...

Kubernetes Interview Questions And Answers 4

I am trying to see how much memory and CPU is utilized by a kubernetes pod. I ran the following command for this: kubectl top pod podname --namespace=default I am getting the following error: W02...

Kubernetes Interview Questions And Answers 5

Kubernetes (from Introduction to Kubernetes): Kubernetes is a container orchestrator like Docker Swarm, Mesos Marathon, Amazon ECS, Hashicorp Nomad. Container orchestrators are the tools which group hosts together to form a cluster, and help us make sure applications: are fault-tolerant, can scale, and do this on-demand use resources optimally

Kubernetes Interview Questions And Answers 6

I have kubernetes pods running as shown in command "kubectl get all -A " : and same pods are shown in command "kubectl get pod -A" : I want to enter/login to any of these pod (all are in Running state). How can I do that please let me know the command?

Kubernetes Interview Questions And Answers 7