0% found this document useful (0 votes)
4 views3 pages

kubernetes_interview

The document outlines various aspects of troubleshooting and managing Kubernetes clusters, specifically on AWS EKS, including common issues like pod states and image pull errors. It details the architecture of Kubernetes, the types of objects created, and commands used for logging and health checks. Additionally, it discusses the differences between Kubernetes components and services, scaling, access control, and the implications of component failures.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views3 pages

kubernetes_interview

The document outlines various aspects of troubleshooting and managing Kubernetes clusters, specifically on AWS EKS, including common issues like pod states and image pull errors. It details the architecture of Kubernetes, the types of objects created, and commands used for logging and health checks. Additionally, it discusses the differences between Kubernetes components and services, scaling, access control, and the implications of component failures.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

1. what kind of troubleshooting you do in kiubernetes ?

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

need to deploy some objects , write manifest files etc.

1. which PASS you have used in your organozation??


Ans - AWS EKS Service

2. explain me the architecture of kubernetes cluster ??


Ans - explain master server and worker nodes , and all components like api server ,
etcd , scheduler , controller , kubelet , kubeproxy , containers.

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.

5. command to check log of pods ??


Ans -kubectl logs podname -n namespace // kubectl logs podname -n namespace -c
controller_name

6. what does probes means in kubernetes ??


Ams - Probes are configured to check health of the containers running in a pod.
there are 3 types of probes liveness , readyness and startup probes.
liveness prob used to determine whether a particular container is running or not.
readyness prob used to determine whether a particular container is ready to receive
requests or not.

7. what does image pull back error means in kubernetes ??


Ans - its means that a container could not start because kubernetes could not pull
a container image ( for reasons such as invalid image name , or pulling
from a private registry without imagePullSecret)

8.what does crashloop back error menas in kubernetes ??


Ans - Crashloop backoff is a kubernetes state representing a restart loop that is
happening in a pod. a container in the pod is started , but crashes and is then
restarted , over and over again.
one or more containers are failing and restarting repeatedly. this typically
happens because each pod inherits a default restartPolicy of always upon creation.

9.which version of kubernetes you have used in your organization ??


Ans - kubernets 1.19.1

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.

11. difference between replication controller and relica set ??


Ans -the main difference between this two is the rolling update command works with
replication controllers , but won't work with replica set.
replication contoller uses equity based selectors to manage the pods . replica
sets controller uses set-based selectors to manage the pods.

12.Different kubernetes services ?


Ans -Types of services in kubernetes - cluster ip , nodeport load balancer and
ingress controller

13. why do we use ingress controller ??


Ans -using ingress controller enables you to easily and securely route traffic to
our applications running as kubernetes services.
If we use ingress controller then only single load balancer will be expose to
internet. all our microservices will run on cluster ip.

14. can we do horizontal scaling of pods ??


Ans - yes , horizontal pod auto scaler increase and decrease the pods in responce
to the workloads cpu or memory utilization.

15. what is your day to day work on kubernetes ?

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.

20. what details are present in kubeconfig file ?


- kubeconfig is a YAML file that contains either a username and password
combination or a secure token that when read programmatically removes the need for
the Kubernetes client to ask for interactive authentication. kubeconfig is the
secure and standard method to enable access to your Kubernetes clusters.

21. How do you provide access to individual users at cluster level ?


We use the concept of RBAC. for this we have written 3 different manifest files
like - role , role binding and config files.
roles : it carries the information about the policies /permissions
role binding : details of usrs to which we want to attach this role
config : aws user details.

22..what will happen if api server is destroyed ? there will be no communication in


between master and worker nodes. therefore no further operations can be done
- we will not be able to communicate with the cluster.

23.what will happen if scheduler ins not running ?


- we wont be able to deploy the containers on the nodes
24.what will happen if controller is not running ?
- we wont be able to create the pods automatically

25.what will happen if kubelet is not running in the node ?


- there will be no communincation between the node ( je chya warcha kubelete chalat
nhiye ) and master

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.

You might also like