-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathlma-uniformed-wftpl.yaml
140 lines (137 loc) · 3.92 KB
/
lma-uniformed-wftpl.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: lma-federation
namespace: argo
spec:
entrypoint: prepare
arguments:
parameters:
- name: site_name
value: "hanu-reference"
- name: app_group
value: "lma"
- name: site_repo_url
value: "https://github.com/openinfradev/decapod-site"
- name: manifest_repo_url
value: "https://github.com/openinfradev/decapod-manifests"
- name: revision
value: main
templates:
- name: prepare
inputs: {}
outputs: {}
metadata: {}
steps:
- - name: configuration
template: configuration
arguments: {}
- - name: deploy
template: deploy
arguments: {}
- name: configuration
inputs: {}
outputs: {}
metadata: {}
container:
name: config
image: 'k8s.gcr.io/hyperkube:v1.18.8'
command:
- /bin/bash
- '-c'
- |
kubectl get ns lma
if [[ $? != 0 ]]; then
kubectl create ns lma
kubectl label ns lma name=lma
kubectl label ns lma taco-tls=enabled
fi
resources: {}
imagePullPolicy: IfNotPresent
activeDeadlineSeconds: 120
- name: deploy
dag:
tasks:
- name: operator
templateRef:
name: create-application
template: installApps
arguments:
parameters:
- name: list
value: |
[
{ "path": "prometheus-operator", "namespace": "lma" },
{ "path": "eck-operator", "namespace": "elastic-system" },
{ "path": "fluentbit-operator", "namespace": "lma" }
]
dependencies: []
- name: logging
templateRef:
name: create-application
template: installApps
arguments:
parameters:
- name: list
value: |
[
{ "path": "eck-resource", "namespace": "lma" },
{ "path": "fluentbit", "namespace": "lma" },
{ "path": "kubernetes-event-exporter", "namespace": "lma" }
]
dependencies: [operator]
- name: prepare-lma
templateRef:
name: create-application
template: installApps
arguments:
parameters:
- name: list
value: |
[
{ "path": "thanos-config", "namespace": "lma" },
{ "path": "prepare-etcd-secret", "namespace": "lma" }
]
dependencies: [operator]
- name: prometheus
templateRef:
name: create-application
template: installApps
arguments:
parameters:
- name: list
value: |
[
{ "path": "prometheus", "namespace": "lma" },
{ "path": "kube-state-metrics", "namespace": "lma" },
{ "path": "prometheus-process-exporter", "namespace": "lma" },
{ "path": "prometheus-pushgateway", "namespace": "lma" },
{ "path": "prometheus-node-exporter", "namespace": "lma" },
{ "path": "prometheus-adapter", "namespace": "lma" },
{ "path": "addons", "namespace": "lma" }
]
dependencies: [prepare-lma]
- name: federation
templateRef:
name: create-application
template: installApps
arguments:
parameters:
- name: list
value: |
[
{ "path": "thanos", "namespace": "lma" }
]
dependencies: [prometheus,logging]
- name: grafana
templateRef:
name: create-application
template: installApps
arguments:
parameters:
- name: list
value: |
[
{ "path": "grafana", "namespace": "lma" }
]
dependencies: [federation]