Kubernetes 16 Oct 2023 Day 1
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
Assignment # 1
Assignment # 1 -
What is Kubernetes?
Why Do we need Kubernetes? Explain in 10 lines
How Kubernetes Works?
Kubernetes Architectecture. Explain each component with 1 oneline.
Master IP –
https://github.com/devopsschool-training-notes/geoct2023
Harish Kumar G "54.234.81.31",
Adam Rizk "54.197.121.207",
Rajesh Kumar "52.73.25.40",
Ganesha B S "54.146.80.24",
Subham Chowdhury "54.90.24.167",
Namrata "35.175.128.184",
Subbarao "34.229.68.165",
Soumya Ranjan Pattanaik "54.237.18.75",
Nagendra KR "35.175.63.160",
HARISH G "100.25.152.61",
Sarmila P "35.153.79.140",
Rakesh Konda "18.214.87.24",
Yogeshwari Murugaiyan "54.146.62.46",
Varun Puligilla "54.84.255.87",
Prashanth Linga "54.146.89.69",
Namrata MU "100.26.11.31",
Subbarao
Ajimal P M "18.206.206.181",
Nivas Chandran "100.24.206.124",
Master
-------------------------------
Api server -> POD -> ContaineD -> Image --> Google regisry
Etcd -> POD -> ContaineD -> Image --> Google regisry
Controller mgmr -> POD -> ContaineD -> Image --> Google regisry
Schedular -> POD -> ContaineD -> Image --> Google regisry
Proxy -> POD -> ContaineD -> Image --> Google regisry
CoreDNS -> POD -> ContaineD -> Image --> Google regisry
kubeadm init
kubectl
Kubelet
Docker
ContainerD
CNI
Worker
===================================
proxy -> POD -> ContaineD -> Image --> Google regisry
kubeadm join
kubectl
Kubelet
Docker
ContainerD
CNI
Workstation
=============================================
kubectl
~/.kube/config
yaml file
clusters
users
context
=======================================================================================
How to setup k8 cluster in ubuntu 20?
https://www.devopsschool.com/blog/kubernetes-1-23-6-cluster-setup-master-and-worker-in-ubuntu-20-04/
13 kubectl get nodes
14 kubectl config view
15 clear
16 cd
17 clear
18 kubectl get nodes
19 kubectl
20 kubectl api-resources
21 kubectl api-resources | wc -l
22 kubectl get nodes
23 kubectl get pods --all-namespaces
24 kubectl get nodes
25 kubectl get pods --all-namespaces
26 kubectl get pods --all-namespaces -o wide
27 kubectl get pods --all-namespaces
28 clear
29 kubectl
30 kubectl cluster-info
31 kubectl config
32 kubectl config view -h
33 clear
34 history
Worker
Harish Kumar G + "34.224.63.176",
Adam Rizk + "54.157.164.178",
Rajesh Kumar + "100.25.142.131",
Ganesha B S + "100.24.253.40",
Subham Chowdhury + "54.84.41.44",
Namrata + "35.175.130.13",
Subbarao + "18.214.88.211",
Soumya Ranjan Pattanaik + "100.26.241.171",
Nagendra KR + "18.210.14.108",
HARISH G + "100.25.12.107",
Sarmila P + "54.237.227.36",
Rakesh Konda + "54.162.5.114",
Yogeshwari Murugaiyan + "52.206.135.178",
Varun Puligilla + (known after apply),
Prashanth Linga + "54.160.88.65",
Namrata MU + "54.87.234.83",
Subbarao
Ajimal P M + "100.26.167.69",
Nivas Chandran + "54.157.189.58",
kubeadm token create –print-join-command –ttl 0
kubeadm join 172.31.63.123:6443 –token mvd3b3.90cbe063wu9ddemj –discovery-token-ca-cert-hash sha256:61c072c0e303ecdfeb16956f4a2110d44acc35b7fd4d3094d936b75c586fafa0