Kubernetes Interview Questions:
==============================
1).What is Deamonset into the kubernetes?
Deamonset:
2).what is the deployment into kubernestes?
=================
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 2
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:latest
ports:
- containerPort: 80
===============================
3).what is the statefulset into kubernetes?
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: mysql
spec:
serviceName: mysql
replicas: 3
selector:
matchLabels:
app: mysql
template:
metadata:
labels:
app: mysql
spec:
containers:
- name: mysql
image: mysql:8
volumeMounts:
- name: data
mountPath: /var/lib/mysql
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 10Gi
4).what is the sue of service account into kubernestes into it ?
=========================================================
A ServiceAccount provides an identity to pods so that Kubernetes can authenticate and authorize their access to cluster resources using RBAC.”
=========================================================
apiVersion: v1
kind: ServiceAccount
metadata:
name: app-sa
===========================
apiVersion: v1
kind: Pod
metadata:
name: my-pod
spec:
serviceAccountName: app-sa
containers:
- name: app
image: nginx
=============================
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: pod-reader
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list"]
==============================''
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: read-pods
subjects:
- kind: ServiceAccount
name: app-sa
roleRef:
kind: Role
name: pod-reader
apiGroup: rbac.authorization.k8s.io
=======================
5).what is the pod into the kubernestes into it ?
apiVersion: v1
kind: Pod
metadata:
name: my-pod
labels:
app: demo
spec:
containers:
- name: nginx-container
image: nginx
ports:
- containerPort: 80
6).what is the differnt kubernestes services into it ?
nodeip
cluster port
load blnacer
external name
headless service
pods
services
cluster
rbacs
ingress controllers
master node
worker node
7).what is the side conatiner into kubernetes?
8).what is crashloop error ?
9).what is configmap into kubenrrstes ?
capiVersion: v1
kind: ConfigMap
metadata:
name: simple-config
data:
APP_NAME: myapp
APP_ENV: dev
=================
kubectl apply -f configmap.yaml
==================
kubectl get configmap
kubectl describe configmap simple-config
10).what is secretes into kubernestes into it ?
====================================================================
HSBC Bank: Name : Srikanth Patil Mobile : 9513273723 Email Id : Srikanth.patil@hsbc.co.in How to check payslips : Go to the portal: here we can see the link: https://infinite.greyhr.com/login.do Quick links : GreytHR ---------------------------------------------------- Medical and group insurance : Contact : shafi +91 -7022557573 email address: mediclaimhelpdesk@infinite.com For any escalation write to : MYHR@infinite.com Quicklink -BIZX: https://bizx.inifinite.com --------------------------------------------------------- Axis Bank : Name : Ragini sharma Mobile Number: 8088982659 mail address: Ragini.sharma@axisbank.com --------------------------------------------------------- Name : Archishman Mobile number: 7678068570 mail address: Archishman.Deb@axisbank.com -------------------------------------------------------- Hdfc Bank : Name : Pavan katariya Mobile Number: 9986349366 Mail address: pavan.katariya@hdfcbank.com ----------------...
Comments
Post a Comment