System Overview - Kubernetes basics review
Kubernetes is a system that helps run and manage many small programs called containers. It makes sure these containers work well together, can grow when needed, and recover if something breaks.
Jump into concepts and practice - no test required
Kubernetes is a system that helps run and manage many small programs called containers. It makes sure these containers work well together, can grow when needed, and recover if something breaks.
User
|
v
+----------------+
| kubectl CLI |
+----------------+
|
v
+----------------+
| Kubernetes API |
| Server |
+----------------+
|
v
+----------------+ +----------------+ +----------------+
| Scheduler |<----->| Controller |<----->| etcd (Storage) |
| (assign pods) | | Manager | +----------------+
+----------------+ +----------------+
|
v
+----------------+ +----------------+
| Node (Worker) |<----->| Kubelet Agent |
| (runs pods) | +----------------+
+----------------+
|
v
+----------------+
| Container(s) |
+----------------+pod in Kubernetes?kubectl get pods.kubectl list pods and kubectl show pods are invalid commands; kubectl describe pods all is incorrect syntax.apiVersion: v1
kind: Pod
metadata:
name: myapp-pod
spec:
containers:
- name: myapp-container
image: nginx:latest
ports:
- containerPort: 80
What will kubectl get pods myapp-pod show after creation?kubectl apply -f pod.yaml but get an error: "error: unable to recognize \"pod.yaml\": no matches for kind \"Pod\" in version \"v2\"". What is the likely fix?nginx:1.19 to nginx:1.21 without downtime. Which Kubernetes resource and method should you use?kubectl set image.kubectl set image -> Option A