Skip to content

Commit fb0879d

Browse files
committed
📚 Sync docs from alaudadevops/gitlab-ce-operator on bd825f948336c858eca03a26aad0ae17d2f54f96
Source: docs(upgrade): add ARM image links and upgrade script improvements (#272) Author: edge-katanomi-app2[bot] Ref: refs/heads/release-17.8 Commit: bd825f948336c858eca03a26aad0ae17d2f54f96 This commit automatically syncs documentation changes from the source-docs repository. 🔗 View source commit: AlaudaDevops/gitlab-ce-operator@bd825f9 🤖 Synced on 2025-11-07 07:15:32 UTC
1 parent 1913a10 commit fb0879d

File tree

2 files changed

+99
-21
lines changed

2 files changed

+99
-21
lines changed

‎.github/SYNC_INFO.md‎

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

3-
- **Last synced**: 2025-11-04 06:29:18 UTC
3+
- **Last synced**: 2025-11-07 07:15:32 UTC
44
- **Source repository**: alaudadevops/gitlab-ce-operator
5-
- **Source commit**: [1cc1cd7e0652bbc2d747ec87cb216dff86d3675d](https://github.com/alaudadevops/gitlab-ce-operator/commit/1cc1cd7e0652bbc2d747ec87cb216dff86d3675d)
5+
- **Source commit**: [bd825f948336c858eca03a26aad0ae17d2f54f96](https://github.com/alaudadevops/gitlab-ce-operator/commit/bd825f948336c858eca03a26aad0ae17d2f54f96)
66
- **Triggered by**: nanjingfm
7-
- **Workflow run**: [#49](https://github.com/alaudadevops/gitlab-ce-operator/actions/runs/19059914912)
7+
- **Workflow run**: [#52](https://github.com/alaudadevops/gitlab-ce-operator/actions/runs/19161120278)
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
@@ -127,22 +127,76 @@ For the latest GitLab instance and operator versions, please refer to the [Relea
127127
128128
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:
129129
130-
```shell
131-
# amd images
132-
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-14-0-12-amd.tgz
133-
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-14-3-6-amd.tgz
134-
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-14-9-5-amd.tgz
135-
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-14-10-5-amd.tgz
136-
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-15-0-5-amd.tgz
137-
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-15-4-6-amd.tgz
138-
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-15-11-13-amd.tgz
139-
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-16-3-8-amd.tgz
140-
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-16-7-9-amd.tgz
141-
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-16-11-10-amd.tgz
142-
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-17-3-6-amd.tgz
143-
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-17-5-5-amd.tgz
144-
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-17-8-1-amd.tgz
145-
```
130+
<Tabs>
131+
<Tab label="China Region">
132+
```shell
133+
# amd images
134+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-14-0-12-amd.tgz
135+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-14-3-6-amd.tgz
136+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-14-9-5-amd.tgz
137+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-14-10-5-amd.tgz
138+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-15-0-5-amd.tgz
139+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-15-4-6-amd.tgz
140+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-15-11-13-amd.tgz
141+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-16-3-8-amd.tgz
142+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-16-7-9-amd.tgz
143+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-16-11-10-amd.tgz
144+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-17-3-6-amd.tgz
145+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-17-5-5-amd.tgz
146+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-17-8-1-amd.tgz
147+
148+
# arm images
149+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-14-0-12-arm.tgz
150+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-14-3-6-arm.tgz
151+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-14-9-5-arm.tgz
152+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-14-10-5-arm.tgz
153+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-15-0-5-arm.tgz
154+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-15-4-6-arm.tgz
155+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-15-11-13-arm.tgz
156+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-16-3-8-arm.tgz
157+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-16-7-9-arm.tgz
158+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-16-11-10-arm.tgz
159+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-17-3-6-arm.tgz
160+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-17-5-5-arm.tgz
161+
https://cloud.alauda.cn/attachments/knowledge/242090509/gitlab-ce-17-8-1-arm.tgz
162+
```
163+
</Tab>
164+
165+
<Tab label="Other Regions">
166+
```shell
167+
# amd images
168+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-14-0-12-amd.tgz
169+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-14-3-6-amd.tgz
170+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-14-9-5-amd.tgz
171+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-14-10-5-amd.tgz
172+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-15-0-5-amd.tgz
173+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-15-4-6-amd.tgz
174+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-15-11-13-amd.tgz
175+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-16-3-8-amd.tgz
176+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-16-7-9-amd.tgz
177+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-16-11-10-amd.tgz
178+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-17-3-6-amd.tgz
179+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-17-5-5-amd.tgz
180+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-17-8-1-amd.tgz
181+
182+
# arm images
183+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-14-0-12-arm.tgz
184+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-14-3-6-arm.tgz
185+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-14-9-5-arm.tgz
186+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-14-10-5-arm.tgz
187+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-15-0-5-arm.tgz
188+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-15-4-6-arm.tgz
189+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-15-11-13-arm.tgz
190+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-16-3-8-arm.tgz
191+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-16-7-9-arm.tgz
192+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-16-11-10-arm.tgz
193+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-17-3-6-arm.tgz
194+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-17-5-5-arm.tgz
195+
https://cloud.alauda.io/attachments/knowledge/242090509/gitlab-ce-17-8-1-arm.tgz
196+
```
197+
</Tab>
198+
</Tabs>
199+
146200
147201
5. Prepare the scripts needed for the upgrade.
148202
@@ -245,7 +299,23 @@ For the latest GitLab instance and operator versions, please refer to the [Relea
245299
17.8.1-ce.0
246300
)
247301
302+
STATE_FILE="upgrade_state.log"
303+
touch "$STATE_FILE"
304+
305+
is_done() {
306+
grep -Fxq "$1" "$STATE_FILE"
307+
}
308+
309+
mark_done() {
310+
echo "$1" >> "$STATE_FILE"
311+
}
312+
248313
for version in "${versions[@]}"; do
314+
if is_done "$version"; then
315+
echo "Version ${version} already processed, skipping..."
316+
continue
317+
fi
318+
249319
echo "Upgrading to ${version}..."
250320
new_image="${image%:*}:${version}"
251321
kubectl -n $GITLAB_NAMESPACE set image deployment/gitlab gitlab=$new_image
@@ -265,7 +335,10 @@ For the latest GitLab instance and operator versions, please refer to the [Relea
265335
kubectl -n $GITLAB_NAMESPACE exec -ti $new_pod_name -- bash -c "gitlab-psql -t -A -f /tmp/finalize_migrations.sql > /tmp/run_migration_tasks.sh && bash -x /tmp/run_migration_tasks.sh"
266336
bash monitor_gitlab.sh $new_pod_name
267337
echo "Upgraded to ${version} successfully"
338+
mark_done "$version"
268339
done
340+
341+
echo "All upgrades completed successfully!"
269342
EOF
270343
```
271344
@@ -413,13 +486,12 @@ For the latest GitLab instance and operator versions, please refer to the [Relea
413486
414487
```bash
415488
export NODE_IP=<node_ip>
489+
export GITLAB_IMAGE=<registry-host>/gitlab/gitlab-ce:14.0.12-ce.0
416490
```
417491
418492
Create the `all-in-one` GitLab instance.
419493
420494
```bash
421-
export GITLAB_IMAGE=<registry-host>/gitlab/gitlab-ce:14.0.12-ce.0
422-
423495
kubectl apply -f - <<EOF
424496
apiVersion: v1
425497
kind: Service
@@ -882,9 +954,15 @@ The namespace of the new gitlab instance must be the same as the namespace of th
882954
883955
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.
884956
957+
Set the environment variable for the uploads pvc name:
958+
885959
```bash
886960
export UPLOADS_PVC_NAME=<name of the uploads pvc>
961+
```
887962
963+
Patch the new GitLab instance to use the uploads PVC:
964+
965+
```bash
888966
kubectl patch gitlabofficials.operator.alaudadevops.io ${NEW_GITLAB_NAME} -n $GITLAB_NAMESPACE --type='json' -p='
889967
{
890968
"spec": {

0 commit comments

Comments
 (0)