github.com/oam-dev/kubevela@v1.9.11/references/docgen/def-doc/workflowstep/collect-service-endpoints.eg.md (about) 1 ```yaml 2 apiVersion: core.oam.dev/v1beta1 3 kind: Application 4 metadata: 5 name: app-collect-service-endpoint-and-export 6 spec: 7 components: 8 - type: webservice 9 name: busybox 10 properties: 11 image: busybox 12 imagePullPolicy: IfNotPresent 13 cmd: 14 - sleep 15 - '1000000' 16 traits: 17 - type: expose 18 properties: 19 port: [8080] 20 type: ClusterIP 21 policies: 22 - type: topology 23 name: local 24 properties: 25 clusters: ["local"] 26 - type: topology 27 name: all 28 properties: 29 clusters: ["local", "cluster-worker"] 30 workflow: 31 steps: 32 - type: deploy 33 name: deploy 34 properties: 35 policies: ["local"] 36 - type: collect-service-endpoints 37 name: collect-service-endpoints 38 outputs: 39 - name: host 40 valueFrom: value.endpoint.host 41 - type: export-data 42 name: export-data 43 properties: 44 topology: all 45 inputs: 46 - from: host 47 parameterKey: data.host 48 ```