We can verify that kubectl get nodes -o wide Kube-system kube-controller-manager-k8scpnode 1/1 Running 0 50s 192.168.122.169 k8scpnode NAMESPACE NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME ![]() Verify that the control-plane node is Up & Running and the control-plane pods (as coredns pods) are also running $ k get nodes -o wide Verify CoreDNS is running on the control-plane node Replace the IP with what the output gave you. Verify that you have ssh access to the VMs terraform initĪpply complete! Resources: 16 added, 0 changed, 0 destroyed. Init terraform before running the below shell script. Change the vmem and vcpu settings to your needs. Change it to your github username and it will download and setup the VMs with your public key, instead of mine!īut pretty much, everything else should work out of the box. The most important option to change, is the User option. You will need to make appropriate changes. You can git clone the repo to review and edit it according to your needs. If you do not use terraform, skip this step! You can find the code for the entire kubernetes cluster here: k8s cluster - Terraform code. I use terraform for the create the infrastructure. My preferable way of doing things is testing on each step, so I pretty much destroy everything, coping and pasting commands and keep on. I prefer to have a reproducible infrastructure, so I can very fast create and destroy my test lab. ![]() Git Terraform Code for the kubernetes cluster Add a Node Port to kubernetes dashboard.Get Certificate Hash from the control-plane node.Installing kubeadm, kubelet and kubectl on the worker node.Installing a Container Runtime on the worker node.Verify CoreDNS is running on the control-plane node.Install an overlay network provider on the control-plane node.Create user access config to the k8s control-plane node.Installing kubeadm, kubelet and kubectl on the control-plane node.Installing a Container Runtime on the control-plane node.Kernel modules on the control-plane node.Git Terraform Code for the kubernetes cluster.Kubernetes, also known as K8s, is an open-source system for automating deployment, scaling, and management of containerized applications. If you notice something wrong you can either contact me via the contact page, or open a PR in the github project. There is a copy of this blog post to github. ![]() My home lab is based on libvirt Qemu/KVM (Kernel-based Virtual Machine) and I run Terraform as the infrastructure provision tool. I am going to use three (3) Virtual Machines in my local lab. In this blog post, I’ll try to share my personal notes on how to setup a kubernetes cluster with kubeadm on ubuntu 22.04 LTS Virtual Machines.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |