Files
kubevela/docs/examples/workflow-with-ocm/rollout/app-first-scale.yaml
T
Hongchao Deng bec6c89389 examples: fix typo (#2128)
* examples: fix typo

* update yaml
2021-08-19 21:19:53 +08:00

36 lines
865 B
YAML

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: workflow-rollout-demo
namespace: default
spec:
components:
- name: nginx-server
externalRevision: nginx-server-v1
type: webservice
properties:
image: nginx:1.20.0
port: 80
traits:
- type: rollout
properties:
targetRevision: nginx-server-v1
targetSize: 2
# Rollout the two replicas in two batches
rolloutBatches:
- replicas: 1
- replicas: 1
workflow:
steps:
- name: dispatch-comp-rev-v1
type: dispatch-comp-rev
properties:
compRev: nginx-server-v1
cluster: poc-01
- name: dispatchRollout
type: dispatch-traits
properties:
component: nginx-server
cluster: poc-01