Create a deployment YAML and apply it.
Real teams check YAML manifests into git and apply them with
`kubectl apply -f`. That's GitOps in one sentence.
TASK
----
Create a manifest then apply it:
cat > deploy.yaml <<'YAML'
apiVersion: apps/v1
kind: Deployment
metadata: { name: app }
spec:
replicas: 2
selector: { matchLabels: { app: app } }
template:
metadata: { labels: { app: app } }
spec:
containers:
- name: web
image: nginx
YAML
kubectl apply -f deploy.yaml
(In this simulator, you can also just run `kubectl apply -f deploy.yaml`
without the file — the simulator accepts the apply.)
Pass when the apply output contains "created".Sign in to save your code and track progress across devices.