{"id":6879,"date":"2023-09-26T09:16:51","date_gmt":"2023-09-26T09:16:51","guid":{"rendered":"https:\/\/www.webhi.com\/how-to\/?p=6879"},"modified":"2024-04-17T13:22:58","modified_gmt":"2024-04-17T13:22:58","slug":"setup-configure-kubernetes-on-ubuntu-debian-and-centos-rhel","status":"publish","type":"post","link":"https:\/\/www.webhi.com\/how-to\/setup-configure-kubernetes-on-ubuntu-debian-and-centos-rhel\/","title":{"rendered":"Install and configure Kubernetes on Ubuntu\/Debian and CentOS\/RHEL"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1200\" height=\"675\" src=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/09\/kubernetes_install_en.jpg\" alt=\"setup and config Kubernetes on Ubuntu\/Debian CentOS\/RHEL install\" class=\"wp-image-6889\" srcset=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/09\/kubernetes_install_en.jpg 1200w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/09\/kubernetes_install_en-300x169.jpg 300w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/09\/kubernetes_install_en-1024x576.jpg 1024w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/09\/kubernetes_install_en-768x432.jpg 768w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/09\/kubernetes_install_en-150x84.jpg 150w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p><strong>Kubernetes<\/strong> is a powerful open-source container orchestration platform used for automating the deployment, scaling, and management of containerized applications. This step-by-step guide will walk you through the process of installing Kubernetes on both Ubuntu\/Debian and CentOS\/RHEL systems. We will use popular tools such as&nbsp;<code>kubeadm<\/code>,&nbsp;<code>kubectl<\/code>, and&nbsp;<code>kubelet<\/code>&nbsp;to set up a functional Kubernetes cluster.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"prerequisites\">Prerequisites<\/h2>\n\n\n\n<p>Before diving into the installation process, ensure that you have the following prerequisites in place:<\/p>\n\n\n\n<ul>\n<li>A machine running Ubuntu, Debian, CentOS, or RHEL with at least 2GB of RAM (4GB or more is recommended).<\/li>\n\n\n\n<li>A user account with appropriate privileges (sudo for Ubuntu\/Debian, root for CentOS\/RHEL).<\/li>\n\n\n\n<li>A stable internet connection.<\/li>\n\n\n\n<li>Familiarity with basic Linux command-line operations.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installing-kubernetes-on-ubuntudebian\">Installing Kubernetes on Ubuntu\/Debian<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-1-update-your-system\">Step 1: Update Your System<\/h3>\n\n\n\n<p>Begin by updating your system to ensure that you have the latest package information and security updates:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt update &amp;&amp; sudo apt upgrade -y<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-2-install-docker\">Step 2: Install Docker<\/h3>\n\n\n\n<p>Kubernetes requires a container runtime to manage containers. We&#8217;ll use Docker in this guide. You can follow&nbsp;<a href=\"https:\/\/www.webhi.com\/how-to\/how-to-install-and-use-docker-on-ubuntu-lts\/\" target=\"_blank\" rel=\"noreferrer noopener\">this article<\/a>&nbsp;to learn how to install and use Docker on Ubuntu LTS. Once Docker is installed, return to this guide to continue with the Kubernetes installation process.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-3-disable-swap\">Step 3: Disable Swap<\/h3>\n\n\n\n<p>Kubernetes performs best when swap is disabled. Disable it with the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo swapoff -a\n$ sudo sed -i '\/ swap \/ s\/^\/#\/' \/etc\/fstab<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-4-install-kubernetes-components\">Step 4: Install Kubernetes Components<\/h3>\n\n\n\n<p>Install the necessary Kubernetes components (<code>kubeadm<\/code>,&nbsp;<code>kubectl<\/code>, and&nbsp;<code>kubelet<\/code>):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt install -y kubelet kubeadm kubectl\n$ sudo systemctl enable kubelet<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-5-initialize-kubernetes-with-kubeadm\">Step 5: Initialize Kubernetes with kubeadm<\/h3>\n\n\n\n<p>On your master node, initialize Kubernetes using&nbsp;<code>kubeadm<\/code>. Don&#8217;t forget to replace&nbsp;<code>&lt;your-pod-network-cidr&gt;<\/code>&nbsp;with your preferred Pod network CIDR (e.g., 192.168.0.0\/16):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo kubeadm init --pod-network-cidr=&lt;your-pod-network-cidr&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-6-set-up-kubectl\">Step 6: Set Up Kubectl<\/h3>\n\n\n\n<p>To interact with your Kubernetes cluster, set up the Kubernetes configuration for your user:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ mkdir -p $HOME\/.kube\n$ sudo cp -i \/etc\/kubernetes\/admin.conf $HOME\/.kube\/config\n$ sudo chown $(id -u):$(id -g) $HOME\/.kube\/config<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-7-configure-pod-network\">Step 7: Configure Pod Network<\/h3>\n\n\n\n<p>Select a Pod network add-on and install it. For instance, you can choose to install Calico:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ kubectl apply -f https:\/\/docs.projectcalico.org\/manifests\/calico.yaml<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-8-join-worker-nodes-optional\">Step 8: Join Worker Nodes (Optional)<\/h3>\n\n\n\n<p>If you have worker nodes, you can add them to the cluster using the&nbsp;<code>kubeadm join<\/code>&nbsp;command provided during the master initialization.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installing-kubernetes-on-centosrhel\">Installing Kubernetes on CentOS\/RHEL<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-1-update-your-system-1\">Step 1: Update Your System<\/h3>\n\n\n\n<p>Ensure your system is up-to-date by running the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo yum update -y<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-2-install-docker-1\">Step 2: Install Docker<\/h3>\n\n\n\n<p>Kubernetes relies on a container runtime like Docker, which you can install as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo yum install docker -y\n$ sudo systemctl enable docker\n$ sudo systemctl start docker<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-3-disable-swap-1\">Step 3: Disable Swap<\/h3>\n\n\n\n<p>Optimize Kubernetes performance by disabling swap:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo swapoff -a\n$ sudo sed -i '\/ swap \/ s\/^\/#\/' \/etc\/fstab<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-4-install-kubernetes-components-1\">Step 4: Install Kubernetes Components<\/h3>\n\n\n\n<p>Install Kubernetes components (<code>kubeadm<\/code>,&nbsp;<code>kubectl<\/code>, and&nbsp;<code>kubelet<\/code>) using the following steps:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo tee \/etc\/yum.repos.d\/kubernetes.repo &lt;&lt;EOF\n[kubernetes]\nname=Kubernetes\nbaseurl=https:\/\/packages.cloud.google.com\/yum\/repos\/kubernetes-el7-x86_64\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=https:\/\/packages.cloud.google.com\/yum\/doc\/yum-key.gpg https:\/\/packages.cloud.google.com\/yum\/doc\/rpm-package-key.gpg\nEOF\n\n$ sudo yum install -y kubelet kubeadm kubectl\n$ sudo systemctl enable kubelet<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-5-initialize-kubernetes-with-kubeadm-1\">Step 5: Initialize Kubernetes with kubeadm<\/h3>\n\n\n\n<p>Initialize Kubernetes on the master node, ensuring to specify your desired Pod network CIDR:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo kubeadm init --pod-network-cidr=&lt;your-pod-network-cidr&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-6-set-up-kubectl-1\">Step 6: Set Up Kubectl<\/h3>\n\n\n\n<p>Configure the Kubernetes configuration for your user:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ mkdir -p $HOME\/.kube\n$ sudo cp -i \/etc\/kubernetes\/admin.conf $HOME\/.kube\/config\n$ sudo chown $(id -u):$(id -g) $HOME\/.kube\/config<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-7-configure-pod-network-1\">Step 7: Configure Pod Network<\/h3>\n\n\n\n<p>Choose a Pod network add-on, such as Calico, and deploy it:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ kubectl apply -f https:\/\/docs.projectcalico.org\/manifests\/calico.yaml<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-8-join-worker-nodes-optional-1\">Step 8: Join Worker Nodes (Optional)<\/h3>\n\n\n\n<p>If you have worker nodes, you can include them in the cluster by using the&nbsp;<code>kubeadm join<\/code>&nbsp;command provided during the master initialization.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h2>\n\n\n\n<p>Congratulations! You&#8217;ve successfully installed Kubernetes on both Ubuntu\/Debian and CentOS\/RHEL systems. Kubernetes is now ready to manage your containerized applications and workloads. Remember to secure your cluster, manage deployments, and explore Kubernetes features to unlock its full potential. Enjoy orchestrating your containers with Kubernetes!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Kubernetes is a powerful open-source container orchestration platform used for automating the deployment, scaling, and management of containerized applications. This step-by-step guide will walk you through the process of installing Kubernetes on both Ubuntu\/Debian and CentOS\/RHEL systems. We will use popular tools such as&nbsp;kubeadm,&nbsp;kubectl, and&nbsp;kubelet&nbsp;to set up a functional Kubernetes cluster. Prerequisites Before diving into ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/www.webhi.com\/how-to\/setup-configure-kubernetes-on-ubuntu-debian-and-centos-rhel\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[69,182],"tags":[],"yoast_head":"\n<title>Install and configure Kubernetes on Ubuntu\/Debian and CentOS\/RHEL - WebHi Tutorials &amp; Documentations<\/title>\n<meta name=\"description\" content=\"Step-by-step guide to install Kubernetes on Ubuntu\/Debian and CentOS\/RHEL using kubeadm, kubectl, and kubelet. Covers prerequisites, Docker install, disabling swap, initializing master node, joining worker nodes.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webhi.com\/how-to\/setup-configure-kubernetes-on-ubuntu-debian-and-centos-rhel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Install and configure Kubernetes on Ubuntu\/Debian and CentOS\/RHEL - WebHi Tutorials &amp; Documentations\" \/>\n<meta property=\"og:description\" content=\"Step-by-step guide to install Kubernetes on Ubuntu\/Debian and CentOS\/RHEL using kubeadm, kubectl, and kubelet. Covers prerequisites, Docker install, disabling swap, initializing master node, joining worker nodes.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webhi.com\/how-to\/setup-configure-kubernetes-on-ubuntu-debian-and-centos-rhel\/\" \/>\n<meta property=\"og:site_name\" content=\"WebHi Tutorials &amp; Documentations\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webhi.technology\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-26T09:16:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-17T13:22:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/09\/kubernetes_install_en.jpg\" \/>\n<meta name=\"author\" content=\"webhi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@WebHiTechnology\" \/>\n<meta name=\"twitter:site\" content=\"@WebHiTechnology\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"webhi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/setup-configure-kubernetes-on-ubuntu-debian-and-centos-rhel\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/setup-configure-kubernetes-on-ubuntu-debian-and-centos-rhel\/\"},\"author\":{\"name\":\"webhi\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54\"},\"headline\":\"Install and configure Kubernetes on Ubuntu\/Debian and CentOS\/RHEL\",\"datePublished\":\"2023-09-26T09:16:51+00:00\",\"dateModified\":\"2024-04-17T13:22:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/setup-configure-kubernetes-on-ubuntu-debian-and-centos-rhel\/\"},\"wordCount\":502,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\"},\"articleSection\":[\"Linux system administration\",\"Virtualization &amp; Cloud computing\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webhi.com\/how-to\/setup-configure-kubernetes-on-ubuntu-debian-and-centos-rhel\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/setup-configure-kubernetes-on-ubuntu-debian-and-centos-rhel\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/setup-configure-kubernetes-on-ubuntu-debian-and-centos-rhel\/\",\"name\":\"Install and configure Kubernetes on Ubuntu\/Debian and CentOS\/RHEL - WebHi Tutorials &amp; Documentations\",\"isPartOf\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#website\"},\"datePublished\":\"2023-09-26T09:16:51+00:00\",\"dateModified\":\"2024-04-17T13:22:58+00:00\",\"description\":\"Step-by-step guide to install Kubernetes on Ubuntu\/Debian and CentOS\/RHEL using kubeadm, kubectl, and kubelet. Covers prerequisites, Docker install, disabling swap, initializing master node, joining worker nodes.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/setup-configure-kubernetes-on-ubuntu-debian-and-centos-rhel\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webhi.com\/how-to\/setup-configure-kubernetes-on-ubuntu-debian-and-centos-rhel\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/setup-configure-kubernetes-on-ubuntu-debian-and-centos-rhel\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webhi.com\/how-to\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install and configure Kubernetes on Ubuntu\/Debian and CentOS\/RHEL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#website\",\"url\":\"https:\/\/www.webhi.com\/how-to\/\",\"name\":\"WebHi Tutorials &amp; Documentations\",\"description\":\"System administration and knowledge base\",\"publisher\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webhi.com\/how-to\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\",\"name\":\"WebHi Technology\",\"url\":\"https:\/\/www.webhi.com\/how-to\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png\",\"contentUrl\":\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png\",\"width\":288,\"height\":95,\"caption\":\"WebHi Technology\"},\"image\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webhi.technology\",\"https:\/\/twitter.com\/WebHiTechnology\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54\",\"name\":\"webhi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1781214743\",\"contentUrl\":\"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1781214743\",\"caption\":\"webhi\"},\"sameAs\":[\"https:\/\/www.webhi.com\/how-to\"],\"url\":\"https:\/\/www.webhi.com\/how-to\/author\/webhi\/\"}]}<\/script>\n","yoast_head_json":{"title":"Install and configure Kubernetes on Ubuntu\/Debian and CentOS\/RHEL - WebHi Tutorials &amp; Documentations","description":"Step-by-step guide to install Kubernetes on Ubuntu\/Debian and CentOS\/RHEL using kubeadm, kubectl, and kubelet. Covers prerequisites, Docker install, disabling swap, initializing master node, joining worker nodes.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webhi.com\/how-to\/setup-configure-kubernetes-on-ubuntu-debian-and-centos-rhel\/","og_locale":"en_US","og_type":"article","og_title":"Install and configure Kubernetes on Ubuntu\/Debian and CentOS\/RHEL - WebHi Tutorials &amp; Documentations","og_description":"Step-by-step guide to install Kubernetes on Ubuntu\/Debian and CentOS\/RHEL using kubeadm, kubectl, and kubelet. Covers prerequisites, Docker install, disabling swap, initializing master node, joining worker nodes.","og_url":"https:\/\/www.webhi.com\/how-to\/setup-configure-kubernetes-on-ubuntu-debian-and-centos-rhel\/","og_site_name":"WebHi Tutorials &amp; Documentations","article_publisher":"https:\/\/www.facebook.com\/webhi.technology","article_published_time":"2023-09-26T09:16:51+00:00","article_modified_time":"2024-04-17T13:22:58+00:00","og_image":[{"url":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/09\/kubernetes_install_en.jpg"}],"author":"webhi","twitter_card":"summary_large_image","twitter_creator":"@WebHiTechnology","twitter_site":"@WebHiTechnology","twitter_misc":{"Written by":"webhi","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/www.webhi.com\/how-to\/setup-configure-kubernetes-on-ubuntu-debian-and-centos-rhel\/#article","isPartOf":{"@id":"https:\/\/www.webhi.com\/how-to\/setup-configure-kubernetes-on-ubuntu-debian-and-centos-rhel\/"},"author":{"name":"webhi","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54"},"headline":"Install and configure Kubernetes on Ubuntu\/Debian and CentOS\/RHEL","datePublished":"2023-09-26T09:16:51+00:00","dateModified":"2024-04-17T13:22:58+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webhi.com\/how-to\/setup-configure-kubernetes-on-ubuntu-debian-and-centos-rhel\/"},"wordCount":502,"commentCount":0,"publisher":{"@id":"https:\/\/www.webhi.com\/how-to\/#organization"},"articleSection":["Linux system administration","Virtualization &amp; Cloud computing"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webhi.com\/how-to\/setup-configure-kubernetes-on-ubuntu-debian-and-centos-rhel\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webhi.com\/how-to\/setup-configure-kubernetes-on-ubuntu-debian-and-centos-rhel\/","url":"https:\/\/www.webhi.com\/how-to\/setup-configure-kubernetes-on-ubuntu-debian-and-centos-rhel\/","name":"Install and configure Kubernetes on Ubuntu\/Debian and CentOS\/RHEL - WebHi Tutorials &amp; Documentations","isPartOf":{"@id":"https:\/\/www.webhi.com\/how-to\/#website"},"datePublished":"2023-09-26T09:16:51+00:00","dateModified":"2024-04-17T13:22:58+00:00","description":"Step-by-step guide to install Kubernetes on Ubuntu\/Debian and CentOS\/RHEL using kubeadm, kubectl, and kubelet. Covers prerequisites, Docker install, disabling swap, initializing master node, joining worker nodes.","breadcrumb":{"@id":"https:\/\/www.webhi.com\/how-to\/setup-configure-kubernetes-on-ubuntu-debian-and-centos-rhel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webhi.com\/how-to\/setup-configure-kubernetes-on-ubuntu-debian-and-centos-rhel\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.webhi.com\/how-to\/setup-configure-kubernetes-on-ubuntu-debian-and-centos-rhel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webhi.com\/how-to\/"},{"@type":"ListItem","position":2,"name":"Install and configure Kubernetes on Ubuntu\/Debian and CentOS\/RHEL"}]},{"@type":"WebSite","@id":"https:\/\/www.webhi.com\/how-to\/#website","url":"https:\/\/www.webhi.com\/how-to\/","name":"WebHi Tutorials &amp; Documentations","description":"System administration and knowledge base","publisher":{"@id":"https:\/\/www.webhi.com\/how-to\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webhi.com\/how-to\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webhi.com\/how-to\/#organization","name":"WebHi Technology","url":"https:\/\/www.webhi.com\/how-to\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/","url":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png","contentUrl":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png","width":288,"height":95,"caption":"WebHi Technology"},"image":{"@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webhi.technology","https:\/\/twitter.com\/WebHiTechnology"]},{"@type":"Person","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54","name":"webhi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/image\/","url":"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1781214743","contentUrl":"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1781214743","caption":"webhi"},"sameAs":["https:\/\/www.webhi.com\/how-to"],"url":"https:\/\/www.webhi.com\/how-to\/author\/webhi\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/6879"}],"collection":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/comments?post=6879"}],"version-history":[{"count":7,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/6879\/revisions"}],"predecessor-version":[{"id":8418,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/6879\/revisions\/8418"}],"wp:attachment":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/media?parent=6879"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/categories?post=6879"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/tags?post=6879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}