-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopentelemetry-kube-stack.yaml
47 lines (47 loc) · 1.48 KB
/
opentelemetry-kube-stack.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
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: opentelemetry-kube-stack
namespace: argocd
spec:
goTemplate: true
generators:
- clusters:
selector:
matchLabels:
monitoring: "true"
values:
clusterName: "{{.name}}"
- list:
elements:
- name: in-cluster
values:
clusterName: k3d-control
template:
metadata:
name: "opentelemetry-kube-stack-{{.values.clusterName}}"
spec:
project: monitoring
sources:
- repoURL: https://github.com/Utwo/k8s-playground
path: monitoring/opentelemetry-kube-stack
targetRevision: HEAD
ref: myRepo # repo is available via symlink "myRepo"
- repoURL: https://open-telemetry.github.io/opentelemetry-helm-charts
targetRevision: 0.4.1
chart: opentelemetry-kube-stack
helm:
ignoreMissingValueFiles: true
valueFiles:
- $myRepo/monitoring/opentelemetry-kube-stack/helm-chart-values/clusters/all/values.yaml
- $myRepo/monitoring/opentelemetry-kube-stack/helm-chart-values/clusters/{{.values.clusterName}}/values.yaml
parameters:
- name: "clusterName"
value: "{{.values.clusterName}}"
destination:
name: "{{.name}}"
namespace: opentelemetry-kube-stack
syncPolicy:
syncOptions:
- CreateNamespace=true
- ServerSideApply=true