Configuring GitLab from the Terminal
local graph
Chapter 4 — Configuring GitLab from the Terminal
Section titled “Chapter 4 — Configuring GitLab from the Terminal”After installing GitLab, you probably have a running instance. So, how do you manage it? In the previous chapter, we showed you the options that can be managed through the web interface. But there are many more options that can be set only through the configuration files on the server. You need to know how to configure the software in a regular terminal. This chapter will explain how this is achieved for the different types of GitLab installations.
The following topics will be covered in this chapter:
- Configuring omnibus installations from the terminal
- Configuring source installations
- Reconfiguring GitLab Docker containers
- Changing GitLab in a Kubernetes environment
For managing omnibus installations, there is one central configuration file called gitlab.rb. You need to create it or copy an example. There is a template available. You can find it at https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-config-template/gitlab.rb.template. It is not updated after upgrades. Throughout this chapter, we will quote and discuss parts of this file.
To follow along with the instructions in this chapter, please download the Git repository available at GitHub: https://github.com/PacktPublishing/Mastering-GitLab-12/tree/master/Chapter04.
You will also need the following:
You can find the template for gitlab.rb at https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-config-template/gitlab.rb.template. It is not updated after upgrades.
You can also use omnibus or GitLab to implement high availability (HA) for your GitLab installation.
There is a part in gitlab.rb where you can define the role of the GitLab instance you are configuring. If there are no roles defined by default, omnibus will configure your server to host all the core components of GitLab.
For instance, add the following line of code if your instance will run as a Redis master, and have the Redis sentinel agent running:
default_theme: 1 # default: 1
Section titled “default_theme: 1 # default: 1”roles ['redis_sentinel_role', 'redis_master_role']The following roles are available:
- redis_sentinel_role: Enables the sentinel service only.
- redis_master_role: Enables Redis and monitoring, and allows you to configure the master password.
- redis_slave_role: Enables the Redis service and monitoring.
- geo_primary_role: Configures the database for replication and prepares the application server as geo primary.
- geo_secondary_role: Prepares the database for replication and sets the application up as secondary geo.
- postgres_role: Switches on the postgresql, repmgr, and consul services on the machine. Sets up only these components.
- pgbouncer_role: This role adds the PgBouncer software for the database load-balancing feature.
After editing, you have to issue a gitlab-ctl reconfigure to apply the settings.
The main configuration file to change is gitlab.yml, which is usually found in /home/git/gitlab/config. It follows the .yml standard and this has several implications. The first one is that indentation is very important. If you just copy and paste configuration, you will find that it can mess up the file contents. Another important feature that is used in the gitlab.yml file is utilizing anchors and aliases (&base) to specify different configuration targets. In practice, this means that the main configuration for all environments is specified in the config file (production: &base).
Below the production: &base target, the other environments are specified, and they refer to &base but override certain key-value pairs. How does GitLab know which environment information should be used? That is determined by the RAILS_ENV variable used when installing and starting GitLab.
We have put an example configuration file in repository of this book (https://github.com/PacktPublishing/Mastering-GitLab-12/blob/master/Chapter04/config_gitlab.yml.example).
The configuration file has several sections, and we’ll run through them.
This section of the configuration file is mainly used to define the global settings for the whole GitLab application.
The first settings you will encounter are mainly for the web server component (Unicorn). You can specify which FQDN to use for the hostname, the port on which to listen to, and whether to use HTTPS:
host: localhost port: 80 https: falseYou can set the port to 443 and HTTPS to true if you want to use HTTPS. If you have a different ssh_host in your setup, you can specify it as well (If you want Git-SSH to run on the same server, that you don’t need to specify this):
ssh_host: ssh.host_example.comFurthermore, if you want to use relative URLs (/mygitlab/ for instance):
relative_url_root: /gitlabYou can also change the option regarding which OS-user to use for running the web server processes:
user: gitThe next setting is about dates and times, and you can specify the timezone to be used throughout the entire application:
time_zone: 'UTC'The next bundle of settings handles email. You can disable GitLab’s use of email entirely or specify who the sender and the subject, among other things:
email_enabled: true email_from: [email protected] email_display_name: GitLab email_reply_to: [email protected] email_subject_suffix: ''The next setting determines whether new users can create groups (be careful, as existing users retain this privilege).
default_can_create_group: falseIf you want old users to be also stripped of this privilege, one way to do it is to use the Rails console:
irb(main):012:0> @users.each do |u| irb(main):013:1* u.can_create_group= false irb(main):014:1> u.save irb(main):015:1> endThe next option allows you the option to change your username. This is generally not recommended if you use another system such as Lightweight Directory Access Protocol (LDAP) for account management:
username_changing_enabled: falseThe next set of options determines the style to be used for GitLab; I suggest you try them all (1-10):
A nice feature that can automate your development workflow very efficiently is the automatic closing of issues by issuing a commit to the default project branch. You can use the following pattern to make the automation work. If it matches, it will be closed. The pattern is quite complicated, so we will use the code provided:
issue_closing_pattern: '\b((?:[Cc]los(?:e[sd]?|ing)|\b[Ff]ix(?:e[sd]|ing)?|\b[Rr]esolv(?:e[sd]?|ing)|\b[Ii]mplement(?:s|ed|ing)?)(:?) +(?:(?:issues? +)?%{issue_ref}(?:(?:, *| +and +)?)|([A-Z][A-Z0-9_]+-\d+))+)'We could, for example, use the following commit message:
Fix #122 and Closes groupx/bestproject#1000.Also important for #10 and fixes #11, #229 and #188and https://gitlab.example.com/group/mything/issues/9999.In the preceding example, #122, #1000, #11, #229, #188, and #9999 will be automatically closed. Only #10 will not be touched, because it does not match the pattern.
In GitLab, in each project you have some default capabilities, such as the possibility to create issues or a wiki in the project space. There is an option to disable or enable them by default:
default_projects_features: issues: true merge_requests: true wiki: true snippets: true builds: true container_registry: trueThe CI/CD component of GitLab relies heavily on webhooks as its primary eventing mechanism over network boundaries. On slow networks, you may want to increase the timeout value of them to make them try harder:
webhook_timeout: 10You can download the contents of a project, which are combined in a ZIP file. This creation of a ZIP file needs some temporary disk space, which you can define here, the repository downloads directory (relative path to the Rails directory):
repository_downloads_path: shared/cache/archive/GitLab can also utilize an email client, which can get mail from an IMAP server, and parse the mail contents for issues and merge request IDs. If you set this up correctly, you can allow users to reply to notification emails, and the result will be added to the issue or the merge request. The first part is where you enable or disable the function:
incoming_email: enabled: falseThe second part is where you define the incoming email address that is used and what part of it is variable (every merge-request or issue number is a variable):
address: "gitlab-incoming+%{key}@gmail.com"The other settings mainly concern the IMAP server that is used along with the credentials and connection settings:
user: "[email protected]" password: "[REDACTED]" host: "imap.gmail.com" port: 993 ssl: true start_tls: falsemailbox: "inbox" idle_timeout: 60These settings together enable incoming email for your GitLab instance.
This concludes the section in the configuration file that covers some general settings. The next section is about storing different kinds of files.
The GitLab CI/CD components can build your software, and that results in build artifacts. They are sent back from the GitLab runners to the GitLab server. You can download them through the web UI. These artifacts are, by default, stored on the GitLab server in shared/artifacts. As the files can become quite large and numerous, it is also possible to store these artifacts somewhere else, where the GitLab server can fetch them when needed or redirect the request. You can set up object storage with Amazon S3, for example, to be used as a big bucket to store files.
By default GitLab it stores artifacts in the local shared path shared/artifact on the server where GitLab is installed:
artifacts: enabled: true path: shared/artifactsWhen comparing operations during merge requests, the diffs files are normally saved in the database when enabled. But when set to true, GitLab will save them in a shared path:
external_diffs: enabled: true storage_path: shared/external-diffsIn the same manner as the build artifacts and diffs, GitLab can store Git Large File Storage (LFS) objects in a different place, out of the project repository. A reference to this place is then inserted as a substitute in the project repository. This is a Git client extension, for which the server side necessities have been implemented in GitLab. (More info about Git LFS can be found at https://git-lfs.github.com/.) It can be enabled and given a path:
lfs: enabled: true storage_path: shared/lfs-objectsAnother possible use for object storage is to store uploads, such as attachments and avatars. We can enable this in GitLab to save space and use storage more efficiently:
uploads: base_dir: uploads/-/systemThere are more options for storage than only local. You can also store things as an object somewhere else.
A more efficient way of storing artifacts is by utilizing object storage. It can currently be used for artifacts, lfs, uploads, and external_diffs for merge requests. The trick is to add an object_store: part, which can have several options:
object_store: enabled: true remote_directory: artifactsA direct upload avoids saving the file in transit and directly uploads to AWS another chosen object storage provider:
direct_upload: trueThe next setting after remote_directory can limit the uploading of artifacts somewhat if they are first saved in GitLab:
background_upload: falseIf you set proxy_download to false, you will get redirected to object storage when downloading, instead of being sent through a proxy connection:
proxy_download: falseThere are some other specific settings regarding the connection to object storage. It has to do with the provider type and specific attributes of this provider. The credentials and the region are settings that have to be defined for most providers. The AWS signature version is for creating signed URLs, and you have the option of v2 or v4. The endpoint is fixed for AWS, but it can differ according to the provider. The path style refers to the resolving of the files. If it is set to true, it will be like host/bucket_name/object, but if it is set to false, it will be like bucket_name.host/object.
All settings under the connection section will look as follows:
connection: provider: AWS aws_access_key_id: AWS_ACCESS_KEY_ID aws_secret_access_key: AWS_SECRET_ACCESS_KEY region: us-east-1 aws_signature_version: 4 endpoint: 'https://s3.amazonaws.com' path_style: trueSo far, we have seen the different storage options for big files that can be part of CI jobs or repositories.
As you can see, there are many options to store different kinds of files. You can also publish certain files as web content using pages, and that is the subject of the next section**.**
GitLab pages is an extension of CI/CD where web content can be automatically built and deployed to a web server. You can publish static websites directly from a repository. There are several options to consider. To use the feature, but also if access control should be enabled and the path where the pages are stored.
The extension uses the GitLab pages daemon, which is written in Go and serves up content from the shared location. If you run it on the same server, you ideally run it on page 80 or 443, in case you have to add an IP to the GitLab server. It is possible to run it on a separate server, but you need to export the path from the GitLab server over the network to the host, which will run the GitLab pages daemon.
More information can be found at https://gitlab.com/gitlab-org/gitlab-pages.
The first settings concerning GitLab pages are to enable or disable it completely, to enable or disable access_control, and you can set a path to the shared pages:
pages: enabled: false access_control: false path: shared/pagesThe following settings determine the properties of the server for GitLab pages:
host: example.com port: 80 https: false artifacts_server: true external_http: ["1.1.1.1:80", "[2001::1]:80"] external_https: ["1.1.1.1:443", "[2001::1]:443"]The last setting defines the location of a socket for admin access:
admin: address: unix:/home/git/gitlab/tmp/sockets/private/pages-admin.socket # TCP connections are supported too (e.g. tcp://host:port)The settings for GitLab pages are complete.
There are many integrations for GitLab available, but one very interesting one is Mattermost, a Slack-like chat collaboration tool. It was acquired by GitLab in 2017, and is now even integrated in the omnibus GitLab install. You can enable the ChatOps operation with this tool. In the settings, you can enable the specific button in GitLab:
mattermost: enabled: false host: 'https://mattermost.example.com'By enabling this, you can use the Add button in GitLab in the service settings.
The following code block defines settings for using avatars, which is by default gravatar.com. Gravatar is a Globally Recognized Avatar. An avatar is an image following you from site to site, and the Gravatar service originated from WordPress, where it was used for blogs. You can set the HTTP and HTTPS URL here:
gravatar:plain_url: “http://www.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon”ssl_url: “https://secure.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon”Another example would be to set it to point to an Office 365 URL (you must be authenticated to Office 365 to use it):
gravatar: plain_url: “http://outlook.office365.com/owa/service.svc/s/GetPersonaPhoto?email=%{email}&size=HR120x120”ssl_url: “http://outlook.office365.com/owa/service.svc/s/GetPersonaPhoto?email=%{email}&size=HR120x120”Another service that offers these services is Libreavatar. You can find more info about this at https://wiki.libravatar.org/api/.
The Sidekiq component of GitLab takes care of background jobs, and you can find more information about it in Chapter 1, Introducing the GitLab Architecture. Most of the configuration is done in the configuration file of Sidekiq itself, but there are some options in the gitlab.yml file you can define.
For instance, you can only define the log_format here and the cron jobs that will be run in Sidekiq:
## Sidekiq sidekiq: log_format: default # (json is also supported)In the Sidekiq background processing, there is also a job scheduler integrated, which, by default, runs a couple of jobs. The format of the schedule is just like cron on Unix systems. The most import jobs are listed as follows:
- stuck_ci_jobs_worker: Set stuck jobs to state failed.
- pipeline_schedule_worker: Execute scheduled triggers.
- expire_build_artifacts_worker: Remove expired build artifacts.
- repository_check_worker: Periodically run git fsck on all repositories.
- ci_archive_traces_cron_worker: Archive live traces that have not been archived yet.
- admin_email_worker: Send admin emails.
- repository_archive_cache_worker: Remove outdated repository archives.
- pages_domain_verification_cron_worker: Verify custom GitLab pages domains.
- schedule_migrate_external_diffs_worker: Periodically migrate diffs from the database to external storage.
For GitLab Enterprise Edition (EE), several extra jobs are available, mainly ones that handle Geo synchronization and LDAP sync.
GitLab can function as a fully fledged container registry for Docker containers. You can set options for it in the following section.
The first option is basically the on or off switch:
enabled: trueThe next option is the hostname, which it will set:
host: registry.example.comYou can also define the network port it will listen on:
port: 5005There is an internal address you can define that GitLab itself will connect to:
api_url: http://localhost:5000/The GitLab registry uses a keypair, the rootcertbundle, here is the private key location:
key: config/registry.keySet the path that is used for storage:
path: shared/registrySet the name of the issuer of the certificate:
issuer: gitlab-issuerFurther options can be found at https://docs.gitlab.com/ee/administration/container_registry.html.
GitLab CI used to be a separate software component but is now firmly integrated into the GitLab backend.
There are three options to configure in the gitlab.yml:
- all_broken_builds: Only send an email if a build broke.
- add_pusher: Also, add the user pushing the last version of the repository to the recipient list.
- builds_path: The location where the build traces are stored.
gitlab_ci: all_broken_builds: true add_pusher: true builds_path: builds/Further configuration of GitLab CI is done from the web interface as you have seen in the previous chapter.
There are several authentication providers available for GitLab. The main on-premise one is the LDAP interface (to Active Directory, OpenLDAP).
The first part is the enabling of the feature:
ldap: enabled: falseThe next part is the declaration of servers:
servers: main: label: 'LDAP' host: '_your_ldap_server' port: 389 uid: 'sAMAccountName' bind_dn: '_the_full_dn_of_the_user_you_will_bind_with' password: '_the_password_of_the_bind_user'As you can see, we define a label and set up a host and port. We also give the uid attribute to use and a password and bind_dn (object or user used to attach to LDAP).
You can set options for SSL to enhance security:
encryption: 'start_tls' verify_certificates: true ssl_version: 'TLSv1_1'Next up are some settings that belong to how login actions are handled and how timeouts are handled:
timeout: 10 active_directory: true allow_username_or_email_login: false block_auto_created_users: falseGitLab needs to know where it can find users from in your LDAP tree and how to distinguish them from other objects or persons. You can set the LDAP base and a filter:
base: 'ou=People,dc=gitlab,dc=example' or 'DC=mydomain,DC=com' user_filter: '(&(objectclass=user)(|(samaccountname=momo)(samaccountname=toto)))'In the next part, you can determine which LDAP attributes you want to use in GitLab. It maps LDAP objects to GitLab objects:
username: ['uid', 'userid', 'sAMAccountName']email: ['mail', 'email', 'userPrincipalName']name: 'cn'first_name: 'givenName'last_name: 'sn'lowercase_usernames: falseIf you have an enterprise license, you are entitled to define more than one LDAP server, which is often the case in a corporate environment. You can add a main label to a block of settings we filled in the preceding code block and create a new block with a new label:
label: host:Besides LDAP, you can authenticate users with OAuth-enabled cloud providers. The first section of the settings deal with some general options, such as enabling the feature, how to handle information from those providers, and other behavioral aspects of the mechanism. The comments in the configuration file are very detailed about what the possibilities are.
The second part of the section allows you to define an OmniAuth provider. There are several examples mentioned, such as GitHub and Facebook and Auth0 (https://auth0.com/)(an identity management platform). Again, the configuration file offers a lot of explanation regarding how to configure this.
At the end of this configuration file section, there are two settings that are, in my opinion, not Auth settings, but they are important.
You can define a shared file storage path. GitLab uses shared file storage for some operations:
shared: /mnt/gitlabHere, you define settings for the Gitaly service. If you run it from the source, you should mention where you ran it from:
gitaly: client_path: /home/git/gitaly/bin token:I am not sure why there is an advanced section such as this in gitlab.yml, but the first options deal with repository settings. The main thing here is that you specify the path to the repositories shown as follows:
storages: default: path: /home/git/repositories/ gitaly_address: unix:/home/git/gitlab/tmp/sockets/private/gitaly.socket # gitaly_token: 'special token'There is always a default entry, and you can specify a path and a gitaly_address here (also in the form of tcp://). You can override the global gitaly_token here.
GitLab has a backup or restore facility. It is in the form of a rake task. For example, you can invoke a backup task like this:
sudo -u git -H bundle exec rake gitlab:backup:createThe former command has options you can set via the configuration file. Once again, you can use the cloud to store files. GitLab imports cloud drivers for AWS, Google, OpenStack Swift, Rackspace, and Aliyun as well. A local driver is also available. The following is an example entry in gitlab.yml:
## Backup settingsbackup: path: "tmp/backups"The GitLab shell is the primary component to provide Git-SSH connections, and when run from the source, you have to specify the path where it is installed. There is also a path set for hooks, which can execute when an event like a git push is fired (you can create your own hooks):
gitlab_shell: path: /home/git/gitlab-shell/ hooks_path: /home/git/gitlab-shell/hooks/You also have to define the file which contains a secret. It is to be used when GitLab shell connects to the rails backend to verify access of the user that tries to do Git-SSH operations:
# File that contains the secret key for verifying access for gitlab-shell. # Default is '.gitlab_shell_secret' relative to Rails.root (i.e. root of the GitLab app).secret_file: /home/git/gitlab/.gitlab_shell_secretIn the following code block, you see the definition of the key that is used by GitLab Workhorse to get access to the rails application.
workhorse:secret_file: /home/git/gitlab/.gitlab_workhorse_secretIt is defined in the file .gitlab_workhorse_secret as follows TJEf6HQcgkBjcLGVdZ4h6Y2PB89X1RGs/RsJ7FIfg6s=.
You have the option of changing to another Git version:
## Git settingsgit: bin_path: /usr/bin/gitThe webpack program is used to compile and serve frontend assets such as Cascading Style Sheets (CSS), only to be used in development:
## Webpack settingswebpack: dev_server: enabled: true host: localhost port: 3001The Prometheus endpoint that is built in also gathers data about Unicorn performance. It will sample the Unicorn Unix socket for that. Here, you can define the sampling rate. You can also define a whitelist for IPs allow to connect to the metrics endpoint:
# Built in monitoring settingsmonitoring: unicorn_sampler_interval: 10 ip_whitelist: - 127.0.0.0/8Another built-in metrics provider, a sidekiq Prometheus exporter, is controlled from here:
sidekiq_exporter: enabled: true address: localhost port: 3808As you can see, the topics that are handled in this section are quite different, and I am not sure whether they should reside under advanced settings. There is also a final section in the gitlab.yml file called extra customization. The most important part here is rack_attack.
An import part of internet security nowadays are built-in throttling mechanisms to counter denial-of-service attacks. GitLab uses the Rack Attack Gem that can keep an eye on the number of requests coming from individual IPs. You can disable it here and set a whitelist and some thresholds:
rack_attack: git_basic_auth: enabled: true ip_whitelist: ["127.0.0.1"]You can limit the number of Git HTTP authentication attempts:
maxretry: 10After 60 seconds, the auth attempt counter will be reset:
findtime: 60You can also ban an IP for one hour (3,600 seconds); for example, after too many auth attempts:
bantime: 3600We have reached the end of the gitlab.yml file. After restarting GitLab, the changes will become active. There are other ways of running GitLab. In the next section, we will take a look at configuring an instance in a Docker container.
The official containers from GitLab use the omnibus-gitlab package, so all the configuration is managed through the unique configuration file, /etc/gitlab/gitlab.rb.
Once the container is started, you can connect to it by starting a Bash session:
docker exec -it gitlab /bin/bashYou can now edit /etc/gitlab/gitlab.rb inside the Docker container. Then you can run gitlab-ctl reconfigure after that to apply the changes.
A second way to configure the container is to start it up with a environment variable, GITLAB_OMNIBUS_CONFIG. This variable can contain the contents of a gitlab.rb file. These settings will not be persisted to the real file.
You could use the following code:
sudo docker run \ --hostname gitlab.joustie.nl \ --env GITLAB_OMNIBUS_CONFIG="external_url 'http://gitlab.joustie.nl/'; gitlab_rails['lfs_enabled'] = true;" \ --publish 443:444 --publish 80:81 --publish 22:2222 \ --volume /srv/gitlab/config:/etc/gitlab \ --volume /srv/gitlab/logs:/var/log/gitlab \ --volume /srv/gitlab/data:/var/opt/gitlab \ gitlab/gitlab-ce:latestThe container start-up process will always run gitlab-ctl reconfigure. This means the omnibus template settings you specify during container startup need to be explicitly set every time you spin up the container; otherwise, your container will reconfigure and you will lose the settings.
Since GitLab for Kubernetes is configured by Helm charts, you need to configure all settings through that.
The options can be found here: https://gitlab.com/charts/gitlab/blob/master/doc/installation/command-line-options.md.
For each set of options, some are required, and those that are not required have a default value.
In the next section, we will pick some of the options to change in a Kubernetes environment.
There are two required settings here: global.hosts.domain and global.hosts.externalIP. These should point to the host and IP where GitLab is to be served from. Another interesting set of these are as follows:
- global.psql.host
- global.psql.password.secret
- global.psql.password.key
These contain information that point to an external Postgres instance.
Other options can be found in the command-line options URL at https://gitlab.com/charts/gitlab/blob/master/doc/installation/command-line-options.md.
These options control the TLS configuration that is activated for GitLab. There are no required options, but if you don’t want to use Let’s Encrypt, set global.ingress.configureCertmanager to false.
For outgoing email, there are several options such as the host of the incoming mail server—for example:
global.smtp.address (e.g. smtp.joustie.nl) with global.smtp.authentication="" (disable smtp authentication)To set this configuration setting and enable it, you use the following command line:
helm upgrade gitlab gitlab/gitlab \ --timeout 600 \ --set global.hosts.domain=kicks-ass.net \ --set global.hosts.externalIP=82.161.132.207 \ --set [email protected] \ --set global.smtp.enabled=true \ --set global.smtp.address=smtp.joustie.nl \ --set global.smtp.authentication=""If your SMTP server requires authentication, you need to add the credentials as an –set option and deploy the password also as a secret with the following:
kubectl create secret generic smtp-password --from-literal=password=yourpasswordhereAfter you have issued the helm upgrade command, the unicorn and sidekiq components will automatically restart in the Kubernetes cluster.
Many other settings are available, and you can view them at https://gitlab.com/charts/gitlab/blob/master/doc/installation/command-line-options.md.
Here are some examples:
- Incoming Email configuration: GitLab can also handle incoming mail for the service desk feature.
- GitLab shell: You can provide settings for the GitLab shell.
- RBAC settings: You can describe Kubernetes Role Based Access Control (RBAC).
- Advanced nginx ingress configuration: Change the default ingress nginx settings for the cluster.
- Advanced in-cluster Redis configuration: Change the settings for the Redis cluster.
- Advanced registry configuration: Change the settings for the Docker registry that is running as a microservice.
- Advanced MinIO configuration: Change the settings for the MinIO object storage microservice.
- Advanced GitLab configuration: Change the advanced settings in GitLab.
In this chapter, we discussed configuring an existing GitLab application instance. As we have seen in earlier chapters, the options are different, depending on the installation path you have chosen. An omnibus GitLab installation is relatively easy to configure. Just change the setting in /etc/gitlab/gitlab.rb and run gitlab-ctl reconfigure. Changing the settings in an installation from source requires a bit more attention, because the dependencies between the GitLab components aren’t managed as they are with omnibus GitLab. Configuring the GitLab instance running inside the Docker containers is the same as the way you manage the omnibus GitLab installations.
In the next chapter, we will be exploring settings that should be altered in your GitHub and in GitLab to understand the procedure of importing and running the project.
- What services are enabled when the postgres_role is chosen in gitlab.rb?
- Where is gitlab.yml usually found?
- What protocol is used for the incoming mail feature?
- What does LFS stand for?
- Which Open Source chat tool is tightly integrated with GitLab?
- What license is needed to support LDAP groups?
- What mechanism does GitLab provide to throttle web requests?
- What tool do you need, besides Helm, to configure Kubernetes?
- Getting Started with Kubernetes - Third Edition by Jesse White and Jonathan Baier:
- Develop and Operate Microservices on Kubernetes [Video] by Martin Helmich:
- Docker Cookbook - Second Edition by Jeeva S. Chelladhurai, Ken Cochrane, Neependra Khare: