-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade GitLab to v17.4.1 #3720
Comments
GitLab upgrade from v15.5.4 to 17.4.1Initial setup:
Based on :
Update process will look as follow: Uprade steps
0. Backup current stage
The following steps will restore created backup into temp gitlab deployment, then will update this deployment up to the latest version. 1. Restore backup to the temp GitLab deploymentBefore upgrade let's prepare environment. First of all, create working directories:
Create gitlab.rb file into config directory with the following content:
Let's prepare database:
Now we are ready to run gitlab. This gitlab will be empty and connected to database refined below.
Once gitlab is ready and healthy:
Stop processes that may have connection with database and restore backup:
Answer yes for the first question:
Answer no for the second:
Restart gitlab container and wait for healthy state:
Now the gitlab copy is ready for upgrade. 2. Upgrade to postgres:14.11Let's prepare database:
Once PostgreSQL container prepared make a database backup:
Update Create database backup:
Update Restore backup:
Answer yes for the first question:
Answer no for the second:
wait for gitlab api up and check everything is ok: repositories, commit availability, etc 3. Migrate PAC tokens:
4. Upgrade to gitlab:15.11.13How to upgrade gitlab instalce
5. Upgrade to gitlab:16.3.8How to upgrade gitlab instalce
6. Upgrade to gitlab:16.7.9How to upgrade gitlab instalce
7. Upgrade to gitlab:16.11.10How to upgrade gitlab instalce
8. Upgrade to gitlab:17.3.3How to upgrade gitlab instalce
9. Upgrade to gitlab:17.4.1How to upgrade gitlab instalce
10. Create backup and migrate it to the kubernetes GitLab deploymentCreate backup
Deploy new cp-gitlab-db pod
Create empty gitlab db:Inside the gitlab-db container execute:
Deploy new cp-gitlab pod
After appliyng: Copy prepared backup
Restore backup
Copy configuration files from settings-dump backup (except for gitlab.rb) "cp /etc/* /opt/gitlab/config/" Reconfigure gitlab
Things to consider:
|
Background
It would be great to have possibility to deploy CloudPipeline with fresh GitLab version (17.4.1 as of now)
The text was updated successfully, but these errors were encountered: