- Kubernetes:A Complete DevOps Cookbook
- Murat Karslioglu
- 145字
- 2025-04-04 13:20:40
Upgrading GitLab
GitLab frequently releases new versions with additional functionality. Once in a while, you may also need to upgrade to get bug fixes. Upgrading can be done easily using the Helm upgrade. Let's perform the following steps to upgrade GitLab to a new version:
- First, export the currently used arguments into a YAML file using the helm get values command as follows:
$ helm get values gitlab > gitlab.yaml
- Upgrade the chart repositories to get new versions available from the remote repository:
$ helm repo update
- List the available chart versions:
$ helm search -l gitlab/gitlab
NAME CHART VERSION APP VERSION DESCRIPTION
gitlab/gitlab 2.1.7 12.1.6 Web-based Git-repository manager with wiki and issue-trac...
gitlab/gitlab 2.1.6 12.1.4 Web-based Git-repository manager with wiki and issue-trac...
...
- Use the same arguments with the new version to upgrade:
$ helm upgrade gitlab gitlab/gitlab --version 2.1.7 -f gitlab.yaml