DevOps - Practical-Oral Examination QB
DevOps - Practical-Oral Examination QB
Sub: DevOps
Unit 1
Unit 2
Unit 3
Unit 4
Unit 5
Unit 6
Ans: Docker Swarm is Docker’s native, open-source container orchestration platform that is
used to cluster and schedule Docker containers. Swarm differs from Kubernetes in the
following ways:
Docker Swarm is more convenient to set up but doesn’t have a robust cluster, while
Kubernetes is more complicated to set up but the benefit of having the assurance of a
robust cluster
Docker Swarm can’t do auto-scaling (as can Kubernetes); however, Docker scaling is five
times faster than Kubernetes
Docker Swarm doesn’t have a GUI; Kubernetes has a GUI in the form of a dashboard
Docker Swarm does automatic load balancing of traffic between containers in a cluster,
while Kubernetes requires manual intervention for load balancing such traffic
Docker requires third-party tools like ELK stack for logging and monitoring, while
Kubernetes has integrated tools for the same
Docker Swarm can share storage volumes with any container easily, while Kubernetes can
only share storage volumes with containers in the same pod
Docker can deploy rolling updates but can’t deploy automatic rollbacks; Kubernetes can
deploy rolling updates as well as automatic rollbacks
ANs: Kubernetes provides a command line tool for communicating with a Kubernetes
cluster's control plane, using the Kubernetes API.
This tool is named kubectl. kubectl is a command line tool that enables communications
between the Kubernetes API and the control plane. kubectl allows application deployment,
cluster resource management, and resource monitoring. Overall, all CRUD operations
(Create, Read, Update, and Delete) on Kubernetes resources are carried out with kubectl’s
help. The tool is compatible with all major operating systems, such as Linux, Windows, and
Mac OS.
Ans: Docker builds containers, which then communicate with each other via Kubernetes.
Kubernetes supports multiple container runtimes, including Docker, CRI-O, and others. In
simple terms, Kubernetes is analogous to an operating system, and Docker containers are
comparable to applications installed on that operating system.
Docker is a containerization platform that allows developers to package and distribute their
applications as self-contained units, known as containers. Kubernetes, on the other hand, is a
container orchestration platform that automates the deployment, scaling, and management of
containerized applications.
The two technologies, Kubernetes and Docker, work together to enable the deployment and
management of applications in a distributed environment.