Skip to main content
Version: 6.12.0

Prerequisites

  • Access to the Kubernetes Cluster

Retrieving the Root Admin User Password

GitLab comes out of the box with a root admin user. A randomly generated password can be found within the cluster using the following command:

kubectl get secret -n gitlab gitlab-gitlab-initial-root-password --template='{{.data.password | base64decode}}'

Example output:

xBfIJ1b6fv3kVFeqjFJeJXdxv25qbKgLByO8OckQNYQch56MDxCeJKFGwhC1VdR4
caution

Most terminals will output an additional % character to denote the end of the string when there isn't a newline character. Ensure the % character isn't copied when using the password.

Logging in to GitLab

The hostname for GitLab can be found using the following command:

kubectl get virtualservices -n gitlab gitlab

Example output:

NAME              GATEWAYS                  HOSTS                                                    AGE
gitlab ["istio-system/public"] ["gitlab.eks-build-jgsw-286-keycloak.structsure.io"] 17d

Using the example output above, the System Integrator can go to https://gitlab.eks-build-jgsw-286-keycloak.structsure.io and use the root user and the password from the earlier step to log in.