Interview Questions on Kubernetes
Ans:
a.
container: runtime image of an image
b.
nodes: physical or virtual machines in a cluster
c.
pods: simple deployable unit in a kubernetes system, which runs
containers and deployed inside nodes.
d.
cluster: collection of nodes acting as a single unit.
e.
master: node that manages worker nodes.
f.
workers: nodes that provide the place to run pods.
2.
In kubernetes, how to maintain replicas and maintain the desired
state at any point in time ?
Ans:
Deployment internally uses replicaset to maintain replicas and
maintain the desired state at any point in time.
3.
How to run one pod per node ?
Ans:
Daemonsets are used to run one pod per node.
4.
How to run stateful applications ?
Ans:
Statefulsets are used to run stateful applications.
5.
What is the use of ingress ?
Ans:
Ingress in kubernetes can be used as a wrapper for services.
Click on below link for Devops Interview QA book:
https://amzn.to/2YsiZah
Click on below link for Devops Interview QA book:
https://amzn.to/2YsiZah
6.
What is kubernetes volume ?
Ans:
Kubernetes volume is an abstraction that allows you to provide
persistent data storage units to pods and containers.
7.
What are the different types of volumes support by kubernetes ?
Ans:
a.
aws elasticblock store
b.
azuredisk
c.
cephfs
d.
nfs
e.
many more
8.
What is configmaps ?
Ans:
Configmaps are a way to decouple application configuration from
applications, it makes your
application
more portable.
9.
How to create configmaps ?
Ans:
To create configmaps , we use kubectl create configmap
configmaps
can be created from directories, literals or files.
10.
How to inspect configmap ?
Ans:
Command:
kubectl describe configmaps fresco-config


Comments
Post a Comment