48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
resources:
|
|
- https://github.com/prometheus-operator/kube-prometheus?ref=b5b59bc0b45508b85647eb7a84b96dc167be15f1
|
|
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: prometheus-k8s
|
|
- path: network-policies-patch.yaml
|
|
target:
|
|
kind: NetworkPolicy
|
|
name: alertmanager-main
|
|
- path: prometheus-patch.yaml
|
|
target:
|
|
kind: Prometheus
|
|
name: k8s
|
|
- 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
|
|
secretGenerator:
|
|
- name: grafana-config
|
|
namespace: monitoring
|
|
behavior: replace
|
|
files:
|
|
- grafana/grafana.ini
|
|
- name: grafana-datasources
|
|
namespace: monitoring
|
|
behavior: replace
|
|
files:
|
|
- grafana/datasources.yaml
|