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