mirror of
https://github.com/fluxcd/flagger.git
synced 2026-03-02 01:30:48 +00:00
1.7 KiB
1.7 KiB
Upgrade Guide
This document describes how to upgrade Flagger.
Upgrade canaries v1alpha3 to v1beta1
Canary CRD changes in canaries.flagger.app/v1beta1:
- the
spec.canaryAnalysisfield has been deprecated and replaced withspec.analysis - the
spec.analysis.intervalandspec.analysis.thresholdfields are required - the
status.lastAppliedSpecandstatus.lastPromotedSpechashing algorithm changed tohash/fnv - the
spec.analysis.alertsarray can referencealertproviders.flagger.app/v1beta1resources - the
spec.analysis.metrics[].templateRefcan reference ametrictemplate.flagger.app/v1beta1resource - the
metric.thresholdfield has been deprecated and replaced withmetric.thresholdRange - the
spec.targetRefcan referenceDaemonSetkind
Upgrade procedure:
- install the
v1beta1CRDs - update Flagger deployment
- replace
apiVersion: flagger.app/v1alpha3withapiVersion: flagger.app/v1beta1in all canary manifests - replace
spec.canaryAnalysiswithspec.analysisin all canary manifests - update canary manifests in cluster
Note that after upgrading Flagger, all canaries will be triggered as the hash value used for tracking changes
is computed differently. You can set spec.skipAnalysis: true in all canary manifests before upgrading Flagger,
do the upgrade, wait for Flagger to finish the no-op promotions and finally set skipAnalysis to false.
Update builtin metrics:
- replace
thresholdwiththresholdRange.minfor request-success-rate - replace
thresholdwiththresholdRange.maxfor request-duration
metrics:
- name: request-success-rate
thresholdRange:
min: 99
interval: 1m
- name: request-duration
thresholdRange:
max: 500
interval: 1m