kubernetes_interview
kubernetes_interview
- we need to provide support to our projects where microservices are running on EKS
cluster. so daily we get some issues like :
- pods are in pending stae
- imagepul back errors
- loopback erros.
3.How big is your cluster ?? like how many master nodes and worker nodes are
there ??
Ans - 1-2 master node and 10 worker node.
4.what are the different objects you have created in your organization ??
Ans - I have create objects like pod , namespaces , replication
controllers ,deployment , services , volumes , secrets and config maps , stateful
sets , ingress controller.
10. what is difference between deployment , daemon sets and stateful sets ?
Ans - "deploment" is used for stateless applications.
- "stateful" sets is used for stateful applications , each replica of the pod
will have its own state and will be using its own volume.
- "daemonset" is a controller similar to replicaset that ensures that the pod
runs on all the nodes of the cluster.
the pods in a deployment are interchangeable , whereas the pods in a
statefulset are not.
16. What are the different objects you have created in kubernetes ?
17. write down one manifest file to create pod carrying apache pod.
18. suppose your pod is in pending state from laste 10 mins . what could be the
issue. ?
- Pod might not be getting the available node because of lack of resources like
CPU and RAM.
19. what is the use of node selector ? have you used it in your company ?
- supposer we want to deploy some pods on specifc node only then we will use node
selector.
26.does container runs directly on all nodes ? no , cont. run inside the pod.
- No . container runs inside the pod.
27.what is pod ?
-It is nothing but a imaginary boundary within which we launch our
containers.suppose your docker containers get failed,then since those containers
are launched in pod, they will get created automatically.
28.advantages of Kubernetes ?
- HA
- Auto scaling
- to restart the failed containers auto maticalling
- O.S
- Load balancer
29. where do you save the config file ? we save it in .kube folder with name
config
- it gets created under .kube folder in the users home directory using which we are
creating the cluster.
19. Suppose i want to decide that on which node my pods should get created then ho
u will do it ??
- i will use the concept of nede selector. : i will give labels to all the nodes
and then in my yml file i will use the nodeselector parameter and the label
details.