Connection to GitLab

For the Lieutenant Operator to be able to connect to the GitLab API, the following configuration needs to be made.

Get GitLab Token

  1. Visit the GitLab instance you’d like to use.

  2. Login with the user that has the permissions necessary to write to the group you want to store your Project Syn repositories.

  3. Visit https://yourgitlab/profile/personal_access_tokens and create a token with the following settings:

    gitlab settings

Add Secret with Endpoint Information

Before any other things can be created we need to specify the Git repository API endpoint first:

kubectl -n lieutenant create secret generic lieutenant-secret \
  --from-literal endpoint= \
  --from-literal token=<token>