Skip to content

Commit e406140

Browse files
Merge pull request #707 from run-ai/RUN-16775-Upgrade-cluster-from-2.16-to-2.17-fail
RUN-16775 Upgrade cluster from 2.16 to 2.17 fail
2 parents a97b23b + 9e9a866 commit e406140

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/admin/runai-setup/self-hosted/k8s/upgrade.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ title: Upgrade self-hosted Kubernetes installation
2020

2121
## Upgrade Control Plane
2222

23+
### Upgrade from Version 2.9, 2.13, 2.15 or 2.16
24+
25+
Before upgrading the control plane, run:
26+
27+
``` bash
28+
POSTGRES_PV=$(kubectl get pvc pvc-postgresql -n runai-backend -o jsonpath='{.spec.volumeName}')
29+
THANOS_PV=$(kubectl get pvc pvc-thanos-receive -n runai-backend -o jsonpath='{.spec.volumeName}')
30+
kubectl patch pv $POSTGRES_PV $THANOS_PV -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}'
31+
```
32+
2333
### Upgrade from Version 2.7 or 2.8
2434

2535
Before upgrading the control plane, run:

0 commit comments

Comments
 (0)