0% found this document useful (0 votes)
13 views4 pages

Kubernetes Interview Questions Guide

Uploaded by

raji4u1818
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)
13 views4 pages

Kubernetes Interview Questions Guide

Uploaded by

raji4u1818
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

RUSHI INFOTECH SELECTED INTERVIEW QUESTIONS

[Link] b/w git and svn


[Link] is conflict error
[Link] pull, fetch and git merge
[Link] is git stash

[Link] out maven goals


[Link] to set java and maven environmental variables
[Link] u created [Link]?

8. where do you deploy warfile in tomcat


[Link] is 401 error
[Link] to you resolve 403 error

[Link] is Ci cd
12how does your cicd pipeline looks like
[Link] of build trigger
[Link] u implemeted master and slave concept in your projects.
15 how to you take jenkins job backups
[Link] type of plugins have u used i n your projects

[Link] is diff b/w virtulization and containerization


[Link] is docker swarm
[Link] is image
[Link] container is created
[Link] do you store docker images
[Link] u written docker compose file
[Link] are the adifferent arguments used in dockerfile

[Link] is ansible
[Link] b/w chef and ansible
[Link] is inventory file in ansible
[Link] architecure
[Link] ansible works
[Link] to configure passwordless authentication
[Link] are the different adhoc commands used
[Link] kind of playbooks have u written
[Link] is ansible roles

[Link] monitoring tool u have used and how did u configured that
[Link] programming knowledge do u know
[Link] kind of shell script have u written
[Link] some shell script basics

[Link] kind of databases do u have knowledge


[Link] to taken backups ?

[Link] techonologies u have learnt and implemented in your projects

1. What is Kubernetes

Kubernetes is one of the Leading open source Container Orchestration Engine. It is


used to automatic cluster deployment, scaling and manage containerized
applications.
2. What is difference between Docker Swarm and Kubernetes

Docker Swarm Kubernetes


It is Clustering for Docker Container It is Container
Orchestration
Setup is Easy Setup is Hard
Application deployment using Pods, Deployments and Service Application deployment
using only Service
Auto scaling is Not Possible Auto scaling is possible
It has no GUI Dashboard It has GUI
Dashboard
It supports logging and monitoring using ELK Stack,Grafana,Influx,etc. It does not
support

3. What is Kubeadm

Kubeadm helps for installing and configuring Kubernetes cluster using command line.

4. What are Kubeadm commands ?

Command Name Purpose


kubeadm init Used on Master node and It is used to initialize and configure
any node as a master node.
kubeadm join Used on worker node and It is used to initialize and configure
any node as worker node.
kubeadm token It is used to genrate token.
kubeadm version It used to check kubeadm version.
5. What are Kubernetes Cluster components on Master node

API Server, Scheduler, Controller Manager, ETCD

6. What are Kubernetes Cluster components on Worker node

Kubelet, Kubeproxy, Pods, Container

7. What is API Server

It is used to exposing various API’s. It is used to create,delete and update any


object inside the cluster using kubectl command. API objects can be
pods,containers,deployments,services..etc.

8. What is Scheduler ?

Scheduler is responsible for physically scheduling pods across multiple nodes,


depending upon when we submit requirement to API server, scheduler schedules pod
accordingly.

9. What is Controller Manager?

It is responsible overall health of entire cluster such as no of nodes insides the


cluster, up and running status as per specification.

10. What is ETCD

etcd is light weight key-value database, it stores information like about current
state of cluster,..etc.
11. What is Worker node in Kubernetes?

Worker node can be any Physical Server or Virtual Machine where containers are
deployed , containers can be docker,rocket,.etc.

12. What is Kubelet ?

Kubelet is primary agent which runs on each worker [Link] ensures containers are
running in pod.

13. What is Kubeproxy?

It is core Networking component of Kubernetes cluster, it is responsible for entire


network configuration, it maintains distributed network across all containers, pods
and nodes.

14. What is Pod?

Pod is scheduling unit in Kubernetes, it consists of one or more container. With


the help of pod we can deploy one or more container.

15. What are the different types of services in Kubernetes ?

Below are different types of services in Kubernetes

Cluster IP – It is used to expose the service on internal IP within cluster.

Node Port – It is used to expose the service from outside.

Load Balancer – It creates external load balancer and assigns external IP to


service.

External Name Creating – It is used expose the service using name.

16. What is the difference between deployment and service in Kubernetes ?

Deployment is an object in Kubernetes, using Deployment we can create and manage


pods using replica set from template.

Deployment manages creating Pods using of Replica Sets

Service is responsible to allow network access to a set of pods.

17. What is the difference between pod and deployment in Kubernetes?

Pod is scheduling unit in Kubernetes, it consists of one or more container. With


the help of pod we can deploy one or more container.

Deployment is an object in Kubernetes, using Deployment we can create and manage


pods using replica set from template.

Both are objects in the Kubernetes API


18. What is the difference between config map and secrets in Kubernetes?

Config maps stores application configuration in a plain text format.

Secrets store sensitive data like password in an encrypted format

19. What is namespace in Kubernetes?

Using namespace, we can logically organize objects in the cluster like pod and
deployments. When you create Kubernetes cluster , default, kube-system and kube-
public namespace are available.

20. What is ingress in Kubernetes?

