github.com/oam-dev/kubevela@v1.9.11/test/e2e-test/testdata/app/app_replication.yaml (about) 1 apiVersion: core.oam.dev/v1beta1 2 kind: Application 3 metadata: 4 name: app-replication-policy 5 spec: 6 components: 7 - name: hello-rep 8 type: replica-webservice 9 properties: 10 image: crccheck/hello-world 11 ports: 12 - port: 80 13 expose: true 14 - name: hello-no-rep 15 type: webservice 16 properties: 17 image: crccheck/hello-world 18 ports: 19 - port: 80 20 expose: true 21 22 policies: 23 - name: comp-to-replicate 24 type: override 25 properties: 26 selector: [ "hello-rep" ] 27 - name: comp-not-replicate 28 type: override 29 properties: 30 selector: [ "hello-no-rep" ] 31 - name: target-default 32 type: topology 33 properties: 34 clusters: [ "local" ] 35 - name: replication-default 36 type: replication 37 properties: 38 keys: ["beijing","hangzhou"] 39 selector: ["hello-rep"] 40 41 workflow: 42 steps: 43 - name: deploy-with-rep 44 type: deploy 45 properties: 46 policies: ["comp-to-replicate","target-default","replication-default"] 47 - name: deploy-without-rep 48 type: deploy 49 properties: 50 policies: ["comp-not-replicate","target-default"]