diff options
author | makefunstuff <[email protected]> | 2024-06-28 21:49:42 +0200 |
---|---|---|
committer | makefunstuff <[email protected]> | 2024-06-28 21:49:42 +0200 |
commit | 8c4a3ae4c40d3b08b153f6143c69d6320e8d0286 (patch) | |
tree | d4e2dfd0385d5229814c93ea315f36dc45dc693e /cd | |
parent | b1f8aa3b4b182c002c34d3b45942e18fde5d654f (diff) | |
download | k3s-lab-8c4a3ae4c40d3b08b153f6143c69d6320e8d0286.tar.gz |
trying to split to separate applications and use applicationset instead
Diffstat (limited to '')
-rw-r--r-- | cd/monitoring.yaml | 19 | ||||
-rw-r--r-- | cd/tools.yaml | 28 |
2 files changed, 28 insertions, 19 deletions
diff --git a/cd/monitoring.yaml b/cd/monitoring.yaml deleted file mode 100644 index bac0f5a..0000000 --- a/cd/monitoring.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - name: monitoring - namespace: default -spec: - project: default - source: - repoURL: 'https://github.com/makefunstuff/k3s-lab' - targetRevision: HEAD - path: tools/monitoring - destination: - server: 'https://kubernetes.default.svc' - namespace: default - syncPolicy: - automated: - prune: true - selfHeal: true - diff --git a/cd/tools.yaml b/cd/tools.yaml new file mode 100644 index 0000000..a2cfc89 --- /dev/null +++ b/cd/tools.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + name: monitoring-applicationset + namespace: argocd +spec: + generators: + - list: + elements: + - chart: grafana + path: tools/grafana + template: + metadata: + name: '{{chart}}' + spec: + project: default + source: + repoURL: 'https://github.com/makefunstuff/k3s-lab' + targetRevision: HEAD + path: '{{path}}' + destination: + server: 'https://kubernetes.default.svc' + namespace: monitoring + syncPolicy: + automated: + prune: true + selfHeal: true + |