github.com/oam-dev/kubevela@v1.9.11/test/e2e-multicluster-test/testdata/app/app-collect-service-endpoint-and-export.yaml (about)

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