Files
kubevela/docs/examples/workflow-with-ocm/initializers/init-managed-cluster.yaml
T
2021-08-04 20:23:56 +08:00

38 lines
1019 B
YAML

apiVersion: core.oam.dev/v1beta1
kind: Initializer
metadata:
name: managed-cluster
namespace: vela-system
spec:
appTemplate:
spec:
components:
- name: ack-worker
type: alibaba-ack
properties:
writeConnectionSecretToRef:
name: ack-conn
namespace: vela-system
workflow:
steps:
- name: terraform-ack
type: create-ack
properties:
component: ack-worker
outputs:
- name: connInfo
exportKey: connInfo
- name: register-ack
type: register-cluster
inputs:
- from: connInfo
parameterKey: connInfo
properties:
# user should set public network address of APIServer
hubAPIServer: {{ public network address of APIServer }}
env: prod
initNameSpace: default
patchLabels:
purpose: test