What is Pod in kubernetes.

A pod is the smallest execution unit in Kubernetes. A Kubernetes pod is a collection of one or more Linux® containers, and is the smallest unit of a Kubernetes application. A pod encapsulates one or more applications. Pods are ephemeral by nature, if a pod (or the node it executes on) fails, Kubernetes can automatically create a new replica of that pod to continue operations.  Pods include one or more containers (such as Docker containers) Pods represent the processes running on a cluster Any given

Read more

What are the components of Kubernetes worker and explain each component’s function?

Below are the main components found on a (worker) node: kubelet â€“ the main service on a node, regularly taking in new or modified pod specifications (primarily through the kube-apiserver) and ensuring that pods and their containers are healthy and running in the desired state. This component also reports to the master on the health of the host where it is running. kube-proxy â€“ a proxy service that runs on each worker node to deal with individual host subnetting and expose services

Read more

What are the components of Kubernetes master and explain each component’s function?

The Kubernetes master runs the Scheduler, Controller Manager, API Server and etcd components and is responsible for managing the Kubernetes cluster. Etcd Etcd is a distributed, consistent key-value store used for configuration management, service discovery, and coordinating distributed work. API Server When you interact with your Kubernetes cluster using the kubectl command-line interface, we are actually communicating with the master API Server component. Scheduler The Scheduler watches for unscheduled pods and binds them to nodes via the /binding pod subresource API, according to

Read more

Write down 10 features of Kubernetes with image

Kubernetes (also known as K8s) is open source software for deploying, scaling and managing containerized applications. As an orchestrator, Kubernetes handles the work of scheduling containers on a cluster and also manages the workloads to ensure they run as you intended. Features: Self-monitoring: Kubernetes checks constantly the health of nodes and containers Portable: Kubernetes offers portability, and faster, simpler deployment times.  High availability: Kubernetes addresses high availability at both the application and the infrastructure level.  Horizontal scaling: Kubernetes allows you scaling resources not only vertically

Read more

List out number of storage/volume drivers supported by docker?

Docker supports several storage drivers, using a pluggable architecture. The storage driver controls how images and containers are stored and managed on your Docker host.  The Docker Engine provides the following storage drivers on Linux: overlay2 – overlay2 is the preferred storage driver for all currently supported Linux distributions, and requires no extra configuration.fuse-overlayfs – fuse-overlayfsis preferred only for running Rootless Docker on a host that does not provide support for rootless overlay2. On Ubuntu and Debian 10, the fuse-overlayfs

Read more

List out all INSTRUCTION statement of dockerfile and give one line explanation.

FROM – Sets the base imageMAINTAINER – Sets the author field of the generated imagesRUN – Execute commands in a new layer on top of the current image and commit the resultsCMD – Allowed only once (if many then last one takes effect)LABEL – Adds metadata to an imageEXPOSE – Informs container runtime portENV – Sets an environment variableADD – Copy new files, directoriesCOPY – Copy new files or directories into the filesystem of the containerENTRYPOINT – Allows you to

Read more

What is Docker Images and Exaplin in 10 bullet lines?

• A Docker image is a file used to execute code in a Docker container.• Docker images act as a set of instructions to build a Docker container, like a template.• Docker images also act as the starting point when using Docker.• An image is comparable to a minimal lightweight snapshot in virtual machine (VM) environments.• Docker image contains application code, libraries, tools, dependencies and other files needed to make an application run.• When a user runs an image, it

Read more

What is Storage Driver and types of Storage Driver?

The Linux kernel device drivers are, essentially, a shared library of privileged, memory resident, low level hardware handling routines. It is Linux’s device drivers that handle the peculiarities of the devices they are managing. One of the basic features of is that it abstracts the handling of devices The following is a list of the types of docker storage driver which can be configured and their use case: • overlay2 – This is the preferred storage driver for all Linux distributions• aufs –

Read more

What is Docker Container ?

Containerization is the grouping together of software components with all it’s necessary dependent elements, like libraries, frameworks, and other dependencies so the software execution isolate in their own environment.Such isolated user spaces are called “Containers”, docker engine is a is such a a containerization platform, that packages application and its dependencies together in the form of a docker container and run in an isolated environment.Advantages of Container technologies – Lightweight, independent, easy to mange and performance efficient.

Read more