The following prerequisites must be met prior to beginning to deploy GitLab CE
- 4 Persistent Volumes or a cluster that supports dynamic provisioning with a default StorageClass
- OpenShift Command Line Tool
- Custom SSL certificates must be generated in advance in order to provide those to the deployment process
- Openshift Applier to deploy GitLab CE. As a result you'll need to have ansible installed
- Clone this repository:
git clone https://github.com/redhat-cop/containers-quickstarts
cd containers-quickstarts/gitlab-ce
- Run
ansible-galaxy install -r requirements.yml --roles-path=galaxy
- Login to OpenShift:
oc login -u <username> https://master.example.com:8443
❗ GitLab CE container will run under a replica of anyuid
SCC. Ensure you are logged into the Cluster (step 4) with an user with privileges to create SecurityContextConstraints with the required scope.
Adequate .applier/group_vars/seed-hosts.yml
to match your environment requirements.
Custom certificates must be provided during deployment phase.
In order to provide custom certificates, SSL_CERTIFICATE
and SSL_KEY
variables must be provided on .applier/group_vars/seed-hosts.yml
, adding each certificate in base64 format to the corresponding parameter.
Run the openshift-applier to create the gitlab
project and deploy required objects
ansible-playbook -i ./inventory galaxy/openshift-applier/playbooks/openshift-cluster-seed.yml