2021-11-23 22:51:54 +00:00
|
|
|
image:
|
2024-01-05 09:40:08 +00:00
|
|
|
repository: grafana/grafana
|
2021-11-23 22:51:54 +00:00
|
|
|
pullPolicy: IfNotPresent
|
2024-08-27 18:20:33 +00:00
|
|
|
tag: 11.1.5@sha256:f4796c6227f4acb0b0dfef12edc2c732f60f18f65a6cf005313700c0896aaa30
|
2024-01-06 00:09:08 +00:00
|
|
|
|
2024-01-05 09:40:08 +00:00
|
|
|
sidecarImage:
|
|
|
|
repository: quay.io/kiwigrid/k8s-sidecar
|
2024-07-24 13:43:42 +00:00
|
|
|
tag: 1.27.5@sha256:1fc88232e223a6977c626510372a74ca1f73af073e3c361719ccf02f223c8a12
|
2024-01-06 00:09:08 +00:00
|
|
|
|
2021-11-23 22:51:54 +00:00
|
|
|
securityContext:
|
2023-03-04 12:42:14 +00:00
|
|
|
container:
|
|
|
|
readOnlyRootFilesystem: false
|
2021-11-23 22:51:54 +00:00
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
2023-03-04 12:42:14 +00:00
|
|
|
protocol: http
|
2021-11-23 22:51:54 +00:00
|
|
|
targetPort: 3000
|
2024-01-05 09:40:08 +00:00
|
|
|
port: 3000
|
2023-03-04 12:42:14 +00:00
|
|
|
workload:
|
|
|
|
main:
|
2024-05-20 11:20:23 +00:00
|
|
|
replicas: 1
|
2023-03-04 12:42:14 +00:00
|
|
|
strategy: RollingUpdate
|
|
|
|
podSpec:
|
|
|
|
containers:
|
|
|
|
main:
|
|
|
|
env:
|
|
|
|
GF_SECURITY_ADMIN_USER: "admin"
|
|
|
|
GF_SECURITY_ADMIN_PASSWORD: "testpassword"
|
|
|
|
GF_INSTALL_PLUGINS: ""
|
|
|
|
GF_AUTH_LDAP_ENABLED: "false"
|
|
|
|
GF_AUTH_LDAP_ALLOW_SIGN_UP: "false"
|
2024-01-05 09:40:08 +00:00
|
|
|
GF_SERVER_HTTP_PORT: 3000
|
2024-02-25 14:23:19 +00:00
|
|
|
GF_DATABASE_TYPE: postgres
|
|
|
|
GF_DATABASE_NAME: "{{ .Values.cnpg.main.user }}"
|
|
|
|
GF_DATABASE_USER: "{{ .Values.cnpg.main.database }}"
|
|
|
|
GF_DATABASE_SSL_MODE: disable
|
|
|
|
GF_DATABASE_HOST:
|
|
|
|
secretKeyRef:
|
|
|
|
name: cnpg-main-urls
|
|
|
|
key: host
|
|
|
|
GF_DATABASE_PASSWORD:
|
|
|
|
secretKeyRef:
|
|
|
|
name: cnpg-main-user
|
|
|
|
key: password
|
2023-03-04 12:42:14 +00:00
|
|
|
probes:
|
|
|
|
liveness:
|
|
|
|
path: "/api/health"
|
|
|
|
readiness:
|
|
|
|
path: "/api/health"
|
|
|
|
startup:
|
|
|
|
path: "/api/health"
|
2024-01-05 09:40:08 +00:00
|
|
|
dashboards:
|
|
|
|
enabled: true
|
|
|
|
imageSelector: sidecarImage
|
|
|
|
env:
|
|
|
|
IGNORE_ALREADY_PROCESSED: false
|
|
|
|
METHOD: WATCH
|
|
|
|
LABEL: grafana_dashboard
|
2024-01-07 13:15:25 +00:00
|
|
|
LABEL_VALUE: "1"
|
2024-01-05 09:40:08 +00:00
|
|
|
LOG_LEVEL: info
|
|
|
|
FOLDER: /tmp/dashboards
|
|
|
|
RESOURCE: both
|
2024-01-08 00:10:21 +00:00
|
|
|
NAMESPACE: "ALL"
|
2024-01-05 09:40:08 +00:00
|
|
|
UNIQUE_FILENAMES: false
|
|
|
|
# NAMESPACE: null
|
|
|
|
# FOLDER_ANNOTATION: null
|
|
|
|
# script: null
|
|
|
|
# WATCH_SERVER_TIMEOUT: 3600
|
|
|
|
# WATCH_CLIENT_TIMEOUT: 3600
|
|
|
|
SKIP_TLS_VERIFY: false
|
|
|
|
REQ_USERNAME: "{{ .Values.workload.main.podSpec.containers.main.env.GF_SECURITY_ADMIN_USER }}"
|
2024-01-07 13:23:30 +00:00
|
|
|
REQ_PASSWORD: "{{ .Values.workload.main.podSpec.containers.main.env.GF_SECURITY_ADMIN_PASSWORD }}"
|
2024-01-05 09:40:08 +00:00
|
|
|
REQ_URL: "http://localhost:3000/api/admin/provisioning/dashboards/reload"
|
|
|
|
REQ_METHOD: POST
|
|
|
|
probes:
|
|
|
|
liveness:
|
|
|
|
enabled: false
|
|
|
|
readiness:
|
|
|
|
enabled: false
|
|
|
|
startup:
|
|
|
|
enabled: false
|
|
|
|
datasources:
|
|
|
|
enabled: true
|
|
|
|
imageSelector: sidecarImage
|
|
|
|
env:
|
|
|
|
IGNORE_ALREADY_PROCESSED: false
|
|
|
|
METHOD: WATCH
|
|
|
|
LABEL: grafana_datasources
|
2024-01-07 13:15:25 +00:00
|
|
|
LABEL_VALUE: "1"
|
2024-01-05 09:40:08 +00:00
|
|
|
LOG_LEVEL: info
|
2024-01-07 13:31:17 +00:00
|
|
|
FOLDER: /etc/grafana/provisioning/datasources
|
2024-01-05 09:40:08 +00:00
|
|
|
RESOURCE: both
|
2024-01-08 00:10:21 +00:00
|
|
|
NAMESPACE: "ALL"
|
2024-01-05 09:40:08 +00:00
|
|
|
UNIQUE_FILENAMES: false
|
|
|
|
# NAMESPACE: null
|
|
|
|
# FOLDER_ANNOTATION: null
|
|
|
|
# script: null
|
|
|
|
# WATCH_SERVER_TIMEOUT: 3600
|
|
|
|
# WATCH_CLIENT_TIMEOUT: 3600
|
|
|
|
SKIP_TLS_VERIFY: false
|
|
|
|
REQ_USERNAME: "{{ .Values.workload.main.podSpec.containers.main.env.GF_SECURITY_ADMIN_USER }}"
|
2024-01-07 13:23:30 +00:00
|
|
|
REQ_PASSWORD: "{{ .Values.workload.main.podSpec.containers.main.env.GF_SECURITY_ADMIN_PASSWORD }}"
|
2024-01-05 09:40:08 +00:00
|
|
|
REQ_URL: "http://localhost:3000/api/admin/provisioning/datasources/reload"
|
|
|
|
REQ_METHOD: POST
|
|
|
|
probes:
|
|
|
|
liveness:
|
|
|
|
enabled: false
|
|
|
|
readiness:
|
|
|
|
enabled: false
|
|
|
|
startup:
|
|
|
|
enabled: false
|
|
|
|
alerts:
|
|
|
|
enabled: true
|
|
|
|
imageSelector: sidecarImage
|
|
|
|
env:
|
|
|
|
IGNORE_ALREADY_PROCESSED: false
|
|
|
|
METHOD: WATCH
|
|
|
|
LABEL: grafana_alerts
|
2024-01-07 13:15:25 +00:00
|
|
|
LABEL_VALUE: "1"
|
2024-01-05 09:40:08 +00:00
|
|
|
LOG_LEVEL: info
|
2024-01-07 13:31:17 +00:00
|
|
|
FOLDER: /etc/grafana/provisioning/alerts
|
2024-01-05 09:40:08 +00:00
|
|
|
RESOURCE: both
|
2024-01-08 00:10:21 +00:00
|
|
|
NAMESPACE: "ALL"
|
2024-01-05 09:40:08 +00:00
|
|
|
UNIQUE_FILENAMES: false
|
|
|
|
# NAMESPACE: null
|
|
|
|
# FOLDER_ANNOTATION: null
|
|
|
|
# script: null
|
|
|
|
# WATCH_SERVER_TIMEOUT: 3600
|
|
|
|
# WATCH_CLIENT_TIMEOUT: 3600
|
|
|
|
SKIP_TLS_VERIFY: false
|
|
|
|
REQ_USERNAME: "{{ .Values.workload.main.podSpec.containers.main.env.GF_SECURITY_ADMIN_USER }}"
|
2024-01-07 13:23:30 +00:00
|
|
|
REQ_PASSWORD: "{{ .Values.workload.main.podSpec.containers.main.env.GF_SECURITY_ADMIN_PASSWORD }}"
|
2024-01-05 09:40:08 +00:00
|
|
|
REQ_URL: "http://localhost:3000/api/admin/provisioning/alerts/reload"
|
|
|
|
REQ_METHOD: POST
|
|
|
|
probes:
|
|
|
|
liveness:
|
|
|
|
enabled: false
|
|
|
|
readiness:
|
|
|
|
enabled: false
|
|
|
|
startup:
|
|
|
|
enabled: false
|
|
|
|
plugins:
|
|
|
|
enabled: true
|
|
|
|
imageSelector: sidecarImage
|
|
|
|
env:
|
|
|
|
IGNORE_ALREADY_PROCESSED: false
|
|
|
|
METHOD: WATCH
|
|
|
|
LABEL: grafana_plugins
|
2024-01-07 13:15:25 +00:00
|
|
|
LABEL_VALUE: "1"
|
2024-01-05 09:40:08 +00:00
|
|
|
LOG_LEVEL: info
|
2024-01-07 13:31:17 +00:00
|
|
|
FOLDER: /etc/grafana/provisioning/plugins
|
2024-01-05 09:40:08 +00:00
|
|
|
RESOURCE: both
|
2024-01-08 00:10:21 +00:00
|
|
|
NAMESPACE: "ALL"
|
2024-01-05 09:40:08 +00:00
|
|
|
UNIQUE_FILENAMES: false
|
|
|
|
# NAMESPACE: null
|
|
|
|
# FOLDER_ANNOTATION: null
|
|
|
|
# script: null
|
|
|
|
# WATCH_SERVER_TIMEOUT: 3600
|
|
|
|
# WATCH_CLIENT_TIMEOUT: 3600
|
|
|
|
SKIP_TLS_VERIFY: false
|
|
|
|
REQ_USERNAME: "{{ .Values.workload.main.podSpec.containers.main.env.GF_SECURITY_ADMIN_USER }}"
|
2024-01-07 13:23:30 +00:00
|
|
|
REQ_PASSWORD: "{{ .Values.workload.main.podSpec.containers.main.env.GF_SECURITY_ADMIN_PASSWORD }}"
|
2024-01-05 09:40:08 +00:00
|
|
|
REQ_URL: "http://localhost:3000/api/admin/provisioning/plugins/reload"
|
|
|
|
REQ_METHOD: POST
|
|
|
|
probes:
|
|
|
|
liveness:
|
|
|
|
enabled: false
|
|
|
|
readiness:
|
|
|
|
enabled: false
|
|
|
|
startup:
|
|
|
|
enabled: false
|
|
|
|
notifiers:
|
|
|
|
enabled: true
|
|
|
|
imageSelector: sidecarImage
|
|
|
|
env:
|
|
|
|
IGNORE_ALREADY_PROCESSED: false
|
|
|
|
METHOD: WATCH
|
|
|
|
LABEL: grafana_notifiers
|
2024-01-07 13:15:25 +00:00
|
|
|
LABEL_VALUE: "1"
|
2024-01-05 09:40:08 +00:00
|
|
|
LOG_LEVEL: info
|
2024-01-07 13:31:17 +00:00
|
|
|
FOLDER: /etc/grafana/provisioning/notifiers
|
2024-01-05 09:40:08 +00:00
|
|
|
RESOURCE: both
|
2024-01-08 00:10:21 +00:00
|
|
|
NAMESPACE: "ALL"
|
2024-01-05 09:40:08 +00:00
|
|
|
UNIQUE_FILENAMES: false
|
|
|
|
# NAMESPACE: null
|
|
|
|
# FOLDER_ANNOTATION: null
|
|
|
|
# script: null
|
|
|
|
# WATCH_SERVER_TIMEOUT: 3600
|
|
|
|
# WATCH_CLIENT_TIMEOUT: 3600
|
|
|
|
SKIP_TLS_VERIFY: false
|
|
|
|
REQ_USERNAME: "{{ .Values.workload.main.podSpec.containers.main.env.GF_SECURITY_ADMIN_USER }}"
|
2024-01-07 13:23:30 +00:00
|
|
|
REQ_PASSWORD: "{{ .Values.workload.main.podSpec.containers.main.env.GF_SECURITY_ADMIN_PASSWORD }}"
|
2024-01-05 09:40:08 +00:00
|
|
|
REQ_URL: "http://localhost:3000/api/admin/provisioning/notifiers/reload"
|
|
|
|
REQ_METHOD: POST
|
|
|
|
probes:
|
|
|
|
liveness:
|
|
|
|
enabled: false
|
|
|
|
readiness:
|
|
|
|
enabled: false
|
|
|
|
startup:
|
|
|
|
enabled: false
|
|
|
|
|
|
|
|
configmap:
|
|
|
|
dashboard-provider:
|
|
|
|
enabled: true
|
|
|
|
data:
|
|
|
|
provider.yaml: |-
|
|
|
|
apiVersion: 1
|
|
|
|
providers:
|
|
|
|
- name: sidecarProvider
|
|
|
|
orgId: 1
|
|
|
|
folder: ''
|
|
|
|
type: file
|
|
|
|
disableDeletion: false
|
|
|
|
allowUiUpdates: false
|
|
|
|
updateIntervalSeconds: 30
|
|
|
|
options:
|
2024-04-09 07:49:24 +00:00
|
|
|
foldersFromFilesStructure: true
|
2024-01-05 09:40:08 +00:00
|
|
|
path: /tmp/dashboards
|
|
|
|
config:
|
|
|
|
enabled: true
|
|
|
|
data:
|
|
|
|
grafana.ini: |-
|
|
|
|
paths:
|
|
|
|
data: /var/lib/grafana/
|
|
|
|
logs: /var/log/grafana
|
|
|
|
plugins: /var/lib/grafana/plugins
|
|
|
|
provisioning: /etc/grafana/provisioning
|
|
|
|
analytics:
|
|
|
|
check_for_updates: true
|
|
|
|
log:
|
|
|
|
mode: console
|
|
|
|
grafana_net:
|
|
|
|
url: https://grafana.net
|
|
|
|
server:
|
|
|
|
domain: "{{ if (and .Values.ingress.main.enabled .Values.ingress.main.hosts) }}{{ .Values.ingress.main.hosts | first }}{{ else }}''{{ end }}"
|
|
|
|
ldap.toml: |-
|
|
|
|
# nope
|
2024-01-06 00:09:08 +00:00
|
|
|
|
2021-11-23 22:51:54 +00:00
|
|
|
persistence:
|
|
|
|
config:
|
|
|
|
enabled: true
|
2024-01-05 09:40:08 +00:00
|
|
|
type: configmap
|
|
|
|
objectName: config
|
|
|
|
mountPath: /etc/grafana/grafana.ini
|
|
|
|
subPath: grafana.ini
|
|
|
|
ldap:
|
|
|
|
enabled: true
|
|
|
|
type: configmap
|
|
|
|
objectName: config
|
|
|
|
mountPath: /etc/grafana/ldap.toml
|
|
|
|
subPath: ldap.toml
|
|
|
|
data:
|
|
|
|
enabled: true
|
|
|
|
mountPath: "/var/lib/grafana"
|
2022-09-21 17:29:01 +00:00
|
|
|
grafana-tmp:
|
|
|
|
enabled: true
|
|
|
|
type: emptyDir
|
2024-01-05 09:40:08 +00:00
|
|
|
mountPath: /app/tmp
|
|
|
|
targetSelectAll: true
|
|
|
|
sc-dashboard-volume:
|
|
|
|
enabled: true
|
|
|
|
type: emptyDir
|
|
|
|
mountPath: /tmp/dashboards
|
|
|
|
targetSelectAll: true
|
|
|
|
sc-dashboard-config:
|
|
|
|
enabled: true
|
|
|
|
type: configmap
|
|
|
|
objectName: dashboard-provider
|
|
|
|
mountPath: /etc/grafana/provisioning/dashboards/sc-dashboardproviders.yaml
|
|
|
|
subPath: provider.yaml
|
|
|
|
sc-datasource-volume:
|
|
|
|
enabled: true
|
|
|
|
type: emptyDir
|
|
|
|
mountPath: /etc/grafana/provisioning/datasources
|
|
|
|
targetSelectAll: true
|
|
|
|
sc-alerts-volume:
|
|
|
|
enabled: true
|
|
|
|
type: emptyDir
|
|
|
|
mountPath: /etc/grafana/provisioning/alerts
|
|
|
|
targetSelectAll: true
|
|
|
|
sc-plugins-volume:
|
|
|
|
enabled: true
|
|
|
|
type: emptyDir
|
|
|
|
mountPath: /etc/grafana/provisioning/plugins
|
|
|
|
targetSelectAll: true
|
|
|
|
sc-notifiers-volume:
|
|
|
|
enabled: true
|
|
|
|
type: emptyDir
|
|
|
|
mountPath: /etc/grafana/provisioning/notifiers
|
|
|
|
targetSelectAll: true
|
2021-11-23 22:51:54 +00:00
|
|
|
metrics:
|
2023-03-04 12:42:14 +00:00
|
|
|
main:
|
|
|
|
# -- Enable and configure a Prometheus serviceMonitor for the chart under this key.
|
|
|
|
# @default -- See values.yaml
|
|
|
|
enabled: true
|
2023-07-12 07:39:18 +00:00
|
|
|
type: "servicemonitor"
|
2023-03-04 12:42:14 +00:00
|
|
|
endpoints:
|
|
|
|
- port: main
|
|
|
|
path: /metrics
|
|
|
|
# -- Enable and configure Prometheus Rules for the chart under this key.
|
|
|
|
# @default -- See values.yaml
|
|
|
|
prometheusRule:
|
|
|
|
enabled: false
|
|
|
|
labels: {}
|
|
|
|
# -- Configure additionial rules for the chart under this key.
|
|
|
|
# @default -- See prometheusrules.yaml
|
2023-11-17 10:20:22 +00:00
|
|
|
rules: []
|
|
|
|
# - alert: UnifiPollerAbsent
|
|
|
|
# annotations:
|
|
|
|
# description: Unifi Poller has disappeared from Prometheus service discovery.
|
|
|
|
# summary: Unifi Poller is down.
|
|
|
|
# expr: |
|
|
|
|
# absent(up{job=~".*unifi-poller.*"} == 1)
|
|
|
|
# for: 5m
|
|
|
|
# labels:
|
|
|
|
# severity: critical
|
2022-08-08 21:25:02 +00:00
|
|
|
portal:
|
2023-03-04 12:42:14 +00:00
|
|
|
open:
|
|
|
|
enabled: true
|
2024-01-05 09:40:08 +00:00
|
|
|
|
|
|
|
# -- Whether Role Based Access Control objects like roles and rolebindings should be created
|
|
|
|
rbac:
|
|
|
|
main:
|
|
|
|
enabled: true
|
|
|
|
primary: true
|
|
|
|
clusterWide: true
|
|
|
|
rules:
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["configmaps", "secrets"]
|
|
|
|
verbs: ["get", "watch", "list"]
|
|
|
|
|
|
|
|
serviceAccount:
|
|
|
|
main:
|
|
|
|
enabled: true
|
|
|
|
primary: true
|
2024-01-06 00:09:08 +00:00
|
|
|
|
2024-01-05 09:40:08 +00:00
|
|
|
podOptions:
|
|
|
|
automountServiceAccountToken: true
|
2024-02-25 14:23:19 +00:00
|
|
|
|
|
|
|
cnpg:
|
|
|
|
main:
|
|
|
|
enabled: true
|
|
|
|
user: grafana
|
2024-02-26 00:09:11 +00:00
|
|
|
database: grafana
|