mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
70 lines
1.6 KiB
YAML
70 lines
1.6 KiB
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: Rollout
|
|
metadata:
|
|
name: canary-demo
|
|
namespace: default
|
|
spec:
|
|
replicas: 5
|
|
revisionHistoryLimit: 3
|
|
selector:
|
|
matchLabels:
|
|
app: canary-demo
|
|
strategy:
|
|
canary:
|
|
analysis:
|
|
name: analysis
|
|
templateName: analysis-template
|
|
canaryService: canary-demo-preview
|
|
steps:
|
|
- setWeight: 40
|
|
- pause: {}
|
|
- setWeight: 60
|
|
- pause: {}
|
|
- setWeight: 80
|
|
- pause:
|
|
duration: 10
|
|
template:
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
app: canary-demo
|
|
spec:
|
|
containers:
|
|
- image: argoproj/rollouts-demo:yellow
|
|
imagePullPolicy: Always
|
|
name: canary-demo
|
|
ports:
|
|
- containerPort: 8080
|
|
name: http
|
|
protocol: TCP
|
|
resources:
|
|
requests:
|
|
cpu: 5m
|
|
memory: 32Mi
|
|
status:
|
|
HPAReplicas: 5
|
|
abort: true
|
|
availableReplicas: 5
|
|
blueGreen: {}
|
|
canary:
|
|
stableRS: 645d5dbc4c
|
|
conditions:
|
|
- lastTransitionTime: "2019-11-03T01:32:46Z"
|
|
lastUpdateTime: "2019-11-03T01:32:46Z"
|
|
message: Rollout has minimum availability
|
|
reason: AvailableReason
|
|
status: "True"
|
|
type: Available
|
|
- lastTransitionTime: "2019-11-05T18:20:12Z"
|
|
lastUpdateTime: "2019-11-05T18:20:12Z"
|
|
message: Rollout is aborted
|
|
reason: RolloutAborted
|
|
status: "False"
|
|
type: Progressing
|
|
currentPodHash: 6758949f55
|
|
currentStepHash: 59f8666948
|
|
currentStepIndex: 0
|
|
observedGeneration: 58b949649c
|
|
readyReplicas: 5
|
|
replicas: 5
|
|
selector: app=canary-demo |