apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - https://github.com/prometheus-operator/kube-prometheus?ref=74f4e0cda3f3c2a4e8a1ab7d9bdbee019a47c851 patches: - path: node-exporter-patch.yaml target: kind: DaemonSet name: node-exporter - path: network-policies-patch.yaml target: kind: NetworkPolicy name: grafana - path: network-policies-patch.yaml target: kind: NetworkPolicy name: alertmanager-main - path: prometheus-network-policy-patch.yaml target: kind: NetworkPolicy name: prometheus-k8s - path: prometheus-patch.yaml target: kind: Prometheus name: k8s - path: alertmanager-patches.yaml target: kind: Alertmanager name: main - path: prometheus-cluster-role-patch.yaml target: kind: ClusterRole name: prometheus-k8s - path: grafana-deployment-patch.yaml target: kind: Deployment name: grafana - path: kubernetes-monitoring-rules-patches.yaml target: kind: PrometheusRule name: kubernetes-monitoring-rules - path: node-exporter-rules-patches.yaml target: kind: PrometheusRule name: node-exporter-rules - path: prometheus-operator-deployment-patches.yaml target: kind: Deployment name: prometheus-operator - path: blackbox-exporter-patches.yaml target: kind: Deployment name: blackbox-exporter - path: node-exporter-ds-patches.yaml target: kind: DaemonSet name: node-exporter - path: kube-state-metrics-deployment-patches.yaml target: kind: Deployment name: kube-state-metrics secretGenerator: - name: grafana-config namespace: monitoring behavior: replace files: - grafana/grafana.ini - name: grafana-datasources namespace: monitoring behavior: replace files: - grafana/datasources.yaml