Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEV-21538 Update kube-state-metrics image and clusterRole #151

Merged
merged 10 commits into from
Feb 18, 2024
2 changes: 1 addition & 1 deletion api/v1/monitoring.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ var infraMonitoringDefault = CnvrgInfraMonitoring{
},
KubeStateMetrics: KubeStateMetrics{
Enabled: false,
Image: "kube-state-metrics:v1.9.7",
Image: "kube-state-metrics:v2.8.1",
},
NodeExporter: NodeExporter{
Enabled: false,
Expand Down
8 changes: 8 additions & 0 deletions pkg/monitoring/tmpl/kube-state-metrics/clusterrole.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@ rules:
- networking.k8s.io
resources:
- networkpolicies
- ingresses
verbs:
- list
- watch
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- list
- watch
4 changes: 2 additions & 2 deletions pkg/monitoring/tmpl/kube-state-metrics/dep.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
{{- end }}
labels:
app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/version: v1.9.7
app.kubernetes.io/version: v2.8.1
{{- range $k, $v := .Spec.Labels }}
{{$k}}: "{{$v}}"
{{- end }}
Expand All @@ -26,7 +26,7 @@ spec:
{{- end }}
labels:
app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/version: v1.9.7
app.kubernetes.io/version: v2.8.1
{{- range $k, $v := .Spec.Labels }}
{{$k}}: "{{$v}}"
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion pkg/monitoring/tmpl/kube-state-metrics/servicemonitor.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
{{- end }}
labels:
app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/version: 1.9.7
app.kubernetes.io/version: 2.8.1
cnvrg-infra-prometheus: {{ .Name }}-{{ ns .}}
{{- range $k, $v := .Spec.Labels }}
{{$k}}: "{{$v}}"
Expand Down
Loading