|
| 1 | +--- |
| 2 | +slug: upgrade-notes |
| 3 | +title: Upgrade Notes |
| 4 | +sidebar_label: Upgrade Notes |
| 5 | +--- |
| 6 | + |
| 7 | +## About upgrade notes |
| 8 | + |
| 9 | +In some cases between versions upgrades there are issues that can occur, on this page you will find fixes on how to deal with those issues. |
| 10 | + |
| 11 | +## v4.4.4 to v4.7.0 or higher |
| 12 | + |
| 13 | +From v4.4.4 to a higher version there might occur an issue with the harbor redis, which results in the harbor-redis-0 pod restarting indefinitely. |
| 14 | + |
| 15 | +To solve this issue you have to delete the harbor redis data according to the following steps. |
| 16 | + |
| 17 | +### Disable ArgoCD autoSync on harbor-harbor |
| 18 | +```shell |
| 19 | +kubectl patch application harbor-harbor \ |
| 20 | + -n argocd \ |
| 21 | + --type='json' \ |
| 22 | + -p='[{"op": "remove", "path": "/spec/syncPolicy/automated"}]' |
| 23 | +``` |
| 24 | + |
| 25 | +### Scale down harbor-jobservice, harbor-core to zero |
| 26 | +```shell |
| 27 | +kubectl scale deploy harbor-jobservice --replicas=0 -n harbor |
| 28 | +kubectl scale deploy harbor-core --replicas=0 -n harbor |
| 29 | +``` |
| 30 | + |
| 31 | +:::note |
| 32 | +If the version you are going to upgrade to is of v4.7.0 or higher you also have to scale down the apl-operator |
| 33 | +::: |
| 34 | + |
| 35 | +```shell |
| 36 | +kubectl scale deploy apl-operator --replicas=0 -n apl-operator |
| 37 | +``` |
| 38 | + |
| 39 | +### Scale down the harbor redis to zero |
| 40 | +```shell |
| 41 | +kubectl scale sts harbor-redis --replicas=0 -n harbor |
| 42 | +``` |
| 43 | + |
| 44 | +### PVC data-harbor-redis-0 is deleted |
| 45 | +```shell |
| 46 | +kubectl delete pvc data-harbor-redis-0 -n harbor |
| 47 | +``` |
| 48 | + |
| 49 | +### Scale up harbor-redis to one |
| 50 | +```shell |
| 51 | +kubectl scale sts harbor-redis --replicas=1 -n harbor |
| 52 | +``` |
| 53 | + |
| 54 | +### Wait for pod ready status |
| 55 | +:::note |
| 56 | +If the version you are going to upgrade to is of v4.7.0 or higher you also have to scale up the apl-operator |
| 57 | +::: |
| 58 | + |
| 59 | +```shell |
| 60 | +kubectl scale deploy apl-operator --replicas=1 -n apl-operator |
| 61 | +``` |
| 62 | + |
| 63 | +### Enable ArgoCD autoSync on harbor-harbor |
| 64 | +```shell |
| 65 | +kubectl patch application harbor-harbor \ |
| 66 | + -n argocd \ |
| 67 | + --type='json' \ |
| 68 | + -p='[{"op": "add", "path": "/spec/syncPolicy/automated", "value": {"prune": true,"selfHeal": true}}]' |
| 69 | + ``` |
0 commit comments