2020-05-18 18:55:58 +00:00
|
|
|
resources:
|
|
|
|
- grafana-deployment.yaml
|
2021-08-26 16:42:28 +00:00
|
|
|
- grafana-ingress.yaml
|
2023-02-20 14:07:49 +00:00
|
|
|
- grafana-externalsecret.yaml
|
2020-05-18 18:55:58 +00:00
|
|
|
|
2023-02-28 05:06:48 +00:00
|
|
|
namePrefix: grafana-
|
|
|
|
|
2023-02-05 03:11:39 +00:00
|
|
|
commonLabels:
|
|
|
|
app.kubernetes.io/name: grafana
|
2023-02-28 05:06:48 +00:00
|
|
|
app.kubernetes.io/component: server
|
2023-02-05 03:11:39 +00:00
|
|
|
app.kubernetes.io/part-of: monitoring
|
|
|
|
|
2020-05-18 18:55:58 +00:00
|
|
|
configMapGenerator:
|
2023-02-28 05:06:48 +00:00
|
|
|
- name: kustomize-generated-config
|
|
|
|
literals:
|
|
|
|
- GRAFANA_EXTERNAL_HOST=grafana.badjware.dev
|
|
|
|
- GRAFANA_EXTERNAL_URL=https://grafana.badjware.dev
|
2020-05-18 18:55:58 +00:00
|
|
|
- name: grafana-datasources
|
|
|
|
files:
|
|
|
|
- datasources.yaml=provision/datasources.yaml
|
|
|
|
|
2023-02-28 05:06:48 +00:00
|
|
|
replacements:
|
|
|
|
- source:
|
|
|
|
kind: ConfigMap
|
|
|
|
name: kustomize-generated-config
|
|
|
|
fieldPath: data.GRAFANA_EXTERNAL_HOST
|
|
|
|
targets:
|
|
|
|
- select:
|
|
|
|
kind: Ingress
|
|
|
|
name: server
|
|
|
|
fieldPaths:
|
|
|
|
- spec.rules.0.host
|
|
|
|
|
2021-08-26 16:42:28 +00:00
|
|
|
# secretGenerator:
|
2021-08-28 03:54:21 +00:00
|
|
|
# - name: postgres-credentials
|
2021-08-26 16:42:28 +00:00
|
|
|
# type: Opaque
|
|
|
|
# behavior: create
|
|
|
|
# literals:
|
|
|
|
# - host=172.18.1.2:5432
|
|
|
|
# - database=grafana
|
|
|
|
# - username=grafana
|
|
|
|
# - password=changeme
|
|
|
|
|
|
|
|
# default username: admin
|
|
|
|
# default password: admin
|