Argo/apps/templates/prometheus.yaml

70 lines
2.3 KiB
YAML
Raw Normal View History

2022-12-07 15:24:33 +01:00
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: prometheus
namespace: argo-cd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
server: https://kubernetes.default.svc
namespace: prometheus
project: default
source:
2022-12-07 15:29:20 +01:00
chart: kube-prometheus-stack
2022-12-07 15:24:33 +01:00
helm:
values: |
namespaceOverride: prometheus
2022-12-09 10:03:38 +01:00
alertmanager.enabled: true
2022-12-07 15:24:33 +01:00
kubeApiServer.enabled: false
kubelet.enabled: false
kubeControllerManager.enabled: false
coreDns.enabled: false
kubeDns.enabled: false
kubeEtcd.enabled: false
kubeScheduler.enabled: false
kubeProxy.enabled: false
kubeStateMetrics.enabled: false
grafana:
2022-12-12 09:54:03 +01:00
# persistence:
# enabled: true
# storageClassName: longhorn
2022-12-09 11:03:43 +01:00
env:
2022-12-09 13:19:48 +01:00
GF_SERVER_ROOT_URL: https://%(domain)s/
2022-12-09 11:03:43 +01:00
GF_AUTH_GENERIC_OAUTH_ENABLED: "true"
GF_AUTH_GENERIC_OAUTH_NAME: authentik
GF_AUTH_GENERIC_OAUTH_SCOPES: openid profile email
GF_AUTH_GENERIC_OAUTH_AUTH_URL: https://authentik.roxedus.com/application/o/authorize/
GF_AUTH_GENERIC_OAUTH_TOKEN_URL: https://authentik.roxedus.com/application/o/token/
GF_AUTH_GENERIC_OAUTH_API_URL: https://authentik.roxedus.com/application/o/userinfo/
GF_AUTH_SIGNOUT_REDIRECT_URL: https://authentik.roxedus.com/application/o/grafana/
GF_AUTH_OAUTH_AUTO_LOGIN: "true"
GF_AUTH_GENERIC_OAUTH_ROLE_ATTRIBUTE_PATH: "contains(groups[*], 'Grafana Admins') && 'Admin' || contains(groups[*], 'Grafana Editors') && 'Editor' || 'Viewer'"
envFromSecrets:
- name: grafana-oauth
2022-12-07 15:24:33 +01:00
ingress:
enabled: true
ingressClassName: traefik
annotations:
cert-manager.io/acme-challenge-type: dns01
cert-manager.io/cluster-issuer: roxedus.com-cloudflare
hosts:
- grafana.roxedus.com
tls:
- hosts:
- grafana.roxedus.com
secretName: grafana-roxedus-com-cert
repoURL: https://prometheus-community.github.io/helm-charts
targetRevision: 42.2.1
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
2022-12-09 13:06:07 +01:00
- ServerSideApply=true