{"id":2813,"date":"2026-08-04T06:33:01","date_gmt":"2026-08-03T23:33:01","guid":{"rendered":"https:\/\/sumberlaba.com\/index.php\/2026\/08\/04\/how-to-set-up-a-kubernetes-cluster-a-step-by-step-guide-for-beginners\/"},"modified":"2026-08-04T06:33:01","modified_gmt":"2026-08-03T23:33:01","slug":"how-to-set-up-a-kubernetes-cluster-a-step-by-step-guide-for-beginners","status":"publish","type":"post","link":"https:\/\/sumberlaba.com\/index.php\/2026\/08\/04\/how-to-set-up-a-kubernetes-cluster-a-step-by-step-guide-for-beginners\/","title":{"rendered":"How to Set Up a Kubernetes Cluster: A Step-by-Step Guide for Beginners"},"content":{"rendered":"<h1>How to Set Up a Kubernetes Cluster: A Step-by-Step Guide for Beginners<\/h1>\n<p>Kubernetes is the industry standard for container orchestration. Setting up a cluster manually with kubeadm gives you full control and a clear understanding of its architecture. This guide walks you through the essential steps.<\/p>\n<p>Before you begin, you need at least two Ubuntu 22.04 machines\u2014one control plane and one worker node\u2014with 2GB RAM and 2 CPUs each. Verify that both can reach the internet and a container image registry.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/via.placeholder.com\/800x600\/4a90d9\/ffffff?text=how%20to%20set%20up%20a%20kubernetes%20cluster\" alt=\"Article illustration\" style=\"display:block;margin:20px auto;max-width:100%;height:auto;border-radius:8px;\" \/><\/p>\n<h2>Step 1: Install Dependencies<\/h2>\n<p>On both nodes, install containerd, kubeadm, kubelet, and kubectl. Enable the required kernel modules, add the official Kubernetes repository, and hold the package versions to prevent unexpected upgrades.<\/p>\n<h2>Step 2: Initialize the Control Plane<\/h2>\n<p>On the master node, run <code>sudo kubeadm init --pod-network-cidr=10.244.0.0\/16<\/code>. Once it finishes, copy the generated kubeconfig file to your home directory so kubectl can communicate with your cluster.<\/p>\n<h2>Step 3: Join Worker Nodes<\/h2>\n<p>The initialization command outputs a <code>kubeadm join<\/code> command containing a token. Run this command on each worker node with sudo privileges, then confirm their status with <code>kubectl get nodes<\/code>.<\/p>\n<h2>Step 4: Deploy a Pod Network<\/h2>\n<p>A CNI plugin such as Calico or Flannel is required for pod-to-pod communication. Apply the Calico manifest using the command <code>kubectl apply -f https:\/\/raw.githubusercontent.com\/projectcalico\/calico\/master\/manifests\/calico.yaml<\/code>.<\/p>\n<p>Once the network is deployed, all nodes will show Ready. You now have a working Kubernetes cluster, ready for deployments. Continue experimenting with kubectl to unlock its full potential.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Set Up a Kubernetes Cluster: A Step-by-Step Guide for Beginners Kubernetes is the industry standard for container orchestration. Setting up a cluster manually with kubeadm gives you full control and a clear understanding of its architecture. This guide walks you through the essential steps. Before you begin, you need at least two Ubuntu &hellip; <\/p>\n","protected":false},"author":2716,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-2813","post","type-post","status-publish","format-standard","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/posts\/2813","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/users\/2716"}],"replies":[{"embeddable":true,"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/comments?post=2813"}],"version-history":[{"count":0,"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/posts\/2813\/revisions"}],"wp:attachment":[{"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/media?parent=2813"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/categories?post=2813"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sumberlaba.com\/index.php\/wp-json\/wp\/v2\/tags?post=2813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}