Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Kubernetes 1.23.6 Cluster Setup Master and Worker in Ubuntu 20.04


Following commands would help you to create 1 Master and 1 Node in same VM.


$ sudo -s
$ cd
$ git clone https://github.com/certifications-tutorials/cks-course-environment/
$ cd cks-course-environment/
$ cd cluster-setup/
$ cd latest/
$ chmod 755 install_master.sh
$ ./install_master.sh
$ kubectl get nodes
$ kubectl taint nodes --all node-role.kubernetes.io/master-
$ kubectl cluster-info

Sample Code – https://github.com/certifications-tutorials/cks-course-environment/

How to download using git

$ git clone https://github.com/certifications-tutorials/cks-course-environment/


# cks-master
sudo -i
bash <(curl -s https://raw.githubusercontent.com/certifications-tutorials/cks-course-environment/master/cluster-setup/latest/install_master.sh)


# cks-worker
sudo -i
bash <(curl -s https://raw.githubusercontent.com/certifications-tutorials/cks-course-environment/master/cluster-setup/latest/install_worker.sh)


# run the printed kubeadm-join-command from the master on the worker


Rajesh Kumar
Follow me
Latest posts by Rajesh Kumar (see all)
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x