Skip to content

Commit 5d2af0b

Browse files
authored
Update Seed MLA upgrade notes for Node-exporter, Alertmanager, Kube-state-metrics (#1911)
* Minor update to the Node-exporter upgrade docs Signed-off-by: archups <[email protected]> * Update Alertmanager upgrade notes Signed-off-by: archups <[email protected]> * Add migration notes for Kube-state-metrics chart Signed-off-by: archups <[email protected]> --------- Signed-off-by: archups <[email protected]>
1 parent a7cd992 commit 5d2af0b

File tree

2 files changed

+60
-0
lines changed
  • content/kubermatic
    • main/installation/upgrading/upgrade-from-2.27-to-2.28
    • v2.28/installation/upgrading/upgrade-from-2.27-to-2.28

2 files changed

+60
-0
lines changed

content/kubermatic/main/installation/upgrading/upgrade-from-2.27-to-2.28/_index.en.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ KKP 2.28 removes the custom Helm chart for Node Exporter and instead now reuses
2525
The following actions are required for migration before performing the upgrade:
2626

2727
- Replace the top-level key `nodeExporter` with `node-exporter` in the `values.yaml`
28+
- The image specification is broken down from `node-exporter.image.registry` and `node-exporter.image.repository` to configure the node-exporter image. Where `registry` is to specify the top level registry domain (i.e. quay.io) and `repository` specifies the image namespace and image name (i.e. prometheus/node-exporter).
2829
- The key `nodeExporter.rbacProxy` has been removed. Use `node-exporter.kubeRBACProxy` instead to configure kube-rbac-proxy.
30+
- The image specification is broken down to `node-exporter.kubeRBACProxy.image.registry` and `node-exporter.kubeRBACProxy.image.repository` to configure the kube-rbac-proxy image. Where `registry` is to specify the top level registry domain (i.e. quay.io) and `repository` specifies the image namespace and image name (i.e. brancz/kube-rbac-proxy).
2931

3032
Once the above adjustments have been made, you can do the seed-mla installation.
3133

@@ -87,6 +89,8 @@ Under `alertmanager` key in `values.yaml`, make following changes:
8789
- `resources.alertmanager` --> `resources`
8890
- `resources.reloader` --> `configmapReload.resources`
8991
- `affinity.podAntiAffinity` --> replaced by podAntiAffinity preset called `soft` (which is a default in new KKP alertmanager chart). So you can simply remove the podAntiAffinity block from your values.yaml if you are ok with `soft` podAntiAffinity.
92+
- `host` --> `baseURL`
93+
- `configReloaderImage.repository` --> `configmapReload.image.repository`
9094

9195
As part of KKP upgrade of monitoring components, the installer will remove the statefulset and then run the helm chart upgrade command.
9296

@@ -111,6 +115,32 @@ Finally, cleanup the leftover PVC resources from old helm chart installation.
111115
kubectl delete pvc -n monitoring -l app=alertmanager
112116
```
113117

118+
### Kube State Metrics Upgrade (Seed MLA)
119+
120+
KKP 2.28 removes the custom Helm chart for Kube State Metrics and instead now reuses the official [upstream Helm chart](https://prometheus-community.github.io/helm-charts).
121+
122+
#### Migration Procedure
123+
124+
The following actions are required for migration before performing the upgrade:
125+
126+
- Replace the top-level key `kubeStateMetrics` with `kube-state-metrics` in the `values.yaml`
127+
- The image specification is broken down from `kube-state-metrics.image.registry` and `kube-state-metrics.image.repository` to configure the kube-state-metrics image. Where `registry` is to specify the top level registry domain (i.e. registry.k8s.io) and `repository` specifies the image namespace and image name (i.e. kube-state-metrics/kube-state-metrics).
128+
- `resizer` has been removed.
129+
130+
Once the above adjustments have been made, you can do the seed-mla installation.
131+
132+
If you are using `kubermatic-installer` for the Seed MLA installation, then it will take care of removing the resources for the deprecated kube-state-metrics helm-chart and installing the new upstream based helm-chart by itself.
133+
134+
```bash
135+
./kubermatic-installer deploy seed-mla --helm-values values.yaml
136+
```
137+
138+
If you are installing MLA using GitOps / Manual way using Helm CLI, before upgrading, you must delete the existing Helm release before doing the upgrade.
139+
140+
```bash
141+
helm --namespace monitoring delete kube-state-metrics
142+
```
143+
114144
### Dex Migration
115145

116146
The custom `oauth` Helm chart in KKP was deprecated in 2.27 and has been removed in 2.28. `dex`, which is based on the [official upstream chart](https://github.com/dexidp/helm-charts/tree/master/charts/dex) has replaced it.

content/kubermatic/v2.28/installation/upgrading/upgrade-from-2.27-to-2.28/_index.en.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ KKP 2.28 removes the custom Helm chart for Node Exporter and instead now reuses
2525
The following actions are required for migration before performing the upgrade:
2626

2727
- Replace the top-level key `nodeExporter` with `node-exporter` in the `values.yaml`
28+
- The image specification is broken down from `node-exporter.image.registry` and `node-exporter.image.repository` to configure the node-exporter image. Where `registry` is to specify the top level registry domain (i.e. quay.io) and `repository` specifies the image namespace and image name (i.e. prometheus/node-exporter).
2829
- The key `nodeExporter.rbacProxy` has been removed. Use `node-exporter.kubeRBACProxy` instead to configure kube-rbac-proxy.
30+
- The image specification is broken down to `node-exporter.kubeRBACProxy.image.registry` and `node-exporter.kubeRBACProxy.image.repository` to configure the kube-rbac-proxy image. Where `registry` is to specify the top level registry domain (i.e. quay.io) and `repository` specifies the image namespace and image name (i.e. brancz/kube-rbac-proxy).
2931

3032
Once the above adjustments have been made, you can do the seed-mla installation.
3133

@@ -87,6 +89,8 @@ Under `alertmanager` key in `values.yaml`, make following changes:
8789
- `resources.alertmanager` --> `resources`
8890
- `resources.reloader` --> `configmapReload.resources`
8991
- `affinity.podAntiAffinity` --> replaced by podAntiAffinity preset called `soft` (which is a default in new KKP alertmanager chart). So you can simply remove the podAntiAffinity block from your values.yaml if you are ok with `soft` podAntiAffinity.
92+
- `host` --> `baseURL`
93+
- `configReloaderImage.repository` --> `configmapReload.image.repository`
9094

9195
As part of KKP upgrade of monitoring components, the installer will remove the statefulset and then run the helm chart upgrade command.
9296

@@ -111,6 +115,32 @@ Finally, cleanup the leftover PVC resources from old helm chart installation.
111115
kubectl delete pvc -n monitoring -l app=alertmanager
112116
```
113117

118+
### Kube State Metrics Upgrade (Seed MLA)
119+
120+
KKP 2.28 removes the custom Helm chart for Kube State Metrics and instead now reuses the official [upstream Helm chart](https://prometheus-community.github.io/helm-charts).
121+
122+
#### Migration Procedure
123+
124+
The following actions are required for migration before performing the upgrade:
125+
126+
- Replace the top-level key `kubeStateMetrics` with `kube-state-metrics` in the `values.yaml`
127+
- The image specification is broken down from `kube-state-metrics.image.registry` and `kube-state-metrics.image.repository` to configure the kube-state-metrics image. Where `registry` is to specify the top level registry domain (i.e. registry.k8s.io) and `repository` specifies the image namespace and image name (i.e. kube-state-metrics/kube-state-metrics).
128+
- `resizer` has been removed.
129+
130+
Once the above adjustments have been made, you can do the seed-mla installation.
131+
132+
If you are using `kubermatic-installer` for the Seed MLA installation, then it will take care of removing the resources for the deprecated kube-state-metrics helm-chart and installing the new upstream based helm-chart by itself.
133+
134+
```bash
135+
./kubermatic-installer deploy seed-mla --helm-values values.yaml
136+
```
137+
138+
If you are installing MLA using GitOps / Manual way using Helm CLI, before upgrading, you must delete the existing Helm release before doing the upgrade.
139+
140+
```bash
141+
helm --namespace monitoring delete kube-state-metrics
142+
```
143+
114144
### Dex Migration
115145

116146
The custom `oauth` Helm chart in KKP was deprecated in 2.27 and has been removed in 2.28. `dex`, which is based on the [official upstream chart](https://github.com/dexidp/helm-charts/tree/master/charts/dex) has replaced it.

0 commit comments

Comments
 (0)