mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-21 16:53:23 +00:00
42 lines
976 B
YAML
42 lines
976 B
YAML
apiVersion: core.oam.dev/v1beta1
|
|
kind: Application
|
|
metadata:
|
|
name: first-vela-workflow
|
|
namespace: default
|
|
spec:
|
|
components:
|
|
- name: express-server
|
|
type: webservice
|
|
properties:
|
|
image: crccheck/hello-world
|
|
port: 8000
|
|
traits:
|
|
- type: ingress
|
|
properties:
|
|
domain: testsvc.example.com
|
|
http:
|
|
/: 8000
|
|
workflow:
|
|
steps:
|
|
- name: notification
|
|
type: webhook-notification
|
|
properties:
|
|
dingding:
|
|
# directly specify the webhook url
|
|
url:
|
|
address: <dingding-url>
|
|
message:
|
|
msgtype: text
|
|
text:
|
|
content: Hello KubeVela
|
|
slack:
|
|
url:
|
|
# use url in secret
|
|
formSecret:
|
|
name: <secret-name>
|
|
key: <secret-key>
|
|
message:
|
|
text: Hello KubeVela
|
|
- name: first-server
|
|
type: apply-application
|