github.com/oam-dev/kubevela@v1.9.11/references/docgen/def-doc/policy/topology.eg.md (about) 1 ```yaml 2 apiVersion: core.oam.dev/v1beta1 3 kind: Application 4 metadata: 5 name: basic-topology 6 namespace: examples 7 spec: 8 components: 9 - name: nginx-basic 10 type: webservice 11 properties: 12 image: nginx 13 policies: 14 - name: topology-hangzhou-clusters 15 type: topology 16 properties: 17 clusters: ["hangzhou-1", "hangzhou-2"] 18 ``` 19 20 ```yaml 21 apiVersion: core.oam.dev/v1beta1 22 kind: Application 23 metadata: 24 name: label-selector-topology 25 namespace: examples 26 spec: 27 components: 28 - name: nginx-label-selector 29 type: webservice 30 properties: 31 image: nginx 32 policies: 33 - name: topology-hangzhou-clusters 34 type: topology 35 properties: 36 clusterLabelSelector: 37 region: hangzhou 38 ``` 39 40 ```yaml 41 apiVersion: core.oam.dev/v1beta1 42 kind: Application 43 metadata: 44 name: local-ns-topology 45 namespace: examples 46 spec: 47 components: 48 - name: nginx-local-ns 49 type: webservice 50 properties: 51 image: nginx 52 policies: 53 - name: topology-local 54 type: topology 55 properties: 56 clusters: ["local"] 57 namespace: examples-alternative 58 ```