1
0
Fork 0
home-stack-kustomize/kustomize/bases/grafana/kustomization.yaml

46 lines
1.0 KiB
YAML
Raw Normal View History

2020-05-18 18:55:58 +00:00
resources:
- grafana-deployment.yaml
2021-08-26 16:42:28 +00:00
- grafana-ingress.yaml
- grafana-externalsecret.yaml
2020-05-18 18:55:58 +00:00
namePrefix: grafana-
2023-02-05 03:11:39 +00:00
commonLabels:
app.kubernetes.io/name: grafana
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:
- 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
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