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

46 lines
1.0 KiB
YAML

resources:
- grafana-deployment.yaml
- grafana-ingress.yaml
- grafana-externalsecret.yaml
namePrefix: grafana-
commonLabels:
app.kubernetes.io/name: grafana
app.kubernetes.io/component: server
app.kubernetes.io/part-of: monitoring
configMapGenerator:
- name: kustomize-generated-config
literals:
- GRAFANA_EXTERNAL_HOST=grafana.badjware.dev
- GRAFANA_EXTERNAL_URL=https://grafana.badjware.dev
- 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
# secretGenerator:
# - name: postgres-credentials
# type: Opaque
# behavior: create
# literals:
# - host=172.18.1.2:5432
# - database=grafana
# - username=grafana
# - password=changeme
# default username: admin
# default password: admin