github.com/oam-dev/kubevela@v1.9.11/vela-templates/definitions/usage-examples/application-with-k8s-update-strategy.yaml (about)

     1  apiVersion: core.oam.dev/v1beta1
     2  kind: Application
     3  metadata:
     4    name: application-with-update-strategy
     5  spec:
     6    components:
     7      - name: helloworld
     8        type: webservice
     9        properties:
    10          cpu: "0.5"
    11          exposeType: ClusterIP
    12          image: oamdev/hello-world:latest
    13          memory: 1024Mi
    14          ports:
    15            - expose: true
    16              port: 80
    17              protocol: TCP
    18        traits:
    19          - type: scaler
    20            properties:
    21              replicas: 5
    22          - type: k8s-update-strategy
    23            properties:
    24              targetAPIVersion: apps/v1
    25              targetKind: Deployment
    26              strategy:
    27                type: RollingUpdate
    28                rollingStrategy:
    29                  maxSurge: 20%
    30                  maxUnavailable: 30%
    31  
    32  
    33