{"id":7144,"date":"2018-10-25T18:21:18","date_gmt":"2018-10-25T15:21:18","guid":{"rendered":"https:\/\/www.howtoforge.com\/tutorial\/how-to-install-kubernetes-on-ubuntu\/"},"modified":"2018-10-25T18:21:18","modified_gmt":"2018-10-25T15:21:18","slug":"how-to-install-and-configure-kubernetes-and-docker-on-ubuntu-18-04-lts","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/how-to-install-and-configure-kubernetes-and-docker-on-ubuntu-18-04-lts\/","title":{"rendered":"How to Install and Configure Kubernetes and Docker on Ubuntu 18.04 LTS"},"content":{"rendered":"<p>Kubernetes is an open source platform for managing containerized applications. It allows you to manage, scale, and automatically deploy your containerized applications in the clustered environment.\u00a0Kubernetes is developed by Google.<\/p>\n<p>With Kubernetes, you can orchestrate containers across multiple hosts, scale the containerized applications with all resources on the fly, and have a centralized container management environment.<\/p>\n<p>In this tutorial, I will show you step-by-step how to install and configure Kubernetes on Ubuntu 18.04. We will be using 1 server &#8216;k8s-master&#8217; as the Kubernetes Host Master, and 2 servers as Kubernetes workers, &#8216;worker01&#8217; and &#8216;worker02&#8217;.<\/p>\n<h2 id=\"prerequisites\">Prerequisites<\/h2>\n<ul>\n<li>3 Ubuntu Servers<\/li>\n<ul>\n<li>10.0.15.10\u00a0 k8s-master<\/li>\n<li>10.0.15.21\u00a0 worker01<\/li>\n<li>10.0.15.22\u00a0 worker02<\/li>\n<\/ul>\n<li>Root privileges<\/li>\n<\/ul>\n<h2 id=\"what-we-will-do\">What we will do<\/h2>\n<ol>\n<li>Kubeadm Installation<\/li>\n<ol>\n<li>Setup Hosts<\/li>\n<li>Install Docker<\/li>\n<li>Disable SWAP<\/li>\n<li>Install Kubeadm Packages<\/li>\n<\/ol>\n<li>Kubernetes Cluster Initialization<\/li>\n<li>Adding Worker Nodes to the Kubernetes Cluster<\/li>\n<li>Testing<\/li>\n<\/ol>\n<h2 id=\"step-kubeadm-installation\">Step 1 &#8211; Kubeadm Installation<\/h2>\n<p>In this first step, we will prepare those 3 servers for Kubernetes installation, so run all commands on the master and worker nodes.<\/p>\n<p>We will prepare all servers for Kubernetes installation by changing the existing configuration on servers, and also installing some packages, including docker and kubernetes itself.<\/p>\n<h3 id=\"setup-hosts\">Setup Hosts<\/h3>\n<p>Edit hosts file on all server using the\u00a0<a href=\"https:\/\/www.howtoforge.com\/vim-basics\" target=\"_blank\" rel=\"noopener noreferrer\">vim<\/a> editor.<\/p>\n<p class=\"command\">sudo vim \/etc\/hosts<\/p>\n<p>Paste hosts configuration below.<\/p>\n<pre>10.0.15.10 k8s-master&#13;\n10.0.15.21 worker01&#13;\n10.0.15.22 worker02<\/pre>\n<p>Save and exit.<\/p>\n<p>Now test ping all servers hostname.<\/p>\n<p class=\"command\">ping -c 3 k8s-master<br \/>ping -c 3 worker01<br \/>ping -c 3 worker02<\/p>\n<p>Make sure all IP address get resolved as a hostname.<\/p>\n<p><a class=\"fancybox\" id=\"img-1\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_kubernetes_on_ubuntu_1804\/big\/1.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-and-configure-kubernetes-and-docker-on-ubuntu-18-04-lts.png\" alt=\"Install kubeadm\" width=\"500\" height=\"477\" title=\"\"><\/a><\/p>\n<h3 id=\"install-docker\">Install Docker<\/h3>\n<p>In this tutorial, we will install Docker from the Ubuntu repository.<\/p>\n<p>Install Docker using the apt command below.<\/p>\n<p class=\"command\">sudo apt install docker.io -y<\/p>\n<p>After the installation is complete, start the docker service and enable it to launch everytime at system boot.<\/p>\n<p class=\"command\">sudo systemctl start docker<br \/>sudo systemctl enable docker<\/p>\n<p>Docker installation has been completed.<\/p>\n<p><a class=\"fancybox\" id=\"img-2\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_kubernetes_on_ubuntu_1804\/big\/2.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-and-configure-kubernetes-and-docker-on-ubuntu-18-04-lts-1.png\" alt=\"Install Docker\" width=\"500\" height=\"169\" title=\"\"><\/a><\/p>\n<h3 id=\"disable-swap\">Disable SWAP<\/h3>\n<p>In order to set up the Kubernetes Linux servers, we need to disable the SWAP.<\/p>\n<p>Check the swap list and disable it.<\/p>\n<p class=\"command\">sudo swapon -s<br \/>sudo swapoff -a<\/p>\n<p>To disable the SWAP permanently, we need to edit the &#8216;\/etc\/fstab&#8217; file.<\/p>\n<p class=\"command\">sudo vim \/etc\/fstab<\/p>\n<p>Make a comment on the SWAP partition type.<\/p>\n<pre>#\/dev\/mapper\/hakase--labs--vg-swap_1 none swap sw 0 0<\/pre>\n<p><a class=\"fancybox\" id=\"img-3\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_kubernetes_on_ubuntu_1804\/big\/3.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-and-configure-kubernetes-and-docker-on-ubuntu-18-04-lts-2.png\" alt=\"Disable swap space\" width=\"500\" height=\"132\" title=\"\"><\/a><\/p>\n<p>Save and exit, then reboot the system.<\/p>\n<p class=\"command\">sudo reboot<\/p>\n<h3 id=\"install-kubeadm-packages\">Install Kubeadm Packages<\/h3>\n<p>In this tutorial, we will be using Kubeadm packages to set up the Kubernetes Cluster. We will install the Kubeadm packages from the official Kubernetes repository.<\/p>\n<p>Install apt-transport-https.<\/p>\n<p class=\"command\">sudo apt install -y apt-transport-https<\/p>\n<p>Add the Kubernetes Key.<\/p>\n<p class=\"command\">curl -s https:\/\/packages.cloud.google.com\/apt\/doc\/apt-key.gpg | sudo apt-key add &#8211;<\/p>\n<p>And add the Kubernetes Repository by creating a new repo.list file on the &#8216;\/etc\/apt\/sources.list.d&#8217; directory.<\/p>\n<p class=\"command\">cd \/etc\/apt\/<br \/>sudo vim sources.list.d\/kubernetes.list<\/p>\n<p>paste kubernetes repository below.<\/p>\n<p class=\"command\">deb http:\/\/apt.kubernetes.io\/ kubernetes-xenial main<\/p>\n<p>Note:<\/p>\n<p>We&#8217;re still using the Xenial Ubuntu 16.04 repository for our Kubeadm Installation.<\/p>\n<p>Now update the repository and install kubeadm packages using apt commands below.<\/p>\n<p class=\"command\">sudo apt update<br \/>sudo apt install -y kubeadm kubelet kubectl<\/p>\n<p>Wait for kubeadm packages installations.<\/p>\n<p><a class=\"fancybox\" id=\"img-4\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_kubernetes_on_ubuntu_1804\/big\/4.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-and-configure-kubernetes-and-docker-on-ubuntu-18-04-lts-3.png\" alt=\"Install kubeadm package\" width=\"500\" height=\"421\" title=\"\"><\/a><\/p>\n<h2 id=\"step-kubernetes-cluster-initialization\">Step 2 &#8211; Kubernetes Cluster Initialization<\/h2>\n<p>In this step, we will initialize Kubernetes on the &#8216;k8s-master&#8217; node. Run all commands in this stage only on the &#8216;k8s-master&#8217; server.<\/p>\n<p>Initialize the Kubernetes cluster using the kubeadm command below.<\/p>\n<p class=\"command\">sudo kubeadm init &#8211;pod-network-cidr=10.244.10.0\/16 &#8211;apiserver-advertise-address=10.0.15.10 &#8211;kubernetes-version &#8220;1.11.0&#8221;<\/p>\n<p><strong>Note:<\/strong><\/p>\n<ul>\n<li><em>&#8211;apiserver-advertise-address<\/em> = determines which IP address Kubernetes should advertise its API server on.<\/li>\n<li><em>&#8211;pod-network-cidr<\/em> = specify the range of IP addresses for the pod network. We&#8217;re using the &#8216;flannel&#8217; virtual network. If you want to use another pod network such as weave-net or calico, change the range IP address.<\/li>\n<\/ul>\n<p>When the Kubernetes initialization is complete, you will get the result as shown below.<\/p>\n<p><a class=\"fancybox\" id=\"img-5\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_kubernetes_on_ubuntu_1804\/big\/5.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-and-configure-kubernetes-and-docker-on-ubuntu-18-04-lts-4.png\" alt=\"Initialize Kubernetes Cluster\" width=\"500\" height=\"137\" title=\"\"><\/a><\/p>\n<p>Copy the &#8216;<strong>kubeadm join &#8230; &#8230; &#8230;<\/strong>&#8216; command to your text editor. The command will be used to register new worker nodes to the kubernetes cluster.<\/p>\n<p>Now in order to use Kubernetes, we need to run some commands as shown in the result.<\/p>\n<p>Create new &#8216;.kube&#8217; configuration directory and copy the configuration &#8216;admin.conf&#8217; from &#8216;\/etc\/kubernetes&#8217; directory.<\/p>\n<p class=\"command\">mkdir -p $HOME\/.kube<br \/>sudo cp -i \/etc\/kubernetes\/admin.conf $HOME\/.kube\/config<br \/>sudo chown $(id -u):$(id -g) $HOME\/.kube\/config<\/p>\n<p>Next, deploy the flannel network to the kubernetes cluster using the kubectl command.<\/p>\n<p class=\"command\">kubectl apply -f https:\/\/raw.githubusercontent.com\/coreos\/flannel\/master\/Documentation\/kube-flannel.yml<\/p>\n<p>The flannel network has been deployed to the Kubernetes cluster.<\/p>\n<p><a class=\"fancybox\" id=\"img-6\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_kubernetes_on_ubuntu_1804\/big\/6.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-and-configure-kubernetes-and-docker-on-ubuntu-18-04-lts-5.png\" alt=\"Deploy flannel network\" width=\"500\" height=\"189\" title=\"\"><\/a><\/p>\n<p>Wait for a minute and then check kubernetes node and pods using commands below.<\/p>\n<p class=\"command\">kubectl get nodes<br \/>kubectl get pods &#8211;all-namespaces<\/p>\n<p>And you will get the &#8216;k8s-master&#8217; node is running as a &#8216;master&#8217; cluster with status &#8216;ready&#8217;, and all &#8216;kube-system&#8217; pods that are needed for the cluster is up and running.<\/p>\n<p><a class=\"fancybox\" id=\"img-7\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_kubernetes_on_ubuntu_1804\/big\/7.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-and-configure-kubernetes-and-docker-on-ubuntu-18-04-lts-6.png\" alt=\"get node list\" width=\"500\" height=\"177\" title=\"\"><\/a><\/p>\n<p>Kubernetes cluster master initialization and configuration has been completed.<\/p>\n<h2 id=\"step-adding-worker-nodes-to-the-kubernetes-cluster\">Step 3 &#8211; Adding Worker Nodes to the Kubernetes Cluster<\/h2>\n<p>In this step, we will add two node workers &#8216;worker01&#8217; and &#8216;worker02&#8217; to the Kubernetes Cluster.<\/p>\n<p>Connect to the &#8216;worker01&#8217; server and run the kubeadm join command that you get from the cluster <span>initialization<\/span>.<\/p>\n<p class=\"command\">kubeadm join 10.0.15.10:6443 &#8211;token daync8.5dcgj6c6xc7l8hay &#8211;discovery-token-ca-cert-hash sha256:65a3e69531d323c335613dea1e498656236bba22e6cf3d5c54b21d744ef97dcd<\/p>\n<p><a class=\"fancybox\" id=\"img-8\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_kubernetes_on_ubuntu_1804\/big\/8.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-and-configure-kubernetes-and-docker-on-ubuntu-18-04-lts-7.png\" alt=\"Adding Worker Nodes to the Kubernetes Cluster\" width=\"500\" height=\"159\" title=\"\"><\/a><\/p>\n<p>Connect to the &#8216;worker02&#8217; server and run the kubeadm join command that you get from the cluster intialization..<\/p>\n<p class=\"command\">kubeadm join 10.0.15.10:6443 &#8211;token daync8.5dcgj6c6xc7l8hay &#8211;discovery-token-ca-cert-hash sha256:65a3e69531d323c335613dea1e498656236bba22e6cf3d5c54b21d744ef97dcd<\/p>\n<p><a class=\"fancybox\" id=\"img-9\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_kubernetes_on_ubuntu_1804\/big\/9.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-and-configure-kubernetes-and-docker-on-ubuntu-18-04-lts-8.png\" alt=\"Add second worker node\" width=\"500\" height=\"162\" title=\"\"><\/a><\/p>\n<p>Wait for some minutes and back to the &#8216;k8s-master&#8217; node master and check node status.<\/p>\n<p class=\"command\">kubectl get nodes<\/p>\n<p>You will see those worker nodes &#8216;worker01&#8217; and &#8216;worker02&#8217; are part of the Kubernetes Cluster.<\/p>\n<p><a class=\"fancybox\" id=\"img-10\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_kubernetes_on_ubuntu_1804\/big\/10.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-and-configure-kubernetes-and-docker-on-ubuntu-18-04-lts-9.png\" alt=\"List nodes\" width=\"500\" height=\"146\" title=\"\"><\/a><\/p>\n<h2 id=\"step-testing\">Step 4 &#8211; Testing<\/h2>\n<p>In this step, we will deploy the Nginx web server inside the cluster. We will deploy the Nginx web server using the YAML template.<\/p>\n<p>Create a new directory named &#8216;nginx&#8217; and go to that directory.<\/p>\n<p class=\"command\">mkdir -p nginx\/<br \/>cd nginx\/<\/p>\n<p>Now create the Nginx Deployment YAML file &#8216;nginx-deployment.yaml&#8217; using the <a href=\"https:\/\/www.howtoforge.com\/vim-basics\" target=\"_blank\" rel=\"noopener noreferrer\">vim<\/a> editor.<\/p>\n<p class=\"command\">sudo vim nginx-deployment.yaml<\/p>\n<p>Paste configurations below.<\/p>\n<pre>apiVersion: apps\/v1&#13;\nkind: Deployment&#13;\nmetadata:&#13; name: nginx-deployment&#13; labels:&#13; app: nginx&#13;\nspec:&#13; replicas: 3&#13; selector:&#13; matchLabels:&#13; app: nginx&#13; template:&#13; metadata:&#13; labels:&#13; app: nginx&#13; spec:&#13; containers:&#13; - name: nginx&#13; image: nginx:1.14.0&#13; ports:&#13; - containerPort: 80<\/pre>\n<p>Save and exit.<\/p>\n<p>Note:<\/p>\n<ul>\n<li>We&#8217;re creating a new &#8216;Deployment&#8217; named &#8216;nginx-deployment&#8217;.<\/li>\n<li>Setup the app label as &#8216;nginx&#8217; with &#8216;3&#8217; replicas.<\/li>\n<li>The &#8216;nginx-deployment&#8217; will have containers named &#8216;nginx&#8217;, based on &#8216;nginx:1.14.0&#8217; docker image, and will expose the default HTTP port 80.<\/li>\n<\/ul>\n<p>Now create the deployment by running the kubectl command below.<\/p>\n<p class=\"command\">kubectl create -f nginx-deployment.yaml<\/p>\n<p>After creating a new &#8216;nginx-deployment&#8217;, check the deployments list inside the cluster.<\/p>\n<p class=\"command\">kubectl get deployments<br \/>kubectl describe deployment nginx-deployment<\/p>\n<p><a class=\"fancybox\" id=\"img-11\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_kubernetes_on_ubuntu_1804\/big\/11.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-and-configure-kubernetes-and-docker-on-ubuntu-18-04-lts-10.png\" alt=\"Test Kubernetes\" width=\"500\" height=\"503\" title=\"\"><\/a><\/p>\n<p>Now check Kubernetes Pods and you will see the &#8216;nginx-deployment-xxx&#8217; pod, check details of the pod.<\/p>\n<p class=\"command\">kubectl get pods<br \/>kubectl describe pods nginx-deployment-6cb5f7bf4f-t5xfh<\/p>\n<p>You will get nginx-deployment pods with 3 replicas on the worker nodes.<\/p>\n<p><a class=\"fancybox\" id=\"img-12\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_kubernetes_on_ubuntu_1804\/big\/12.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-and-configure-kubernetes-and-docker-on-ubuntu-18-04-lts-11.png\" alt=\"Get pods\" width=\"500\" height=\"535\" title=\"\"><\/a><\/p>\n<p>Next, we need to create a new service for our &#8216;nginx-deployment&#8217;.<\/p>\n<p>Create a new YAML file named &#8216;nginx-service.yaml&#8217;.<\/p>\n<p class=\"command\">vim nginx-service.yaml<\/p>\n<p>Paste the configuration below.<\/p>\n<pre>apiVersion: v1&#13;\nkind: Service&#13;\nmetadata:&#13; name: nginx-service&#13; labels:&#13; run: nginx-service&#13;\nspec:&#13; type: NodePort&#13; ports:&#13; - port: 80&#13; protocol: TCP&#13; selector:&#13; app: nginx<\/pre>\n<p>Save and exit.<\/p>\n<p>Note:<\/p>\n<ul>\n<li>We&#8217;re creating a new kubernetes service named &#8216;nginx-service&#8217;.<\/li>\n<li>Type of the service is &#8216;NodePort&#8217; with the TargetPort HTTP default port 80.<\/li>\n<li>The service belongs to the app named &#8216;nginx&#8217; based on our deployment &#8216;nginx-deployment&#8217;.<\/li>\n<\/ul>\n<p>Create the kubernetes service using the kubectl command below.<\/p>\n<p class=\"command\">kubectl create -f nginx-service.yaml<\/p>\n<p>Now check all available services on the cluster and you will get the &#8216;nginx-service&#8217; on the list, then check details of service.<\/p>\n<p class=\"command\">kubectl get service<br \/>kubectl describe service nginx-service<\/p>\n<p><a class=\"fancybox\" id=\"img-13\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_kubernetes_on_ubuntu_1804\/big\/13.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-and-configure-kubernetes-and-docker-on-ubuntu-18-04-lts-12.png\" alt=\"Configure nginx service\" width=\"500\" height=\"418\" title=\"\"><\/a><\/p>\n<p>And you will see the &#8216;nginx-service&#8217; NodePort is running on port &#8216;32649&#8217;.<\/p>\n<p>Check using the curl command to all worker nodes.<\/p>\n<p>On the worker01.<\/p>\n<p class=\"command\">curl worker01:32649<\/p>\n<p><a class=\"fancybox\" id=\"img-14\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_kubernetes_on_ubuntu_1804\/big\/14.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-and-configure-kubernetes-and-docker-on-ubuntu-18-04-lts-13.png\" alt=\"Test nginx with curl\" width=\"500\" height=\"435\" title=\"\"><\/a><\/p>\n<p>You will see the Nginx default page.<\/p>\n<p>On the worker02.<\/p>\n<p class=\"command\">curl worker02:32649<\/p>\n<p><a class=\"fancybox\" id=\"img-15\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_kubernetes_on_ubuntu_1804\/big\/15.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-and-configure-kubernetes-and-docker-on-ubuntu-18-04-lts-14.png\" alt=\"Test second worker with curl\" width=\"500\" height=\"431\" title=\"\"><\/a><\/p>\n<p>The Kubernetes Cluster installation and configuration on Ubuntu 18.04 has been completed successfully.<\/p>\n<h2 id=\"reference\">Reference<\/h2>\n<div class=\"authorbox\" readability=\"15\">\n<p><strong>About Muhammad Arul<\/strong><\/p>\n<p>Muhammad Arul is a freelance system administrator and technical writer. He is working with Linux Environments for more than 5 years, an Open Source enthusiast and highly motivated on Linux installation and troubleshooting. Mostly working with RedHat\/CentOS Linux and Ubuntu\/Debian, Nginx and Apache web server, Proxmox, Zimbra Administration, and Website Optimization. Currently learning about OpenStack and Container Technology.<\/p>\n<\/div>\n<div>\n<p><b>Share this page:<\/b><\/p>\n<p>\n<a href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fhow-to-install-kubernetes-on-ubuntu%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-and-configure-kubernetes-and-docker-on-ubuntu-18-04-lts-15.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fhow-to-install-kubernetes-on-ubuntu%2F&amp;text=How+to+Install+and+Configure+Kubernetes+and+Docker+on+Ubuntu+18.04+LTS&amp;via=howtoforgecom&amp;related=howtoforgecom\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-and-configure-kubernetes-and-docker-on-ubuntu-18-04-lts-16.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/howtoforgecom\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-and-configure-kubernetes-and-docker-on-ubuntu-18-04-lts-17.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/plus.google.com\/share?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fhow-to-install-kubernetes-on-ubuntu%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/10\/how-to-install-and-configure-kubernetes-and-docker-on-ubuntu-18-04-lts-18.png\" height=\"20\" alt=\"\" title=\"\"><\/a>\n<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Kubernetes is an open source platform for managing containerized applications. It allows you to manage, scale, and automatically deploy your containerized applications in the clustered environment.\u00a0Kubernetes is developed by Google. With Kubernetes, you can orchestrate containers across multiple hosts, scale the containerized applications with all resources on the fly, and have a centralized container management &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-7144","post","type-post","status-publish","format-standard","hentry","category-36"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/7144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=7144"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/7144\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=7144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=7144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=7144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}