github.com/argoproj/argo-cd@v1.8.7/resource_customizations/argoproj.io/Rollout/testdata/canary/progressing_setWeightStep.yaml (about)

     1  apiVersion: argoproj.io/v1alpha1
     2  kind: Rollout
     3  metadata:
     4    annotations:
     5      kubectl.kubernetes.io/last-applied-configuration: |
     6        {"apiVersion":"argoproj.io/v1alpha1","kind":"Rollout","metadata":{"annotations":{},"name":"example-rollout-canary","namespace":"default"},"spec":{"minReadySeconds":30,"replicas":5,"revisionHistoryLimit":3,"selector":{"matchLabels":{"app":"guestbook"}},"strategy":{"canary":{"steps":[{"setWeight":20},{"pause":{"duration":20}},{"setWeight":40},{"pause":{}}]}},"template":{"metadata":{"labels":{"app":"guestbook"}},"spec":{"containers":[{"image":"gcr.io/heptio-images/ks-guestbook-demo:0.1","name":"guestbook","ports":[{"containerPort":80}]}]}}}}
     7      rollout.argoproj.io/revision: "2"
     8    clusterName: ""
     9    creationTimestamp: 2019-04-26T20:17:43Z
    10    generation: 1
    11    name: example-rollout-canary
    12    namespace: default
    13    resourceVersion: "696688"
    14    selfLink: /apis/argoproj.io/v1alpha1/namespaces/default/rollouts/example-rollout-canary
    15    uid: 58f6f1bb-6860-11e9-b8d7-025000000001
    16  spec:
    17    minReadySeconds: 30
    18    replicas: 5
    19    revisionHistoryLimit: 3
    20    selector:
    21      matchLabels:
    22        app: guestbook
    23    strategy:
    24      canary:
    25        steps:
    26        - setWeight: 20
    27        - pause:
    28            duration: 20
    29        - setWeight: 40
    30        - pause: {}
    31    template:
    32      metadata:
    33        creationTimestamp: null
    34        labels:
    35          app: guestbook
    36      spec:
    37        containers:
    38        - image: gcr.io/heptio-images/ks-guestbook-demo:0.2
    39          name: guestbook
    40          ports:
    41          - containerPort: 80
    42          resources: {}
    43  status:
    44    HPAReplicas: 5
    45    availableReplicas: 5
    46    blueGreen: {}
    47    canary:
    48      stableRS: df986d68
    49    conditions:
    50    - lastTransitionTime: 2019-04-26T20:18:05Z
    51      lastUpdateTime: 2019-04-26T20:18:05Z
    52      message: Rollout is not serving traffic from the active service.
    53      reason: Available
    54      status: "False"
    55      type: Available
    56    - lastTransitionTime: 2019-04-26T20:18:58Z
    57      lastUpdateTime: 2019-04-26T20:19:29Z
    58      message: ReplicaSet "example-rollout-canary-6b566f47b7" is progressing.
    59      reason: ReplicaSetUpdated
    60      status: "True"
    61      type: Progressing
    62    currentPodHash: 6b566f47b7
    63    currentStepHash: 6567fc959c
    64    currentStepIndex: 3
    65    observedGeneration: 6df79499bc
    66    readyReplicas: 5
    67    replicas: 5
    68    selector: app=guestbook
    69    updatedReplicas: 2