- Kubernetes:A Complete DevOps Cookbook
- Murat Karslioglu
- 118字
- 2025-04-04 13:20:40
Connecting to the GitLab dashboard
Let's perform the following steps to get the GitLab service address to connect using your web browser:
- Get the external address of your GitLab service:
$ echo http://$(kubectl get svc --namespace gitlab \
gitlab-nginx-ingress-controller \
-o jsonpath='{.status.loadBalancer.ingress[0].hostname}')
- Open the address returned to the preceding command in a browser.
- Get the default root password created by GitLab by running the following command:
$ kubectl get secret gitlab-gitlab-initial-root-password \
-ojsonpath='{.data.password}' | base64 --decode ; echo
- Set a new password and sign in using the root user and your new password.
- To use a custom URL, create a CNAME record on your DNS with an alias to the external URL used in step 1.