Skip to content

Commit caa3c8e

Browse files
authored
docs: added upgrade notes avoiding Gitea issues (#121)
1 parent 0e8b7db commit caa3c8e

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

docs/for-ops/upgrade-notes.md

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar_label: Upgrade Notes
66

77
## About upgrade notes
88

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.
9+
In some cases between versions upgrades there are issues that can occur. This page describes known potential issues and their mitigations.
1010

1111
## v4.7.0
1212

@@ -69,19 +69,28 @@ kubectl get pods -A -l app.kubernetes.io/managed-by=EventListener -o jsonpath='{
6969

7070
## v4.4.4 to v4.7.0 or higher
7171

72-
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.
72+
Prior to the platform upgrade, a Gitea upgrade requires that no stale pipelines are running and attempting to apply changes to the cluster.
73+
There might occur an issue with the Redis instance of Harbor, which results in the `harbor-redis-0` pod restarting indefinitely after the upgrade.
7374

74-
To solve this issue you have to delete the harbor redis data according to the following steps.
75+
### Ensuring no stale pipelines run
7576

76-
### Disable ArgoCD autoSync on harbor-harbor
77+
First of all, ensure no other platform users are currently applying changes to the cluster. Before upgrading, go to Apps -> Tekton and select "PipelineRuns" on the left, and "otomi-pipelines" on the top-right dropdown. Ensure that no pipelines are running: Their status must be either Succeeded, Failed, or Canceled. If any of them are in state Pending or Running, open the menu next to them, and select "Stop".
78+
79+
As soon as the upgrade is started, it will create a PipelineRun. This one will be automatically terminated, and as of v4.7.0 Tekton is no longer used for applying platform changes.
80+
81+
### Fixing the Redis instance of Harbor
82+
83+
To solve this issue you have to delete the Harbor Redis data according to the following steps.
84+
85+
#### Disable ArgoCD autoSync on harbor-harbor
7786
```shell
7887
kubectl patch application harbor-harbor \
7988
-n argocd \
8089
--type='json' \
8190
-p='[{"op": "remove", "path": "/spec/syncPolicy/automated"}]'
8291
```
8392

84-
### Scale down harbor-jobservice, harbor-core to zero
93+
#### Scale down harbor-jobservice, harbor-core to zero
8594
```shell
8695
kubectl scale deploy harbor-jobservice --replicas=0 -n harbor
8796
kubectl scale deploy harbor-core --replicas=0 -n harbor
@@ -95,22 +104,22 @@ If the version you are going to upgrade to is of v4.7.0 or higher you also have
95104
kubectl scale deploy apl-operator --replicas=0 -n apl-operator
96105
```
97106

98-
### Scale down the harbor redis to zero
107+
#### Scale down harbor-redis to zero
99108
```shell
100109
kubectl scale sts harbor-redis --replicas=0 -n harbor
101110
```
102111

103-
### PVC data-harbor-redis-0 is deleted
112+
#### PVC data-harbor-redis-0 is deleted
104113
```shell
105114
kubectl delete pvc data-harbor-redis-0 -n harbor
106115
```
107116

108-
### Scale up harbor-redis to one
117+
#### Scale up harbor-redis to one
109118
```shell
110119
kubectl scale sts harbor-redis --replicas=1 -n harbor
111120
```
112121

113-
### Wait for pod ready status
122+
#### Wait for pod ready status
114123
:::note
115124
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
116125
:::
@@ -119,10 +128,10 @@ If the version you are going to upgrade to is of v4.7.0 or higher you also have
119128
kubectl scale deploy apl-operator --replicas=1 -n apl-operator
120129
```
121130

122-
### Enable ArgoCD autoSync on harbor-harbor
131+
#### Enable ArgoCD autoSync on harbor-harbor
123132
```shell
124133
kubectl patch application harbor-harbor \
125134
-n argocd \
126135
--type='json' \
127136
-p='[{"op": "add", "path": "/spec/syncPolicy/automated", "value": {"prune": true,"selfHeal": true}}]'
128-
```
137+
```

0 commit comments

Comments
 (0)