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.badjnet.home 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