{"id":3932,"date":"2018-05-18T18:23:41","date_gmt":"2018-05-18T14:23:41","guid":{"rendered":"https:\/\/www.howtoforge.com\/tutorial\/centos-kubernetes-docker-cluster\/"},"modified":"2018-05-18T18:23:41","modified_gmt":"2018-05-18T14:23:41","slug":"how-to-install-a-kubernetes-docker-cluster-on-centos-7","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/how-to-install-a-kubernetes-docker-cluster-on-centos-7\/","title":{"rendered":"How to Install a Kubernetes Docker Cluster on CentOS 7"},"content":{"rendered":"<p>Kubernetes is an open source platform for managing containerized applications developed by Google. It allows you to manage, scale, and automatically deploy your containerized applications in the clustered environment. With Kubernetes, we can orchestrate our containers across multiple hosts, scale the containerized applications with all resources on the fly, and have centralized container management environment.<\/p>\n<p>In this tutorial, I will show you step-by-step how to install and configure Kubernetes on CentOS 7. We will be using 1 server &#8216;k8s-master&#8217; as the Kubernetes Host Master, and 2 servers as Kubernetes node, &#8216;node01&#8217; and &#8216;node02&#8217;.<\/p>\n<h2 id=\"prerequisites\">Prerequisites<\/h2>\n<ul>\n<li>3 CentOS 7 Servers<\/li>\n<ul>\n<li><em>10.0.15.10\u00a0\u00a0\u00a0\u00a0\u00a0 k8s-master<\/em><\/li>\n<li><em>10.0.15.21\u00a0\u00a0\u00a0\u00a0\u00a0 node01<\/em><\/li>\n<li><em>10.0.15.22\u00a0\u00a0\u00a0\u00a0\u00a0 node02<\/em><\/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>Kubernetes Installation<\/li>\n<li>Kubernetes Cluster Initialization<\/li>\n<li>Adding node01 and node02 to the Cluster<\/li>\n<li>Testing &#8211; Create First Pod<\/li>\n<\/ol>\n<h2 id=\"step-kubernetes-installation\">Step 1 &#8211; Kubernetes 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 node servers.<\/p>\n<p>We will prepare all servers for Kubernetes installation by changing the existing configuration on servers, and also installating some packages, including docker-ce and kubernetes itself.<\/p>\n<h3 id=\"-configure-hosts\">&#8211; Configure 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 editor<\/a>.<\/p>\n<p class=\"command\">vim \/etc\/hosts<\/p>\n<p>Paste the host&#8217;s list below.<\/p>\n<pre class=\"system\">10.0.15.10\u00a0\u00a0\u00a0\u00a0\u00a0 k8s-master<br\/>10.0.15.21\u00a0\u00a0\u00a0\u00a0\u00a0 node01<br\/>10.0.15.22\u00a0\u00a0\u00a0\u00a0\u00a0 node02<\/pre>\n<p>Save and exit.<\/p>\n<h3 id=\"-disable-selinux\">&#8211; Disable SELinux<\/h3>\n<p>In this tutorial, we will not cover about SELinux configuration for Docker, so we will disable it.<\/p>\n<p>Run the command below to disable SELinux.<\/p>\n<p class=\"command\">setenforce 0<br \/>sed -i &#8211;follow-symlinks &#8216;s\/SELINUX=enforcing\/SELINUX=disabled\/g&#8217; \/etc\/sysconfig\/selinux<\/p>\n<h3 id=\"-enable-brnetfilter-kernel-module\">&#8211; Enable br_netfilter Kernel Module<\/h3>\n<p>The br_netfilter module is required for kubernetes installation. Enable this kernel module so that the packets traversing the bridge are processed by iptables for filtering and for port forwarding, and the kubernetes pods across the cluster can communicate with each other.<\/p>\n<p>Run the command below to enable the br_netfilter kernel module.<\/p>\n<p class=\"command\">modprobe br_netfilter<br \/>echo &#8216;1&#8217; &gt; \/proc\/sys\/net\/bridge\/bridge-nf-call-iptables<\/p>\n<h3 id=\"-disable-swap\">&#8211; Disable SWAP<\/h3>\n<p>Disable SWAP for kubernetes installation by running the following commands.<\/p>\n<p class=\"command\">swapoff -a<\/p>\n<p><a class=\"fancybox\" id=\"img-1\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_set_up_kubernetes_cluster_on_centos_7\/big\/1.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-a-kubernetes-docker-cluster-on-centos-7.png\" alt=\"Disable swap\" width=\"500\" height=\"163\" title=\"\"><\/a><\/p>\n<p>And then edit the &#8216;\/etc\/fstab&#8217; file.<\/p>\n<p class=\"command\">vim \/etc\/fstab<\/p>\n<p>Comment the swap line UUID as below.<\/p>\n<p><a class=\"fancybox\" id=\"img-1b\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_set_up_kubernetes_cluster_on_centos_7\/big\/1b.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-a-kubernetes-docker-cluster-on-centos-7-1.png\" alt=\"Edit \/etc\/fstab\" width=\"500\" height=\"155\" title=\"\"><\/a><\/p>\n<h3 id=\"-install-docker-ce\">&#8211; Install Docker CE<\/h3>\n<p>Install the latest version of Docker-ce from the docker repository.<\/p>\n<p>Install the package dependencies for docker-ce.<\/p>\n<p class=\"command\">yum install -y yum-utils device-mapper-persistent-data lvm2<\/p>\n<p>Add the docker repository to the system and install docker-ce using the yum command.<\/p>\n<p class=\"command\">yum-config-manager &#8211;add-repo https:\/\/download.docker.com\/linux\/centos\/docker-ce.repo<br \/>yum install -y docker-ce<\/p>\n<p>Wait for the docker-ce installation.<\/p>\n<p><a class=\"fancybox\" id=\"img-2\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_set_up_kubernetes_cluster_on_centos_7\/big\/2.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-a-kubernetes-docker-cluster-on-centos-7-2.png\" alt=\"Install Docker\" width=\"500\" height=\"126\" title=\"\"><\/a><\/p>\n<h3 id=\"-install-kubernetes\">&#8211; Install Kubernetes<\/h3>\n<p>Add the kubernetes repository to the centos 7 system by running the following command.<\/p>\n<p class=\"command\">cat &lt;&lt;EOF &gt; \/etc\/yum.repos.d\/kubernetes.repo<br \/>[kubernetes]<br \/>name=Kubernetes<br \/>baseurl=https:\/\/packages.cloud.google.com\/yum\/repos\/kubernetes-el7-x86_64<br \/>enabled=1<br \/>gpgcheck=1<br \/>repo_gpgcheck=1<br \/>gpgkey=https:\/\/packages.cloud.google.com\/yum\/doc\/yum-key.gpg<br \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 https:\/\/packages.cloud.google.com\/yum\/doc\/rpm-package-key.gpg<br \/>EOF<\/p>\n<p>Now install the kubernetes packages kubeadm, kubelet, and kubectl using the yum command below.<\/p>\n<p class=\"command\">yum install -y kubelet kubeadm kubectl<\/p>\n<p><a class=\"fancybox\" id=\"img-3\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_set_up_kubernetes_cluster_on_centos_7\/big\/3.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-a-kubernetes-docker-cluster-on-centos-7-3.png\" alt=\"Install Kubernetes\" width=\"500\" height=\"274\" title=\"\"><\/a><\/p>\n<p>After the installation is complete, restart all those servers.<\/p>\n<p class=\"command\">sudo reboot<\/p>\n<p>Log in again to the server and start the services, docker and kubelet.<\/p>\n<p class=\"command\">systemctl start docker &amp;&amp; systemctl enable docker<br \/>systemctl start kubelet &amp;&amp; systemctl enable kubelet<\/p>\n<h3 id=\"-change-the-cgroupdriver\">&#8211; Change the cgroup-driver<\/h3>\n<p>We need to make sure the docker-ce and kubernetes are using same &#8216;cgroup&#8217;.<\/p>\n<p>Check docker cgroup using the docker info command.<\/p>\n<p class=\"command\">docker info | grep -i cgroup<\/p>\n<p>And you see the docker is using &#8216;<strong>cgroupfs<\/strong>&#8216; as a cgroup-driver.<\/p>\n<p>Now run the command below to change the kuberetes cgroup-driver to &#8216;cgroupfs&#8217;.<\/p>\n<p class=\"command\">sed -i &#8216;s\/cgroup-driver=systemd\/cgroup-driver=cgroupfs\/g&#8217; \/etc\/systemd\/system\/kubelet.service.d\/10-kubeadm.conf<\/p>\n<p>Reload the systemd system and restart the kubelet service.<\/p>\n<p class=\"command\">systemctl daemon-reload<br \/>systemctl restart kubelet<\/p>\n<p>Now we&#8217;re ready to configure the Kubernetes Cluster.<\/p>\n<p><a class=\"fancybox\" id=\"img-4\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_set_up_kubernetes_cluster_on_centos_7\/big\/4.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-a-kubernetes-docker-cluster-on-centos-7-4.png\" alt=\"Konfigure Kubernetes Cluster\" width=\"500\" height=\"146\" 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 the kubernetes master cluster configuration.<\/p>\n<p>Move the shell to the master server &#8216;k8s-master&#8217; and run the command below to set up the kubernetes master.<\/p>\n<p class=\"command\">kubeadm init &#8211;apiserver-advertise-address=10.0.15.10 &#8211;pod-network-cidr=10.244.0.0\/16<\/p>\n<p><strong><a class=\"fancybox\" id=\"img-6\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_set_up_kubernetes_cluster_on_centos_7\/big\/6.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-a-kubernetes-docker-cluster-on-centos-7-5.png\" alt=\"Kubernetes Cluster Initialization\" width=\"500\" height=\"208\" title=\"\"><\/a><\/strong><\/p>\n<p><strong>Note:<\/strong><\/p>\n<p><em>&#8211;apiserver-advertise-address<\/em> = determines which IP address Kubernetes should advertise its API server on.<\/p>\n<p><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.<\/p>\n<p>When the Kubernetes initialization is complete, you will get the result as below.<\/p>\n<p><a class=\"fancybox\" id=\"img-7\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_set_up_kubernetes_cluster_on_centos_7\/big\/7.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-a-kubernetes-docker-cluster-on-centos-7-6.png\" alt=\"Kubernetes initialization is complete\" width=\"500\" height=\"159\" title=\"\"><\/a><\/p>\n<p><strong>Note:<\/strong><\/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 nodes to the kubernetes cluster.<\/p>\n<p>Now in order to use Kubernetes, we need to run some commands as on the result.<\/p>\n<p>Create new &#8216;.kube&#8217; configuration directory and copy the configuration &#8216;admin.conf&#8217;.<\/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><a class=\"fancybox\" id=\"img-8\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_set_up_kubernetes_cluster_on_centos_7\/big\/8.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-a-kubernetes-docker-cluster-on-centos-7-7.png\" alt=\"Kubernetes Join\" width=\"500\" height=\"138\" title=\"\"><\/a><\/p>\n<p>The flannel network has been deployed to the Kubernetes cluster.<\/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 you will get all pods that are needed for the cluster, including the &#8216;kube-flannel-ds&#8217; for network pod configuration.<\/p>\n<p>Make sure all kube-system pods status is &#8216;running&#8217;.<\/p>\n<p><a class=\"fancybox\" id=\"img-9\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_set_up_kubernetes_cluster_on_centos_7\/big\/9.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-a-kubernetes-docker-cluster-on-centos-7-8.png\" alt=\"Check Kubernetes Node\" width=\"500\" height=\"242\" title=\"\"><\/a><\/p>\n<p>Kubernetes cluster master initialization and configuration has been completed.<\/p>\n<h2 id=\"step-adding-node-and-node-to-the-cluster\">Step 3 &#8211; Adding node01 and node02 to the Cluster<\/h2>\n<p>In this step, we will add node01 and node02 to join the &#8216;k8s&#8217; cluster.<\/p>\n<p>Connect to the node01 server and run the kubeadm join command as we copied on the top.<\/p>\n<p class=\"command\">kubeadm join 10.0.15.10:6443 &#8211;token vzau5v.vjiqyxq26lzsf28e &#8211;discovery-token-ca-cert-hash sha256:e6d046ba34ee03e7d55e1f5ac6d2de09fd6d7e6959d16782ef0778794b94c61e<\/p>\n<p><a class=\"fancybox\" id=\"img-10\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_set_up_kubernetes_cluster_on_centos_7\/big\/10.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-a-kubernetes-docker-cluster-on-centos-7-9.png\" alt=\"Adding node01 and node02 to the Cluster\" width=\"500\" height=\"156\" title=\"\"><\/a><\/p>\n<p>Connect to the node02 server and run the kubeadm join command as we copied on the top.<\/p>\n<p class=\"command\">kubeadm join 10.0.15.10:6443 &#8211;token vzau5v.vjiqyxq26lzsf28e &#8211;discovery-token-ca-cert-hash sha256:e6d046ba34ee03e7d55e1f5ac6d2de09fd6d7e6959d16782ef0778794b94c61e<\/p>\n<p><a class=\"fancybox\" id=\"img-11\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_set_up_kubernetes_cluster_on_centos_7\/big\/11.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-a-kubernetes-docker-cluster-on-centos-7-10.png\" alt=\"Connect Docker nodes\" width=\"500\" height=\"155\" title=\"\"><\/a><\/p>\n<p>Wait for some minutes and back to the &#8216;k8s-master&#8217; master cluster server check the nodes and pods using the following command.<\/p>\n<p class=\"command\">kubectl get nodes<br \/>kubectl get pods &#8211;all-namespaces<\/p>\n<p>Now you will get node01 and node02 has been added to the cluster with status &#8216;ready&#8217;.<\/p>\n<p><a class=\"fancybox\" id=\"img-12\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_set_up_kubernetes_cluster_on_centos_7\/big\/12.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-a-kubernetes-docker-cluster-on-centos-7-11.png\" alt=\"kubctl command\" width=\"500\" height=\"339\" title=\"\"><\/a><\/p>\n<p>node01 and node02 have been added to the kubernetes cluster.<\/p>\n<h2 id=\"step-testing-create-first-pod\">Step 4 &#8211; Testing Create First Pod<\/h2>\n<p>In this step, we will do a test by deploying the Nginx pod to the kubernetes cluster. A pod is a group of one or more containers with shared storage and network that runs\u00a0under Kubernetes. A Pod contains one or more containers, such as Docker container.<\/p>\n<p>Login to the &#8216;k8s-master&#8217; server and create new deployment named &#8216;nginx&#8217; using the kubectl command.<\/p>\n<p class=\"command\">kubectl create deployment nginx &#8211;image=nginx<\/p>\n<p>To see details of the &#8216;nginx&#8217; deployment sepcification, run the following command.<\/p>\n<p class=\"command\">kubectl describe deployment nginx<\/p>\n<p>And you will get the nginx pod deployment specification.<\/p>\n<p>Next, we will expose the nginx pod accessible via the internet. And we need to create new service NodePort for this.<\/p>\n<p>Run the kubectl command below.<\/p>\n<p class=\"command\">kubectl create service nodeport nginx &#8211;tcp=80:80<\/p>\n<p><a class=\"fancybox\" id=\"img-13\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_set_up_kubernetes_cluster_on_centos_7\/big\/13.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-a-kubernetes-docker-cluster-on-centos-7-12.png\" alt=\"Create first pod\" width=\"500\" height=\"147\" title=\"\"><\/a><\/p>\n<p>Make sure there is no error. Now check the nginx service nodeport and IP using the kubectl command below.<\/p>\n<p class=\"command\">kubectl get pods<br \/>kubectl get svc<\/p>\n<p><a class=\"fancybox\" id=\"img-14\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_set_up_kubernetes_cluster_on_centos_7\/big\/14.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-a-kubernetes-docker-cluster-on-centos-7-13.png\" alt=\"Get list of pods\" width=\"500\" height=\"180\" title=\"\"><\/a><\/p>\n<p>Now you will get the nginx pod is now running under cluster IP address &#8216;10.160.60.38&#8217; port 80, and the node main IP address &#8216;10.0.15.x&#8217; on port &#8216;30691&#8217;.<\/p>\n<p>From the &#8216;k8s-master&#8217; server run the <a href=\"https:\/\/www.howtoforge.com\/community\/threads\/how-to-install-curl.20374\/\" target=\"_blank\" rel=\"noopener\">curl command<\/a>\u00a0below.<\/p>\n<p class=\"command\">curl node01:30691<\/p>\n<p><a class=\"fancybox\" id=\"img-15\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_set_up_kubernetes_cluster_on_centos_7\/big\/15.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-a-kubernetes-docker-cluster-on-centos-7-14.png\" alt=\"Test with curl\" width=\"500\" height=\"450\" title=\"\"><\/a><\/p>\n<p class=\"command\">curl node02:30691<\/p>\n<p><a class=\"fancybox\" id=\"img-16\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_set_up_kubernetes_cluster_on_centos_7\/big\/16.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-a-kubernetes-docker-cluster-on-centos-7-15.png\" alt=\"Test node 2 with curl\" width=\"500\" height=\"458\" title=\"\"><\/a><\/p>\n<p>The Nginx Pod has now been deployed under the Kubernetes cluster and it&#8217;s accessible via the internet.<\/p>\n<p>Now access from the web browser.<\/p>\n<p><em><strong>http:\/\/10.0.15.10:30691\/<\/strong><\/em><\/p>\n<p>And you will get the Nginx default page.<\/p>\n<p><a class=\"fancybox\" id=\"img-17\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_set_up_kubernetes_cluster_on_centos_7\/big\/17.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-a-kubernetes-docker-cluster-on-centos-7-16.png\" alt=\"Page on node 1\" width=\"500\" height=\"143\" title=\"\"><\/a><\/p>\n<p>On the node02 server &#8211; <em><strong>http:\/\/10.0.15.11:30691\/<\/strong><\/em><\/p>\n<p><a class=\"fancybox\" id=\"img-18\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_set_up_kubernetes_cluster_on_centos_7\/big\/18.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-a-kubernetes-docker-cluster-on-centos-7-17.png\" alt=\"Page on node 2\" width=\"500\" height=\"131\" title=\"\"><\/a><\/p>\n<p>The Kubernetes cluster Installation and configuration on CentOS 7 has been completed successfully.<\/p>\n<h2 id=\"reference\">Reference<\/h2>\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%2Fcentos-kubernetes-docker-cluster%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-a-kubernetes-docker-cluster-on-centos-7-18.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fcentos-kubernetes-docker-cluster%2F&amp;text=How+to+Install+a+Kubernetes+Docker+Cluster+on+CentOS+7&amp;via=howtoforgecom&amp;related=howtoforgecom\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-a-kubernetes-docker-cluster-on-centos-7-19.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\/05\/how-to-install-a-kubernetes-docker-cluster-on-centos-7-20.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/plus.google.com\/share?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fcentos-kubernetes-docker-cluster%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-a-kubernetes-docker-cluster-on-centos-7-21.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 developed by Google. It allows you to manage, scale, and automatically deploy your containerized applications in the clustered environment. With Kubernetes, we can orchestrate our containers across multiple hosts, scale the containerized applications with all resources on the fly, and have centralized container management environment. &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-3932","post","type-post","status-publish","format-standard","hentry","category-36"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/3932","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=3932"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/3932\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=3932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=3932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=3932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}