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

42 lines
923 B
YAML

resources:
- prometheus.yaml
- prometheus-rbac.yaml
- prometheus-ingress.yaml
namePrefix: prometheus-
commonLabels:
app.kubernetes.io/name: prometheus
app.kubernetes.io/part-of: monitoring
secretGenerator:
- name: grafana-cloud-credentials
type: Opaque
behavior: create
literals:
- username=changeme
- password=changeme
# - name: additional-scrape-configs
# behavior: create
# literals:
# - prometheus-additional.yaml=
configMapGenerator:
- name: kustomize-generated-config
literals:
- PROMETHEUS_EXTERNAL_HOST=prometheus.badjware.dev
replacements:
- source:
kind: ConfigMap
name: kustomize-generated-config
fieldPath: data.PROMETHEUS_EXTERNAL_HOST
targets:
- select:
kind: Ingress
name: prometheus
fieldPaths:
- spec.rules.0.host
configurations:
- kustomizeconfig/namereference.yaml