Skip to content

CICD-147 · Apply reviewed manifests in staging ​

Encyclopedia · Kubernetes fundamentals · All snippets

Previous · CICD-146 · Next · CICD-148

1. Where it fits ​

  • Placement Bash run step following checkout, or equivalent lab terminal.
  • Prerequisites isolated Kubernetes namespace, kubectl and reviewed manifests.
  • Platforms kubernetes, local-lab.

2. Copy the snippet ​

bash
kubectl -n staging apply -f manifests/
kubectl -n staging get deploy,pods,svc

3. How it works ​

kubectl applies the reviewed manifests through the selected API context, then reads the affected resource types. Rollout checks still need to wait for readiness.

4. Verify the result ​

Run a dry-run first and verify declared namespaces cannot redirect writes.

Validation syntax-validated (Bash parse). Status definitions.