Skip to content

Release Channels #427

@Starefossen

Description

@Starefossen

Release Channel will make it possible to automatically upgrade instances when new versions become available:

apiVersion: unleash.nais.io/v1
kind: ReleaseChannel
metadata:
  name: stable
spec:
  image: repo.example.com/my/image:tag
  matchLabels:
    unleash.nais.io/release-channel: stable
  strategy:
    maxSurge: 2
    canary:
      enabled: true
      matchLabels:
       unleash.nais.io/canary: true

Reconciler:

  • finds all matching Unleash instances
  • starts with the ones maching ReleaseChannel.spec.strategy.canary.matchLabels
  • runs in parallel according to ReleaseChannel.spec.strategy.maxSurge
  • updates Unleash.spec.customImage waiting for rollout to succeed (depends on Wait for rollout #260)
  • stop rollout if an Unleash instance fails and marks ReleaseChannel as failed

Questions:

  • how to prevent customImage from being "reset" by the user
    • default to ReleaseChannel when no Unleash.spec.customImage is set

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions