Kubernetes Scenario Based Interview Questions

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 Scenario Based Interview Questions 2

In Kubernetes this is done with rolling updates. Rolling updates allow Deployments' update to take place with zero downtime by incrementally updating Pods instances with new ones.

Kubernetes Scenario Based Interview Questions 3

kubernetes - kubectl - How to restart a deployment (or all deployment ...

Kubernetes Scenario Based Interview Questions 4

kubernetes - How to check if network policy have been applied to pod ...

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...

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 Scenario Based Interview Questions 8

To clarify what's described here in the Kubernetes context, 1 CPU is the same as a core (Also more information here).

Kubernetes Scenario Based Interview Questions 9

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