Day 1 – Kubernetes Sept 2023
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
Master
- API - POD -> Container -> Image -> Google Regi
- Etcd - POD -> Container -> Image -> Google Regi
- Schedualar - POD -> Container -> Image -> Google Regi
- Controller - POD -> Container -> Image -> Google Regi
- Proxy - POD -> Container -> Image -> Google Regi
kubeadm init
Kubelet
Docker - ContainerD
kubectl
Worker
- Proxy - POD -> Container -> Image -> Google Regi
kubeadm join
Kubelet
Docker - ContainerD
kubectl
Workstation
- kubectl
===============================================================
===============================================================
Master - 107.21.2.54
Worker 1 - 100.25.139.92
Worker 2 - 52.91.119.120
-------------------------------
https://www.devopsschool.com/blog/kubernetes-1-23-6-cluster-setup-master-and-worker-in-ubuntu-20-04/
Workstation
How kubectl connect to API server?
=======================================
kubectl
Read one file
~/.kube/config
What is content of this config file?
==========================================
YAML FILE
Clustor(S)
- Clustor 1 - api server
- Clustor 2 - api server
User(S)
- user 1 + cert
- user 2 + cert
Context(S)
context1 = Clustor 1 + user 2 + cert
curr-context -= context1
41 kubectl get pods -A
42 clear
43 kubectl
44 kubectl config view
45 more ~/.kube/config
46 kubectl get nodes
47 kubectl get pods -A
48 kubectl
49 kubectl api-resources
50 kubectl api-resources | wc -l
51 kubectl
52 kubectl cluster-info