Guides

Blue-green on Kubernetes without Argo Rollouts

Argo Rollouts and Flagger are powerful, and they ask you to install a controller, adopt custom resources and often a mesh or ingress plugin. If you only want a safe switch between two versions, plain Kubernetes objects can do it.

Updated November 2026 · muster 0.8

Why teams skip progressive delivery

Argo CD is everywhere: the CNCF found it in nearly 60% of respondents' clusters. Progressive delivery is much smaller: Argo Rollouts has about 3.6k stars and Flagger about 5.4k (CNCF, GitHub, November 2026). The reasons are structural. Argo Rollouts replaces your Deployment with a Rollout resource, Flagger wraps it in a Canary resource, and fine-grained traffic weights need a mesh, an ingress or a Gateway API plugin. Plenty of teams settle for a hand-written script because they "don't need to install operators, manage CRDs, or learn a new configuration language" (comparison).

Blue-green with objects you already have

A Service routes to whatever its selector matches. Two Deployments that differ by one label, and one patch to the selector, are a blue-green deploy:

  1. Adopt. On the first run, copy acme-api to acme-api-blue with muster.dev/track=blue. Once it is ready, add that label to the Service selector and scale the original to 0. Both serve during the copy, so nothing drops.
  2. Stand up green at 0 replicas, point it at the new image, scale it to the live replica count and wait for ready pods.
  3. Check it through an optional acme-api-preview Service: pod stability (CrashLoopBackOff, image pull errors, OOMKilled) and your health check.
  4. Switch with one kubectl patch service. Run the checks again against production; if they fail, the selector goes back to blue.
  5. Drain for 30 seconds, then scale blue to 0, or keep it warm for an instant switch back.

That is exactly what muster's blue-green strategy does, through the kubectl you already use. The rollout state lives in one ConfigMap per service, so a laptop, a CI job and a teammate all see the same rollout.

muster.json
"api": {  "k8s": { "deployment": "acme-api", "namespace": "prod" },  "strategy": {    "type": "blue-green",    "preview": { "enabled": true },    "keep_old_seconds": 600  }}
muster setup --update --strategy api=blue-greenmuster deploy api            # stands up green, runs the gates, waitsmuster promote api           # switch the Service selectormuster rollback api          # switch back (scales blue up first if needed)

Canary without a mesh

Without a weighted router, a canary can split traffic by ready pods: both Deployments match the Service, so traffic follows the pod ratio. With N stable replicas and weight W, the canary gets ceil(N × W / 100) pods. The catch is resolution: 10% of 4 pods is really 25%. muster reports both the target and the effective weight so you never read the wrong number.

  api  CANARY · replicas   step 1/4 · 41s    v1.4.1 stable 3/3   75%  [###############-----]   25%  v1.4.2 canary 1/1    State: paused — next: 25% (muster promote api · muster abort api)    Gates: ok pod_stability  ok health

Gateway API and ingress-nginx weights, and Prometheus and HTTP gates, are planned for the next phase. Until then, use more replicas when you need finer steps.

If Argo CD manages these resources

This is the caveat that matters. A GitOps controller with self-heal puts the live state back to what is in Git. muster changes the Service selector and replica counts during a rollout, so Argo CD will see drift and revert it mid-rollout. Argo Rollouts users hit the same thing with HTTPRoute weights and need ignore rules for it (write-up).

Tell Argo CD to leave those fields alone, and to respect that on sync:

Application (Argo CD)
spec:  ignoreDifferences:    - group: ""      kind: Service      name: acme-api      jsonPointers:        - /spec/selector/muster.dev~1track    - group: apps      kind: Deployment      name: acme-api      jsonPointers:        - /spec/replicas  syncPolicy:    syncOptions:      - RespectIgnoreDifferences=true
  • The -blue, -green and -canary Deployments and the muster-rollout-* ConfigMap are not in Git. If they end up carrying your Application's tracking label, automated pruning would delete them; check before turning prune on.
  • Image tags are the deeper conflict: in GitOps the image comes from a commit. If Argo CD owns a service's image, let it, and use muster for the services you deploy by push.
  • An HPA on the stable Deployment fights the replica ratio, and old and new versions run side by side, so database migrations need to be expand-and-contract. muster doctor warns about the HPA.

When Argo Rollouts is the better choice

If you need automated metric analysis against Prometheus or Datadog, many traffic routers, or a controller that keeps reconciling with no CLI in the loop, Argo Rollouts and Flagger do far more today. muster is for teams that want the safe switch, promote and abort from a terminal or CI, and version visibility, without installing anything in the cluster.

Try muster deploy.

Install muster