vDan · Tools

Kubernetes Deployment Strategies

Seven ways to get version 2 of an application in front of users, each as an animated simulation of pods and traffic you can play, step and tune: rolling update, ramped slow rollout and recreate are built into the Deployment controller; blue/green, canary, A/B testing and shadow need a load balancer, a service mesh or a progressive-delivery tool. Every strategy comes with the manifest that drives it, the kubectl rollout commands to run, watch, pause and undo it, and the pros, cons and tooling. The Compare tab lines them up, the wizard picks one for you. Manifest fields link into the Kubernetes YAML Explorer.

7 strategiesAnimated simulationsManifests with copykubectl rolloutCompare tableWhich one? wizard
1

Deployment simulation Service smoke test (preview Service) 100 % 0 % 503 users

    When to use it

      Pros

        Cons

          Tooling

          Manifest

          
                    

          kubectl

          Learn more

          StrategyBuilt inZero downtimeReal-traffic testRollbackCost (pods)ComplexityNeeds

          Cost is the peak pod count relative to the normal replica count. Rollback speed assumes the previous version is still deployed (blue/green, canary) or must be rolled out again (rolling, recreate). Click a row to open the strategy.

          Structure and the seven-strategy list after Octopus Deploy, "Kubernetes deployment strategies" and the infographic "7 Kubernetes Deployment Strategies" by Cloudly DevOps (cloudly.io); everything here is redrawn, rewritten and animated for vDan. Behaviour of the built-in strategies from the Kubernetes Deployment documentation (CC BY 4.0); manifests for the others from the Gateway API, Ingress NGINX, Istio, Argo Rollouts and Flagger documentation. The simulations are models, not a controller trace: real timing depends on probes, minReadySeconds and the router.Keys: ← → strategy · Space play/pause · . next step · R replay
          Copied