forked from keikoproj/active-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinlineHello.yaml
35 lines (35 loc) · 1.05 KB
/
inlineHello.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
apiVersion: activemonitor.keikoproj.io/v1alpha1
kind: HealthCheck
metadata:
name: inline-hello
# generateName: inline-hello-
namespace: health
spec:
# repeatAfterSec: 60 # duration in seconds
schedule:
cron: "@every 1m"
level: cluster
workflow:
generateName: inline-hello-
resource:
namespace: health # workflow will be submitted in this ns
serviceAccount: activemonitor-controller-sa # workflow will be submitted using this acct
source:
inline: |
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
labels:
workflows.argoproj.io/controller-instanceid: activemonitor-workflows
generateName: hello-world-
spec:
entrypoint: whalesay
templates:
-
container:
args:
- "hello world"
command:
- cowsay
image: "docker/whalesay:latest"
name: whalesay