{"id":342125,"date":"2021-09-21T13:00:00","date_gmt":"2021-09-21T10:00:00","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/what-does-kubernetes-do-and-when-should-you-use-it-cloudsavvy-it\/"},"modified":"2021-09-21T13:00:00","modified_gmt":"2021-09-21T10:00:00","slug":"what-does-kubernetes-do-and-when-should-you-use-it-cloudsavvy-it","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/what-does-kubernetes-do-and-when-should-you-use-it-cloudsavvy-it\/","title":{"rendered":"#What Does Kubernetes Do, and When Should You Use It? \u2013 CloudSavvy IT"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a261d344eb81\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a261d344eb81\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/what-does-kubernetes-do-and-when-should-you-use-it-cloudsavvy-it\/#What_Does_Kubernetes_Do\" >What Does Kubernetes Do?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/what-does-kubernetes-do-and-when-should-you-use-it-cloudsavvy-it\/#Why_Use_Kubernetes\" >Why Use Kubernetes?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/buradabiliyorum.com\/en\/what-does-kubernetes-do-and-when-should-you-use-it-cloudsavvy-it\/#How_Do_I_Get_Started\" >How Do I Get Started?<\/a><\/li><\/ul><\/nav><\/div>\n<p><strong>&#8220;#What Does Kubernetes Do, and When Should You Use It? \u2013 CloudSavvy IT&#8221;<\/strong><\/p>\n<div id=\"article-content-area\">\n<img loading=\"lazy\" decoding=\"async\" class=\"type:primaryImage imgchk9 alignnone wp-image-544 size-full\" srcset=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2019\/06\/ce9584f2.png?width=398&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1 400w, https:\/\/www.cloudsavvyit.com\/p\/uploads\/2019\/06\/ce9584f2.png?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1 1200w\" sizes=\"auto, 400w, 1200w\" src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2019\/06\/ce9584f2.png?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Kubernetes service\" width=\"700\" height=\"300\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Kubernetes is an tool that manages all the moving parts behind running running <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">app<\/a>s in containers like Docker. This makes scaling your application very easy, because your server infrastructure is separated from the code running on it.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"What_Does_Kubernetes_Do\"><\/span>What Does Kubernetes Do?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Kubernetes is often mentioned alongside Docker, but they each accomplish different tasks. Docker packages up applications and all of their dependencies into single files, called container images, that can be ran on a server without any manual configuration. The Docker engine is similar to a virtual machine, but is much slimmer and more performant, designed simply for running a single application in an isolated environment.<\/p>\n<p>Kubernetes is an orchestration engine, and provides a platform for running Docker images on. It supports using Docker images, as they\u2019re by far the most popular container format. Containers allow your code to be distributed very easily without worrying about whether the server is configured to run the code properly.<\/p>\n<p>A master Kubernetes server will manage a cluster of worker nodes. These worker nodes can run any number of containers, which are packaged in Kubernetes Pods. The master server handles the deployment of Pods onto worker nodes, and tries to maintain a set configuration. If your application meets more traffic, Kubernetes can provision more resources, and if one of your servers runs into issues, Kubernetes can move the Pods on that server over to the rest of the network while you fix the issue.<\/p>\n<figure style=\"width: 700px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"imgchk9 wp-image-550 size-full\" src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2019\/06\/b160acc4.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Master Kubernetes server manages a cluster of worker nodes that run any number of containers, packaged in Kubernetes Pods.\" width=\"700\" height=\"300\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><figcaption class=\"wp-caption-text\">Kubernetes worker nodes, with multiple pods running on them.<\/figcaption><\/figure>\n<p>But while Kubernetes provides a lot of features of a Platform as a Service (PaaS) system, it doesn\u2019t actually provision any hardware. Kubernetes is pure software, and is open source. PaaS systems like <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/aws.amazon.com\/eks\/?tag=reviewgeek-20\">AWS EKS<\/a>\u00a0build on top of Kubernetes, and in many cases offer it the ability to provision more resources for itself (auto-scaling).<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Why_Use_Kubernetes\"><\/span>Why Use Kubernetes?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Kubernetes brings with it all the benefits of Docker, and containerization in <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/general\/\" data-internallinksmanager029f6b8e52c=\"3\" title=\"General\" target=\"_blank\" rel=\"noopener\">general<\/a>. Containers help keep your code organized and managed, with all the dependencies in one place. Your code will run the same in a development and testing environment as it does in production, no surprises.<\/p>\n<p>The Docker images being run on the Kubernetes platform are separate from the platform itself, and have no idea that they\u2019re being run in Kubernetes pods. This decoupling of applications from infrastructure makes Kubernetes extremely powerful as a replacement for your existing deployment cycle. You won\u2019t have to worry about whether your code will run properly on your servers.<\/p>\n<p>A quick development cycle puts more pressure on your Ops team to worry about actually running your code. If you\u2019re having issues managing the installation and configuration of your app across your servers every time your code needs updating, Kubernetes can make that much faster.<\/p>\n<p>And if you really just don\u2019t like configuring and managing servers, a managed Kubernetes service like <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/aws.amazon.com\/eks\/?tag=reviewgeek-20\">AWS EKS<\/a>\u00a0can alleviate that issue, and take your app \u201cserverless.\u201d<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"How_Do_I_Get_Started\"><\/span>How Do I Get Started?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Kubernetes is service agnostic, so you can set it up yourself on your own servers if you\u2019d like. However, Kubernetes is pretty complicated, so there are many turnkey solutions from the major cloud providers that use their resources to power your worker nodes. They will all be Kubernetes compliant, so you\u2019ll be able to switch between them with minimal issues.<\/p>\n<p>If you\u2019d like to set it up yourself, you can do so with the <code>kubeadm<\/code>\u00a0toolbox. You\u2019ll need a master machine to run <code>kubeadm<\/code>\u00a0on, which will control one or more worker machines running <code>kubelet<\/code>. The master machine manages deployment of the container to the worker machines. You can read their <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/kubernetes.io\/docs\/setup\/independent\/create-cluster-kubeadm\/\">getting started guide in the Kubernetes docs<\/a>\u00a0for more information, but be prepared for a night of configuring.<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/aws.amazon.com\/eks\/?tag=reviewgeek-20\">AWS EKS<\/a> is Amazon\u2019s solution, which can run Kubernetes apps across multiple AWS availability zones. EKS doesn\u2019t require much configuration at all; all you have to do is provision new nodes. You pay\u00a0$0.20 per hour ($150 per month) for each running cluster, as well as paying for the EC2 and EBS resources your worker nodes consume.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"imgchk9 alignnone wp-image-527 size-full\" src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2019\/06\/d265da2c-1.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"AWS EKS can run Kubernetes apps across multiple AWS availability zones\" width=\"700\" height=\"200\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>If you don\u2019t need a full Kubernetes cluster, but would still like to run containerized apps, you can use AWS\u2019s\u00a0<a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/aws.amazon.com\/ecs\/?tag=reviewgeek-20\">Elastic Container Service (ECS)<\/a>. ECS runs Docker containers, and has its own scaling system.<\/p>\n<p>Microsoft\u2019s <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/azure.microsoft.com\/en-us\/services\/kubernetes-service\/\">Azure Kubernetes Service (AKS)<\/a> is a managed Kubernetes service that integrates well with an Azure pipeline, making it easy to go from code in source control to containers deployed across your Kubernetes cluster.<\/p>\n<p>Google is the original creator of Kubernetes, so naturally they offer <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/cloud.google.com\/kubernetes-engine\/\">a managed Kubernetes<\/a> service through Google Cloud Platform.\n<\/div>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.cloudsavvyit.com\/519\/what-does-kubernetes-do-and-when-should-you-use-it\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#What Does Kubernetes Do, and When Should You Use It? \u2013 CloudSavvy IT&#8221; Kubernetes is an tool that manages all the moving parts behind running running apps in containers like Docker. This makes scaling your application very easy, because your server infrastructure is separated from the code running on it. What Does Kubernetes Do? Kubernetes&#8230;<\/p>\n","protected":false},"author":1,"featured_media":342126,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2019\/06\/ce9584f2.png","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-342125","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/342125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=342125"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/342125\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/342126"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=342125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=342125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=342125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}