github.com/oam-dev/kubevela@v1.9.11/docs/examples/workflow/canary-rollout/first-deploy.yaml (about)

     1  apiVersion: core.oam.dev/v1beta1
     2  kind: Application
     3  metadata:
     4    name: canary-test
     5    namespace: default
     6  spec:
     7    components:
     8      - name: canarydemo
     9        type: webservice
    10        properties:
    11          image: docker.io/barnett/canarydemo:v1
    12          port: 8090
    13  
    14        traits:
    15          - type: canary-traffic
    16            properties:
    17              port:
    18                - 8090
    19  
    20          - type: rollout
    21            properties:
    22              targetSize: 2
    23              # This means to rollout two more replicas in two batches.
    24              rolloutBatches:
    25                - replicas: 2
    26  
    27      - name: gateway
    28        type: webservice
    29        properties:
    30          image: docker.io/barnett/canarydemo-gateway:v2
    31          port: 8091
    32  
    33        traits:
    34          - type: expose
    35            properties:
    36              port:
    37                - 8091
    38  
    39          - type: istio-gateway
    40            properties:
    41              hosts:
    42                - "*"
    43              gateway: ingressgateway
    44              match:
    45                - exact: /server
    46              port: 8091