Skip to content

Commit 3518826

Browse files
committed
feat: added argocd app deployment
Signed-off-by: David <[email protected]>
1 parent 9d11d49 commit 3518826

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

Diff for: README.md

+9
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- [Installation](#installation)
1111
- [Install manually](#install-manually)
1212
- [Install via grafana.com](#install-via-grafanacom)
13+
- [Install with ArgoCD](#install-with-argocd)
1314
- [Install as ConfigMaps](#install-as-configmaps)
1415
- [Install as ConfigMaps with Terraform](#install-as-configmaps-with-terraform)
1516
- [Contributing](#contributing)
@@ -80,6 +81,14 @@ Grafana.com dashboard id list:
8081
| k8s-views-nodes.json | 15759 |
8182
| k8s-views-pods.json | 15760 |
8283

84+
### Install with ArgoCD
85+
86+
If you have ArgoCD, this will deploy the dashboards in ArgoCD's default project:
87+
88+
```terminal
89+
kubectl apply -f argocd-app.yml
90+
```
91+
8392
### Install as ConfigMaps
8493

8594
Grafana dashboards can be provisionned as Kubernetes ConfigMaps if you configure the [dashboard sidecar](https://github.com/grafana/helm-charts/blob/main/charts/grafana/values.yaml#L667) available on the official [Grafana Helm Chart](https://github.com/grafana/helm-charts/tree/main/charts/grafana).

Diff for: argocd-app.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: grafana-dashboards-kubernetes
5+
namespace: argocd
6+
labels:
7+
app.kubernetes.io/name: grafana-dashboards-kubernetes
8+
app.kubernetes.io/version: HEAD
9+
app.kubernetes.io/managed-by: argocd
10+
finalizers:
11+
- resources-finalizer.argocd.argoproj.io
12+
spec:
13+
project: default # You may need to change this!
14+
source:
15+
path: ./
16+
repoURL: https://github.com/dotdc/grafana-dashboards-kubernetes
17+
targetRevision: HEAD
18+
19+
destination:
20+
server: https://kubernetes.default.svc
21+
namespace: monitoring
22+
syncPolicy:
23+
## https://argo-cd.readthedocs.io/en/stable/user-guide/auto_sync
24+
automated:
25+
prune: true
26+
selfHeal: true
27+
syncOptions:
28+
- CreateNamespace=true
29+
- Replace=true

0 commit comments

Comments
 (0)