Comments on: How to Install Kubernetes Cluster on Ubuntu 22.04 https://www.linuxtechi.com/install-kubernetes-on-ubuntu-22-04/ Thu, 28 Sep 2023 10:10:36 +0000 hourly 1 By: Gurudatta N.R https://www.linuxtechi.com/install-kubernetes-on-ubuntu-22-04/#comment-59280 Thu, 28 Sep 2023 10:10:36 +0000 https://www.linuxtechi.com/?p=14374#comment-59280 sudo apt-mark hold kubelet kubeadm kubectl
kubelet set on hold.
kubeadm set on hold.
kubectl set on hold.

Any pointer.

]]>
By: bibin https://www.linuxtechi.com/install-kubernetes-on-ubuntu-22-04/#comment-58678 Mon, 18 Sep 2023 21:19:21 +0000 https://www.linuxtechi.com/?p=14374#comment-58678 The doc which is really helpful and working
Kudos

]]>
By: Vinita https://www.linuxtechi.com/install-kubernetes-on-ubuntu-22-04/#comment-57866 Thu, 31 Aug 2023 05:09:34 +0000 https://www.linuxtechi.com/?p=14374#comment-57866 Great tutorial…I was trying to do it from 10 days and now got it done in 2 hours…
Thank you so much

]]>
By: Amit Karia https://www.linuxtechi.com/install-kubernetes-on-ubuntu-22-04/#comment-57776 Mon, 28 Aug 2023 10:05:18 +0000 https://www.linuxtechi.com/?p=14374#comment-57776 thank you so much for this great article, for the first time I have been able to setup a Kubernetes cluster at home.

]]>
By: Julio https://www.linuxtechi.com/install-kubernetes-on-ubuntu-22-04/#comment-57664 Fri, 25 Aug 2023 14:01:33 +0000 https://www.linuxtechi.com/?p=14374#comment-57664 Thank you so much! As others already wrote this is the working solution after trying lots of other tutorials. Would be nice to get deeper into network for example where the NGINX Service got the IP from and so on.

]]>
By: Nizar ibrahim https://www.linuxtechi.com/install-kubernetes-on-ubuntu-22-04/#comment-57045 Wed, 09 Aug 2023 18:10:48 +0000 https://www.linuxtechi.com/?p=14374#comment-57045 This is fantastic bro.since three weeks iam spending my time to get righteous one .finally its done

]]>
By: Somuhd https://www.linuxtechi.com/install-kubernetes-on-ubuntu-22-04/#comment-56848 Fri, 04 Aug 2023 22:28:08 +0000 https://www.linuxtechi.com/?p=14374#comment-56848 After lots of efforts to setup by watching you tube video’s and blogs finally found solution and I able setup cluster in 10 minutes, If follow all the steps it will be successful in first attempt.

Thank you very much for such wonderful information,

]]>
By: Minh Dat https://www.linuxtechi.com/install-kubernetes-on-ubuntu-22-04/#comment-56714 Wed, 02 Aug 2023 04:07:08 +0000 https://www.linuxtechi.com/?p=14374#comment-56714 In reply to Joel.

you can use command “kubeadm token create –print-join-command” to get command to join
Note: add sudo before command

]]>
By: Joel https://www.linuxtechi.com/install-kubernetes-on-ubuntu-22-04/#comment-55907 Sat, 15 Jul 2023 06:27:33 +0000 https://www.linuxtechi.com/?p=14374#comment-55907 Hi Niels and thank you for this very important document. It is by far the best I came across online.

I am having issues with the worker nodes joining the cluster.
Here is my setup on VMWare workstation. The VMs are all from CentOS8.
192.168.234.130 k8smaster.example.net k8smaster
192.168.234.131 k8sworker1.example.net k8sworker1
192.168.234.132 k8sworker2.example.net k8sworker2

Here is the error I am getting on both worker nodes:

devops@k8smaster:~$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
k8smaster.example.net NotReady control-plane 2d7h v1.27.3
devops@k8smaster:~$

devops@k8sworker1:~$ sudo kubeadm join k8smaster.example.net:6443 –token vt4ua6.wcma2y8pl4menxh2 –discovery-token-ca-cert-hash sha256:0494aa7fc6ced8f8e7b20137ec0c5d2699dc5f8e616656932ff9173c94962a36
[preflight] Running pre-flight checks
error execution phase preflight: couldn’t validate the identity of the API Server: could not find a JWS signature in the cluster-info ConfigMap for token ID “vt4ua6”
To see the stack trace of this error execute with –v=5 or higher
devops@k8sworker1:~$

devops@k8sworker2:~$ sudo kubeadm join k8smaster.example.net:6443 –token vt4ua6.wcma2y8pl4menxh2 –discovery-token-ca-cert-hash sha256:0494aa7fc6ced8f8e7b20137ec0c5d2699dc5f8e616656932ff9173c94962a36
[sudo] password for devops:
[preflight] Running pre-flight checks
error execution phase preflight: couldn’t validate the identity of the API Server: could not find a JWS signature in the cluster-info ConfigMap for token ID “vt4ua6”
To see the stack trace of this error execute with –v=5 or higher
devops@k8sworker2:~$

I processed with the CNI installation in hope that it will hep. But this is what I got below. The worker nodes are still not joining the cluster.

devops@k8smaster:~$ kubectl get pods -n kube-system
NAME READY STATUS RESTARTS AGE
calico-kube-controllers-6c99c8747f-2skjx 1/1 Running 0 64s
calico-node-v498j 1/1 Running 0 64s
coredns-5d78c9869d-5ljmp 1/1 Running 0 2d7h
coredns-5d78c9869d-qn29s 1/1 Running 0 2d7h
etcd-k8smaster.example.net 1/1 Running 2 (35m ago) 2d7h
kube-apiserver-k8smaster.example.net 1/1 Running 2 (35m ago) 2d7h
kube-controller-manager-k8smaster.example.net 1/1 Running 2 (35m ago) 2d7h
kube-proxy-vzw5z 1/1 Running 2 (35m ago) 2d7h
kube-scheduler-k8smaster.example.net 1/1 Running 2 (35m ago) 2d7h
devops@k8smaster:~$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
k8smaster.example.net Ready control-plane 2d7h v1.27.3
devops@k8smaster:~$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
k8smaster.example.net Ready control-plane 2d7h v1.27.3

Could you please help? Many Thank in advance.

Joel

]]>
By: Michael https://www.linuxtechi.com/install-kubernetes-on-ubuntu-22-04/#comment-55875 Fri, 14 Jul 2023 11:30:29 +0000 https://www.linuxtechi.com/?p=14374#comment-55875 This material is a life saver! So on-point. Thank you for sharing

]]>