-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrollout.yaml
More file actions
42 lines (39 loc) · 1.07 KB
/
rollout.yaml
File metadata and controls
42 lines (39 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
name: my-backend-rollout
namespace: staging # 1. FIX: Explicit Namespace
spec:
replicas: 6
selector:
matchLabels:
app: backend # 2. FIX: Selector key
template:
metadata:
labels:
app: backend # 3. FIX: Matching Template Label
spec:
# 👇 4. FIX: Containers specification (Required Value)
containers:
- name: node-backend-container
image: docker.io/yvmr/np:latest # Ensure this image exists
imagePullPolicy: IfNotPresent
ports:
- containerPort: 3000
# 5. FIX: Correctly nested strategy
strategy:
canary:
stableService: my-backend-stable # <-- Service that points to stable pods
canaryService: my-backend-canary # <-- Service that points to canary pods
trafficRouting:
istio:
virtualService:
name: my-backend-vs
routes:
- primary
steps:
- setWeight: 10
- pause: {}
- setWeight: 50
- pause: {}
- setWeight: 100