Grokking DevOps and SRE Interviews
0% completed
Kubernetes Core Objects
apiVersion: apps/v1 kind: Deployment metadata: name: search namespace: shop spec: replicas: 3 selector: matchLabels: { app: search } template: metadata: labels: { app: search } spec: containers: - name: search image: registry.example.com/search@sha256:4be19a...
These lines do not start a container. They describe a result: three pods, each labeled app: search, running one image. Some part of the cluster must notice the request, choose machines, start containers, and keep three running after a machine fails.
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%