Skip to content

CICD-173 · Set a rolling update availability budget ​

Encyclopedia · Deployment and rollback · All snippets

Previous · CICD-172 · Next · CICD-174

1. Where it fits ​

  • Placement .github/workflows/ci.yml, inside the relevant job.
  • Prerequisites protected staging environment and trusted immutable release artifacts.
  • Platforms github-actions, gitea-actions.

2. Copy the snippet ​

yaml
strategy:
  type: RollingUpdate
  rollingUpdate:
    maxUnavailable: 0
    maxSurge: 1

3. How it works ​

The scheduler turns strategy settings into concrete job instances. Matrix values resolve separately within each instance.

4. Verify the result ​

Ensure schedulable capacity for one extra Pod and verify zero unready replicas at steady state.

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