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
Latest posts by Rajesh Kumar (see all)
- Best AI tools for Software Engineers - November 4, 2024
- Installing Jupyter: Get up and running on your computer - November 2, 2024
- An Introduction of SymOps by SymOps.com - October 30, 2024