Skip to content

Commit 6fc4648

Browse files
author
edge-katanomi-app2[bot]
committed
📚 Sync docs from alaudadevops/gitlab-ce-operator on 48a5965a597e95f32a1463bdd22f5450584e448b
Source: docs(upgrade): add ARM image links and upgrade script improvements (#270) Author: nanjingfm Ref: refs/heads/release-18.2 Commit: 48a5965a597e95f32a1463bdd22f5450584e448b This commit automatically syncs documentation changes from the source-docs repository. 🔗 View source commit: https://github.com/alaudadevops/gitlab-ce-operator/commit/48a5965a597e95f32a1463bdd22f5450584e448b 🤖 Synced on 2025-11-07 06:57:51 UTC
1 parent 01dbd9d commit 6fc4648

File tree

2 files changed

+100
-22
lines changed

2 files changed

+100
-22
lines changed

‎.github/SYNC_INFO.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Documentation Sync Information
22

3-
- **Last synced**: 2025-11-04 05:51:42 UTC
3+
- **Last synced**: 2025-11-07 06:57:51 UTC
44
- **Source repository**: alaudadevops/gitlab-ce-operator
5-
- **Source commit**: [31bc01dcba1d99f06da68d23e9e3fd6ed9b8f18e](https://github.com/alaudadevops/gitlab-ce-operator/commit/31bc01dcba1d99f06da68d23e9e3fd6ed9b8f18e)
6-
- **Triggered by**: nanjingfm
7-
- **Workflow run**: [#46](https://github.com/alaudadevops/gitlab-ce-operator/actions/runs/19059216700)
5+
- **Source commit**: [48a5965a597e95f32a1463bdd22f5450584e448b](https://github.com/alaudadevops/gitlab-ce-operator/commit/48a5965a597e95f32a1463bdd22f5450584e448b)
6+
- **Triggered by**: edge-katanomi-app2[bot]
7+
- **Workflow run**: [#50](https://github.com/alaudadevops/gitlab-ce-operator/actions/runs/19160759813)
88

99
## Files synced:
1010
- docs/

‎docs/en/upgrade/02_14_upgrade_to_17.md‎ renamed to ‎docs/en/upgrade/02_14_upgrade_to_17.mdx‎

Lines changed: 96 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -143,22 +143,76 @@ Test setup:
143143
144144
4. Prepare the images needed for the upgrade. Download each version of the image from the attachments and push them to an image repository that the GitLab deployment cluster can pull from. Image download links:
145145
146-
```shell
147-
# amd images
148-
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-14-0-12-amd.tgz
149-
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-14-3-6-amd.tgz
150-
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-14-9-5-amd.tgz
151-
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-14-10-5-amd.tgz
152-
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-15-0-5-amd.tgz
153-
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-15-4-6-amd.tgz
154-
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-15-11-13-amd.tgz
155-
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-16-3-8-amd.tgz
156-
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-16-7-9-amd.tgz
157-
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-16-11-10-amd.tgz
158-
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-17-3-6-amd.tgz
159-
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-17-5-5-amd.tgz
160-
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-17-8-1-amd.tgz
161-
```
146+
<Tabs>
147+
<Tab label="China Region">
148+
```shell
149+
# amd images
150+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-14-0-12-amd.tgz
151+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-14-3-6-amd.tgz
152+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-14-9-5-amd.tgz
153+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-14-10-5-amd.tgz
154+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-15-0-5-amd.tgz
155+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-15-4-6-amd.tgz
156+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-15-11-13-amd.tgz
157+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-16-3-8-amd.tgz
158+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-16-7-9-amd.tgz
159+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-16-11-10-amd.tgz
160+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-17-3-6-amd.tgz
161+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-17-5-5-amd.tgz
162+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-17-8-1-amd.tgz
163+
164+
# arm images
165+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-14-0-12-arm.tgz
166+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-14-3-6-arm.tgz
167+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-14-9-5-arm.tgz
168+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-14-10-5-arm.tgz
169+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-15-0-5-arm.tgz
170+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-15-4-6-arm.tgz
171+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-15-11-13-arm.tgz
172+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-16-3-8-arm.tgz
173+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-16-7-9-arm.tgz
174+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-16-11-10-arm.tgz
175+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-17-3-6-arm.tgz
176+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-17-5-5-arm.tgz
177+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-17-8-1-arm.tgz
178+
```
179+
</Tab>
180+
181+
<Tab label="Other Regions">
182+
```shell
183+
# amd images
184+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-14-0-12-amd.tgz
185+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-14-3-6-amd.tgz
186+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-14-9-5-amd.tgz
187+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-14-10-5-amd.tgz
188+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-15-0-5-amd.tgz
189+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-15-4-6-amd.tgz
190+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-15-11-13-amd.tgz
191+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-16-3-8-amd.tgz
192+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-16-7-9-amd.tgz
193+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-16-11-10-amd.tgz
194+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-17-3-6-amd.tgz
195+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-17-5-5-amd.tgz
196+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-17-8-1-amd.tgz
197+
198+
# arm images
199+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-14-0-12-arm.tgz
200+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-14-3-6-arm.tgz
201+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-14-9-5-arm.tgz
202+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-14-10-5-arm.tgz
203+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-15-0-5-arm.tgz
204+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-15-4-6-arm.tgz
205+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-15-11-13-arm.tgz
206+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-16-3-8-arm.tgz
207+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-16-7-9-arm.tgz
208+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-16-11-10-arm.tgz
209+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-17-3-6-arm.tgz
210+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-17-5-5-arm.tgz
211+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-17-8-1-arm.tgz
212+
```
213+
</Tab>
214+
</Tabs>
215+
162216
163217
5. Prepare the scripts needed for the upgrade.
164218
@@ -261,7 +315,23 @@ Test setup:
261315
17.8.1-ce.0
262316
)
263317
318+
STATE_FILE="upgrade_state.log"
319+
touch "$STATE_FILE"
320+
321+
is_done() {
322+
grep -Fxq "$1" "$STATE_FILE"
323+
}
324+
325+
mark_done() {
326+
echo "$1" >> "$STATE_FILE"
327+
}
328+
264329
for version in "${versions[@]}"; do
330+
if is_done "$version"; then
331+
echo "Version ${version} already processed, skipping..."
332+
continue
333+
fi
334+
265335
echo "Upgrading to ${version}..."
266336
new_image="${image%:*}:${version}"
267337
kubectl -n $GITLAB_NAMESPACE set image deployment/gitlab gitlab=$new_image
@@ -288,7 +358,10 @@ Test setup:
288358
done
289359
bash monitor_gitlab.sh $new_pod_name
290360
echo "Upgraded to ${version} successfully"
361+
mark_done "$version"
291362
done
363+
364+
echo "All upgrades completed successfully!"
292365
EOF
293366
```
294367
@@ -436,13 +509,12 @@ Test setup:
436509
437510
```bash
438511
export NODE_IP=<node_ip>
512+
export GITLAB_IMAGE=<registry-host>/gitlab/gitlab-ce:14.0.12-ce.0
439513
```
440514
441515
Create the `all-in-one` GitLab instance.
442516
443517
```bash
444-
export GITLAB_IMAGE=<registry-host>/gitlab/gitlab-ce:14.0.12-ce.0
445-
446518
kubectl apply -f - <<EOF
447519
apiVersion: v1
448520
kind: Service
@@ -921,9 +993,15 @@ The namespace of the new gitlab instance must be the same as the namespace of th
921993
922994
1. The migrated data does not include avatars and attachments, so the new GitLab instance cannot display this content. To resolve this issue, you can replace the upload PVC of GitLab 17.8.z with the PVC used by 14.0.12.
923995
996+
Set the environment variable for the uploads pvc name:
997+
924998
```bash
925999
export UPLOADS_PVC_NAME=<name of the uploads pvc>
1000+
```
9261001
1002+
Patch the new GitLab instance to use the uploads PVC:
1003+
1004+
```bash
9271005
kubectl patch gitlabofficials.operator.alaudadevops.io ${NEW_GITLAB_NAME} -n $GITLAB_NAMESPACE --type='json' -p='
9281006
{
9291007
"spec": {

0 commit comments

Comments
 (0)