@ -1,3 +1,4 @@
|
||||
{{ if .Values.nfc_monitoring.kube_monitor_proxy.enabled }}
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
@ -19,3 +20,5 @@ rules:
|
||||
resources:
|
||||
- subjectaccessreviews
|
||||
verbs: ["create"]
|
||||
|
||||
{{ end }}
|
@ -1,3 +1,4 @@
|
||||
{{ if .Values.nfc_monitoring.kube_monitor_proxy.enabled }}
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: DaemonSet
|
||||
@ -134,3 +135,5 @@ spec:
|
||||
serviceAccountName: kube-monitor-proxy
|
||||
tolerations:
|
||||
- operator: Exists
|
||||
|
||||
{{ end }}
|
||||
|
@ -1,3 +1,4 @@
|
||||
{{ if .Values.nfc_monitoring.kube_monitor_proxy.enabled }}
|
||||
---
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: PrometheusRule
|
||||
@ -84,3 +85,5 @@ spec:
|
||||
record: count:up1
|
||||
- expr: count without(instance, pod, node) (up == 0)
|
||||
record: count:up0
|
||||
|
||||
{{ end }}
|
@ -1,3 +1,4 @@
|
||||
{{ if .Values.nfc_monitoring.kube_monitor_proxy.enabled }}
|
||||
---
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: PrometheusRule
|
||||
@ -1439,3 +1440,5 @@ spec:
|
||||
labels:
|
||||
quantile: "0.5"
|
||||
record: node_quantile:kubelet_pleg_relist_duration_seconds:histogram_quantile
|
||||
|
||||
{{ end }}
|
@ -1,3 +1,4 @@
|
||||
{{ if .Values.nfc_monitoring.kube_monitor_proxy.enabled }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
@ -28,3 +29,5 @@ spec:
|
||||
port: 10259
|
||||
targetPort: kube-scheduler
|
||||
sessionAffinity: ClientIP
|
||||
|
||||
{{ end }}
|
||||
|
@ -1,3 +1,4 @@
|
||||
{{ if .Values.nfc_monitoring.kube_monitor_proxy.enabled }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
@ -11,3 +12,5 @@ metadata:
|
||||
app.kubernetes.io/managed-by: {{ $.Release.Service }}
|
||||
app.kubernetes.io/part-of: {{ $.Chart.Name }}
|
||||
app.kubernetes.io/version: {{ $.Chart.Version }}
|
||||
|
||||
{{ end }}
|
@ -1,4 +1,5 @@
|
||||
{{ if .Values.nfc_monitoring.prometheus.service_monitor.kube_controller_manager }}
|
||||
{{ if .Values.nfc_monitoring.kube_monitor_proxy.enabled }}
|
||||
---
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
@ -82,4 +83,5 @@ spec:
|
||||
app.kubernetes.io/name: kube-monitor-proxy
|
||||
app.kubernetes.io/part-of: {{ $.Chart.Name }}
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
@ -1,4 +1,5 @@
|
||||
{{ if .Values.nfc_monitoring.prometheus.service_monitor.kube_scheduler }}
|
||||
{{ if .Values.nfc_monitoring.kube_monitor_proxy.enabled }}
|
||||
---
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
@ -36,4 +37,5 @@ spec:
|
||||
app.kubernetes.io/name: kube-monitor-proxy
|
||||
app.kubernetes.io/part-of: {{ $.Chart.Name }}
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
12
values.yaml
12
values.yaml
@ -241,10 +241,12 @@ nfc_monitoring:
|
||||
|
||||
|
||||
kube_monitor_proxy:
|
||||
enabled: false
|
||||
namespace: monitoring
|
||||
|
||||
|
||||
kube_rbac_proxy:
|
||||
|
||||
# This image is used as part of kube-monitor-proxy.
|
||||
image:
|
||||
name: quay.io/brancz/kube-rbac-proxy
|
||||
@ -387,6 +389,16 @@ nfc_monitoring:
|
||||
matchLabels:
|
||||
role: alert-rules
|
||||
|
||||
service_monitors:
|
||||
apiserver: false
|
||||
cadvisor: false
|
||||
calico: false
|
||||
ceph: false
|
||||
coredns: false
|
||||
kube_controller_manager: false
|
||||
kubelet: false
|
||||
kube_scheduler: false
|
||||
|
||||
|
||||
prometheus_adaptor:
|
||||
|
||||
|
Reference in New Issue
Block a user