summaryrefslogtreecommitdiff
path: root/f3s
diff options
context:
space:
mode:
Diffstat (limited to 'f3s')
-rw-r--r--f3s/tracing-demo/helm-chart/templates/frontend-rollout.yaml20
1 files changed, 11 insertions, 9 deletions
diff --git a/f3s/tracing-demo/helm-chart/templates/frontend-rollout.yaml b/f3s/tracing-demo/helm-chart/templates/frontend-rollout.yaml
index 460c285..3f7f576 100644
--- a/f3s/tracing-demo/helm-chart/templates/frontend-rollout.yaml
+++ b/f3s/tracing-demo/helm-chart/templates/frontend-rollout.yaml
@@ -9,16 +9,18 @@ metadata:
app: tracing-demo-frontend
component: frontend
spec:
- replicas: 2
+ replicas: 3 # Increase to 3 for visible canary (1 old + 1 new + 1 old)
strategy:
- blueGreen:
- # Blue-Green strategy: instant switch with easy rollback
- activeSlotSelector: stable
- prePromotionAnalysis:
- templates:
- - templateName: check-health
- autoPromotionEnabled: false # Manual promotion for demo
- previewReplicaCount: 1 # Run 1 new pod (preview/green)
+ canary:
+ # Canary strategy with auto-promotion after 1 minute
+ steps:
+ # Step 1: 1 pod (33% traffic) to new version
+ - setWeight: 33
+ # Step 2: Wait 1 minute then auto-promote
+ - pause:
+ duration: 1m # Auto-promote after 1 minute
+ # Step 3: 100% traffic to new version
+ - setWeight: 100
# Rollout revision history
revisionHistoryLimit: 3