2024-07-10 04:10:53 +00:00
|
|
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
|
|
kind: Kustomization
|
|
|
|
resources:
|
|
|
|
- https://github.com/prometheus-operator/kube-prometheus?ref=b5b59bc0b45508b85647eb7a84b96dc167be15f1
|
|
|
|
patches:
|
|
|
|
# patch node-exporter to listen from the host on 9100 and move the internal https listener to 9101
|
|
|
|
- path: node-exporter-patch.yaml
|
|
|
|
target:
|
|
|
|
kind: DaemonSet
|
|
|
|
name: node-exporter
|
|
|
|
|
|
|
|
# Patch network policies to allow traefik to access them
|
|
|
|
- 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
|
2024-07-10 22:57:09 +00:00
|
|
|
|
|
|
|
- path: prometheus-patch.yaml
|
|
|
|
target:
|
|
|
|
kind: Prometheus
|
|
|
|
name: k8s
|
|
|
|
|
2024-07-27 23:54:45 +00:00
|
|
|
- path: prometheus-cluster-role-patch.yaml
|
2024-07-10 22:57:09 +00:00
|
|
|
target:
|
|
|
|
kind: ClusterRole
|
|
|
|
name: prometheus-k8s
|
2024-07-27 19:11:56 +00:00
|
|
|
|
|
|
|
- path: grafana-deployment-patch.yaml
|
|
|
|
target:
|
|
|
|
kind: Deployment
|
|
|
|
name: grafana
|
|
|
|
|
|
|
|
secretGenerator:
|
|
|
|
- name: grafana-config
|
|
|
|
namespace: monitoring
|
|
|
|
behavior: replace
|
|
|
|
files:
|
2024-07-27 23:54:45 +00:00
|
|
|
- grafana/grafana.ini
|
|
|
|
|
|
|
|
configMapGenerator:
|
|
|
|
- name: grafana-dashboards
|
|
|
|
namespace: monitoring
|
|
|
|
behavior: replace
|
|
|
|
files:
|
|
|
|
- grafana/dashboards.yaml
|