General understanding of Docker and Kubernetes

1 Likes
over 1 year ago

Question1: 

What is Docker? 

Answer

Docker is a containerization platform that packages the application and all its dependencies together in the form of a docker container to ensure that the application works seamlessly in any environment.

Question2:

What is Docker Daemon?

Answer

Docker comes with Docker Daemon, which is the main program managing containers. Docker Daemon allows access to its features through Docker Engine API, used by Docker Command-Line Interface (CLI).

Question3:

What's a Docker image?

Answer

An image is a dormant, immutable, file that's a snapshot of a container. Images are created with the build command, and they'll produce a container when started with run.

Images are stored in a Docker registry such as registry.hub.docker.com. As images can become quite large, they are designed to be composed of layers of other images, allowing a minimal amount of data to be sent when transferring images over the network.

Question4:

What's a docker container?

Answer

In a programming metaphor, if a docker image is a class, then a docker container is an instance of a class—a runtime object. Container refers to operating system-level virtualization.

Question5:

What's Kubernetes?

Answer

Kubernetes is a popular container orchestration program. It’s a portable abstraction that’s compatible with the main cloud providers i.e. Google Cloud, Amazon Web Services, and Microsoft Azure.

Question6:

What's a Pod in Kubernetes?

Answer

A Pod encapsulates

  • one or more closely related containers
  • storage resources
  • a unique network IP
  • and configurations on how the container(s) should run.

A pod is a basic unit that Kubernetes deals with and thereby represents a single instance of an application. Kubernetes Pods are mortal, when they die, they are not resurrected.

Question7:

What's a Node in the Kubernetes?

Answer

A Node is a worker machine in Kubernetes and may be either a virtual or a physical machine, depending on the cluster. Each Node is managed by the Master. A Node can have multiple pods.

Question8:

What's a Service in Kubernetes?

Answer

Service is an abstraction that defines a logical set of Pods and a policy by which to access them, sometimes this pattern is called a micro-service. In other terms, Services are an interface to a group of containers so that consumers do not have to worry about anything beyond a single access location.

Question9:

What're Persistent Volumes in Kubernetes?

Answer

To store data permanently, Kubernetes uses Persistent Volumes. Persistent Volumes provide a file system that can be mounted to the cluster, without being associated with any particular node.

Question10:

What is helm in Kubernetes?

Answer

Helm is a package manager for Kubernetes applications. In other terms, a helm is a tool for managing Kubernetes charts.

Question11:

What are the helm charts in Kubernetes?

Answer

A Helm chart is simply a collection of YAML template files organized into a specific directory structure. In other term, charts are packages of pre-configured Kubernetes resources.

Helm helps you manage Kubernetes applications whereas Helm Charts help you define, install, and upgrade even the most complex Kubernetes application.

Kubernetes is quickly becoming the new standard for deploying and managing software in the cloud.

 

Labels:

Education-Training
Other
Comment List
Anonymous
Related Discussions
Recommended