mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-27 16:17:34 +00:00
* Feat: add get topology placement in multi-cluster provider Signed-off-by: Somefive <yd219913@alibaba-inc.com> * Fix: velaql in workflow use auth Signed-off-by: Somefive <yd219913@alibaba-inc.com> * Chore: remove ui-hidden & support filter outer Signed-off-by: Somefive <yd219913@alibaba-inc.com> Signed-off-by: Somefive <yd219913@alibaba-inc.com>
48 lines
1.0 KiB
Markdown
48 lines
1.0 KiB
Markdown
```yaml
|
|
apiVersion: core.oam.dev/v1beta1
|
|
kind: Application
|
|
metadata:
|
|
name: app-collect-service-endpoint-and-export
|
|
spec:
|
|
components:
|
|
- type: webservice
|
|
name: busybox
|
|
properties:
|
|
image: busybox
|
|
imagePullPolicy: IfNotPresent
|
|
cmd:
|
|
- sleep
|
|
- '1000000'
|
|
traits:
|
|
- type: expose
|
|
properties:
|
|
port: [8080]
|
|
type: ClusterIP
|
|
policies:
|
|
- type: topology
|
|
name: local
|
|
properties:
|
|
clusters: ["local"]
|
|
- type: topology
|
|
name: all
|
|
properties:
|
|
clusters: ["local", "cluster-worker"]
|
|
workflow:
|
|
steps:
|
|
- type: deploy
|
|
name: deploy
|
|
properties:
|
|
policies: ["local"]
|
|
- type: collect-service-endpoints
|
|
name: collect-service-endpoints
|
|
outputs:
|
|
- name: host
|
|
valueFrom: value.endpoint.host
|
|
- type: export-data
|
|
name: export-data
|
|
properties:
|
|
topology: all
|
|
inputs:
|
|
- from: host
|
|
parameterKey: data.host
|
|
``` |