Ingress is a collection of routing rules for external services running in a


Kubernetes cluster.

aws:
[Link] is aws
[Link] services have u used in aws
[Link] do you resize instance type
[Link] u decresae volume size
[Link] is snapshot
[Link] is diff b.w volumes and s3
[Link] is load balancers
[Link] types of load balancers
[Link] is autoscaling
[Link] we have to implement autoscaling
[Link] is iam
[Link] is ami
[Link] is elastic IP
[Link] is VPC
[Link] versions of tools
and
apart from this do self Learning and All THE Best Guys

Common questions

Powered by AI

Kubernetes manages containerized applications through its architecture of master and worker nodes. The master node includes components such as the API Server, Scheduler, Controller Manager, and ETCD. The API Server exposes APIs for interacting with the cluster and manages the lifecycle of Kubernetes objects. The Scheduler places containers onto nodes based on resource availability. The Controller Manager ensures that the desired state of resources matches the cluster's actual state. ETCD is a key-value store that maintains configuration data and cluster state. Worker nodes run the pods, which are the smallest deployable units consisting of one or more containers. Each worker node has Kubelet, which ensures that containers are running in a pod, and Kubeproxy, which manages network configurations .

Kubeadm is a tool for the easy installation and configuration of Kubernetes clusters. It streamlines the process by handling the underlying configurations and deployments required to set up a cluster. Core commands for Kubeadm include 'kubeadm init' for initializing the master node, 'kubeadm join' for adding worker nodes to the cluster, 'kubeadm token' for generating authentication tokens, and 'kubeadm version' for verifying the installed version of Kubeadm .

ConfigMap and Secret in Kubernetes are both used to manage configuration data and sensitive information, respectively. A ConfigMap allows for storing configuration data in key-value pairs, which can be consumed by applications as environment variables, command-line arguments, or configuration files. This data is stored in plain text. Secrets are similar but are specifically designed for sensitive data like passwords and API tokens. The key difference is that secrets store their data in an encrypted format, ensuring an additional layer of security for confidential information .

Continuous Integration (CI) and Continuous Deployment (CD) are practices in the software development process that enable frequent integration of code changes into a shared repository and automated deployment of applications, respectively. CI involves automating the build and testing of code every time a team member commits changes, which helps in identifying and fixing defects early in the development cycle. CD automates the deployment of tested code to production environments, reducing manual errors and allowing for more rapid and reliable delivery of software updates to users. The primary benefits include faster release cycles, improved product quality, and increased team efficiency through continuous feedback loops .

Git is a distributed version control system, which means that every user has a complete copy of the entire repository, including its full history, on their local machine. This allows for offline work, faster commit capabilities, and multiple workflows. On the other hand, SVN (Subversion) is a centralized version control system, which relies on a central server to store all versions of the project's files, and users check out files in a more linear fashion. Git is generally better for branching and merging, while SVN offers a more straightforward approach to manage access control due to its centralized nature .

Kubernetes' Ingress controller provides an efficient way to manage external access to services within a cluster by specifying a set of rules for accessing services. It supports HTTP and HTTPS routing to different endpoints and can implement load balancing, SSL termination, and name-based virtual hosting. The major advantage of using Ingress over traditional methods like NodePort or LoadBalancer services is its ability to consolidate multiple routes into a single entry point, which simplifies routing rules management and reduces resource usage, facilitating easier management of large-scale microservices architectures .

Ansible and Chef are both popular infrastructure automation tools but differ in several ways. Ansible uses a declarative approach with YAML-based playbooks to define system configurations and orchestrate tasks. It is agentless, relying on SSH for communication, which simplifies setup and reduces overhead. Chef, on the other hand, follows a procedural approach with Ruby DSL (Domain Specific Language), requiring a client-server architecture where nodes run a Chef client to communicate with a central server. Ansible's simplicity and lower learning curve make it ideal for quick setups, while Chef offers extensive configuration management capabilities and scalability for complex environments .

ETCD is a distributed key-value store that is central to Kubernetes cluster management because it maintains the entire state of the cluster. It stores configuration data, runtime state information, and metadata required for operations within the Kubernetes environment. It plays a crucial role in cluster coordination, ensuring consistency and reliability through consensus algorithms and providing a mechanism for service discovery, cluster configuration, and data sharing among components in the cluster .

In Kubernetes, a Pod is the smallest and simplest unit in the Kubernetes object model that represents a running process on the cluster. A Pod encapsulates one or more containers (e.g., Docker containers) that share storage, network, and a specification for how to run the containers. Within a Pod, containers can naturally communicate with one another using 'localhost:'. Pods serve as a logical host for managed containers and facilitate container management tasks, such as scaling, failover, service discovery, and resource sharing, fundamentally supporting the deployment and operational aspects of Kubernetes applications .

Docker Swarm is generally easier to set up than Kubernetes, as it integrates directly with the Docker ecosystem and requires less configuration. Kubernetes, while more complex to set up, offers a higher level of control and flexibility in terms of deploying, scaling, and managing containerized applications. In terms of scaling, Kubernetes supports auto-scaling based on resource usage metrics like CPU and memory, allowing for better resource optimization. Docker Swarm does not offer built-in auto-scaling capabilities to the same extent, making Kubernetes more suitable for applications requiring dynamic scaling .

You might also like