{"id":417,"date":"2020-07-14T19:41:10","date_gmt":"2020-07-14T17:41:10","guid":{"rendered":"http:\/\/hentati.org\/?p=417"},"modified":"2020-11-25T22:52:26","modified_gmt":"2020-11-25T21:52:26","slug":"docker-vs-kubernetes","status":"publish","type":"post","link":"https:\/\/hentati.org\/index.php\/2020\/07\/14\/docker-vs-kubernetes\/","title":{"rendered":"Docker vs Kubernetes"},"content":{"rendered":"<h2><span style=\"color: #000000;\">What is Docker?<\/span><\/h2>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" class=\"alignnone wp-image-421\" src=\"http:\/\/hentati.org\/wp-content\/uploads\/2020\/11\/docker-debian-71-296x300.png\" alt=\"\" width=\"738\" height=\"748\" srcset=\"https:\/\/hentati.org\/wp-content\/uploads\/2020\/11\/docker-debian-71-296x300.png 296w, https:\/\/hentati.org\/wp-content\/uploads\/2020\/11\/docker-debian-71.png 464w\" sizes=\"(max-width: 738px) 100vw, 738px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">Docker is a container technology launched in 2013 by the company of the same name. There are two versions: the \u201cEnterprise\u201d version and the \u201cCommunity\u201d version (sufficient in most cases).<\/span><\/p>\n<p><span style=\"color: #000000;\">A container is a way of virtualizing a system (OS) in order to \u201crun\u201d an application. You can easily package your application code, its configurations and dependencies. Then you can build and launch that image quickly and anywhere.<\/span><\/p>\n<p><span style=\"color: #000000;\">Docker&#8217;s core technology is based on the linux chroot command and cgroups. The first allows a folder in the filesystem to be considered a root folder and therefore to be isolated from the rest of the system. The second limits the resources of the first.<\/span><\/p>\n<p><span style=\"color: #000000;\">Docker is often referred to as the \u201cnew virtual machine\u201d, with containers being lighter and faster. The main cause is the lack of a \u201cGuest Operating System\u201d in a container.<\/span><\/p>\n<p><span style=\"color: #000000;\">Containers, and therefore Docker, allow teams to narrow the gap between development, validation and production environments. This makes it possible to relegate the famous \u201cit works on my machine\u201d to the past. Also, since it uses less resources, it is easier to scale, a container that can be launched in seconds.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"color: #000000;\">What is Kubernetes?<\/span><\/h2>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" class=\"alignnone wp-image-420\" src=\"http:\/\/hentati.org\/wp-content\/uploads\/2020\/11\/kubernetes-300x245.png\" alt=\"\" width=\"740\" height=\"604\" srcset=\"https:\/\/hentati.org\/wp-content\/uploads\/2020\/11\/kubernetes-300x245.png 300w, https:\/\/hentati.org\/wp-content\/uploads\/2020\/11\/kubernetes-768x628.png 768w, https:\/\/hentati.org\/wp-content\/uploads\/2020\/11\/kubernetes.png 1000w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">Kubernetes is an orchestration tool launched by Google in 2014, mainly inspired by an internal tool called Borg. Borg was a cluster management system capable of handling thousands of tasks. This is a huge open source project, making it into the top 10 Github projects, to which over 2000 people have contributed. In addition, there is a large eco-system around Kubernetes managed by the Cloud Native Computing Foundation with monitoring tools like Prometheus, logging like Fluentd, or package management like Helm.<\/span><\/p>\n<p><span style=\"color: #000000;\">Keeping containers active is difficult, and that&#8217;s why Kubernetes exists. As Kubernetes declares the required number of instances of a container, if a container crashes, a new one will be automatically created and integrated into the existing network with a powerful auto-discovery feature.<\/span><\/p>\n<p><span style=\"color: #000000;\">In addition, it allows you to do &#8220;canary releases&#8221;, or &#8220;rolling updates&#8221; easily, so the objective of having &#8220;0 downtime&#8221; is no longer endangered by a deployment.<\/span><\/p>\n<p><span style=\"color: #000000;\">Other container orchestrators exist, such as Docker Swarm, but they are not as powerful as Kubernetes. Their secret management or load-balancing services are not as complete as those offered by Kubernetes.<\/span><\/p>\n<p><span style=\"color: #000000;\">In addition, all the major cloud providers offer managed services for Kubernetes: AKS for Azure, GKE for Google Cloud Platform and EKS for AWS.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\"><strong>Head to Head Comparison between Kubernetes vs Docker :<\/strong><\/span><\/h3>\n<table width=\"714\">\n<tbody>\n<tr>\n<td><span style=\"color: #000000;\"><strong>Parameters<\/strong><\/span><\/td>\n<td><span style=\"color: #000000;\"><strong>Kubernetes<\/strong><\/span><\/td>\n<td><span style=\"color: #000000;\"><strong>Docker<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><strong>Set-Up<\/strong><\/span><\/td>\n<td><span style=\"color: #000000;\">Few manual steps are required to set up the master and worker node of components of Kubernetes.<\/span><\/td>\n<td><span style=\"color: #000000;\">Requires simple Linux commands to set-up.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><strong>Application Deployment<\/strong><\/span><\/td>\n<td><span style=\"color: #000000;\">Applications are deployed in Kubernetes by using a combination of pods and services.<\/span><\/td>\n<td><span style=\"color: #000000;\">Swarm, the deployment of an application takes place as microservices or services in a swarm cluster.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><strong>Availability<\/strong><\/span><\/td>\n<td><span style=\"color: #000000;\">Kubernetes offers a higher availability than Docker Swarm does.<\/span><\/td>\n<td><span style=\"color: #000000;\">Offers high availability<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><strong>Container Setup<\/strong><\/span><\/td>\n<td><span style=\"color: #000000;\">It provides a strong cluster state and unified set of APIs which slows down the deployment of scaling and containers.<\/span><\/td>\n<td><span style=\"color: #000000;\">Deployment of containers in Docker is done faster for larger clusters.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><strong>Load Balancing<\/strong><\/span><\/td>\n<td><span style=\"color: #000000;\">Load balancing can be performed but by configuring the services manually using container pods.<\/span><\/td>\n<td><span style=\"color: #000000;\">It consists of load balancing where all the containers in a cluster join the common network and allow the connection between the nodes and containers.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><strong>Networking<\/strong><\/span><\/td>\n<td><span style=\"color: #000000;\">It follows a flat network model so, all pods are allowed to interact with one another.<\/span><\/td>\n<td><span style=\"color: #000000;\">In Docker Swarm, the node joining a swarm cluster is responsible for generating an overlay network for services, which covers each host in the cluster.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><strong>Scalability<\/strong><\/span><\/td>\n<td><span style=\"color: #000000;\">Kubernetes is a comprehensive framework for distributed systems.<\/span><\/td>\n<td><span style=\"color: #000000;\">Docker Swarm is able to deploy containers at a much faster speed.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><strong>Upgradation<\/strong><\/span><\/td>\n<td><span style=\"color: #000000;\">Manual up-gradation of Kubernetes Client and Server packages need to be manually performed.<\/span><\/td>\n<td><span style=\"color: #000000;\">Upgradation Docker can be done one by one step in MAC or Windows through a single click.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\"><strong>Conclusion<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">That sums up the Kubernetes and Docker comparison. Hope all your queries are resolved now. Both (Docker vs Kubernetes) are by far two of the most used technologies in the cloud computing industry. Hence, it is high time to start using them if you haven\u2019t already.<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is Docker? Docker is a container technology launched in 2013 by the company of the same name. There are two versions: the \u201cEnterprise\u201d version and the \u201cCommunity\u201d version (sufficient &#8230;<\/p>\n","protected":false},"author":1,"featured_media":424,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[8],"tags":[],"_links":{"self":[{"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/posts\/417"}],"collection":[{"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/comments?post=417"}],"version-history":[{"count":6,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/posts\/417\/revisions"}],"predecessor-version":[{"id":439,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/posts\/417\/revisions\/439"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/media\/424"}],"wp:attachment":[{"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/media?parent=417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/categories?post=417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hentati.org\/index.php\/wp-json\/wp\/v2\/tags?post=417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}