Skip to content

Commit

Permalink
Update kube-state-metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Nov 1, 2023
1 parent 8afc4d9 commit ec22cbe
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions grafana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,23 @@ Remark:
Do not mind about `policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+` warnings,
they are indeed gracefully handled depending on the cluster capabilities.

To upgrade (e.g. kube-state-metrics version):
```
helm upgrade grafana-k8s-monitoring grafana/k8s-monitoring \
--namespace "grafana" --values grafana.values.yaml \
--values grafana.values.secret.yaml
```

If you face issues while upgrading due to deprecated API version in objects, you might benefit from using the
mapkubeapis plugin.

First, install the plugin:
```
helm plugin install https://github.com/helm/helm-mapkubeapis
```

Then, update release with mapkubeapis (will delete obsoleted objects and map old api to new ones):
```
helm mapkubeapis grafana-k8s-monitoring --namespace "grafana"
```

2 changes: 1 addition & 1 deletion grafana/grafana.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ logs:
kube-state-metrics:
enabled: true
image:
tag: v2.4.2
tag: v2.10.0

prometheus-node-exporter:
enabled: true
Expand Down

0 comments on commit ec22cbe

Please sign in to comment.