How do you find all pods that run on a master node?
Experience Level: Medior
Tags: Kubernetes
Answer
Run the following command to find a master node:
Copy the node name and run the following command:
Related Kubernetes job interview questions
How do you get a list of endpoints that are available for service service1?
Kubernetes MediorHow can you run a pod on each node of Kubernetes and make sure that it is running only once on on each node?
Kubernetes MediorUsing kubectl, how do you convert yaml manifest of a specific pod pod1 to JSON format?
Kubernetes MediorYou are looking for IP address details of your Kubernetes nodes, but you are not sure what is a structure of node manifests. How can you find this details and learn more about the structure?
Kubernetes MediorHow can you display yaml details of all deployments, pods and services that are present in the current Kubernetes namespace?
Kubernetes Junior