INSTRUCTIONS
INSTRUCTIONS
Section titled “INSTRUCTIONS”-
Install gitlab-runner on your workstation https://docs.gitlab.com/runner/install/osx.html
-
Generate a cicd token:
/usr/local/bin/gitlab-runner register
- Copy the coordinator URL and registration token from
https://$GITLAB_ENDPOINT/admin/runners
- Use
kubernetes
as the executor
-
Generate the kubectl configuration for the cluster by running the connect to cluster option in the console UI, for example:
gcloud container clusters get-credentials CLUSTER_NAME --zone us-east1-b --project $GITLAB_PROJECT -
Retrieve the
Runner Token
for the newly created runner from the admin runner page on $GITLAB_ENDPOINT - https://$GITLAB_ENDPOINT/admin/runners and set itexport RUNNER_TOKEN=<token value>
It will be substituted in the configmap when the configuration is applied.- Note: This is NOT the token in the section
Set up a shared Runner manually
- Note: This is NOT the token in the section
-
Apply the configuration
for f in $(/bin/ls *.yml); do envsubst < "${DOLLAR}f" | kubectl apply -f -; done -
Confirm that the runner is able to contact pre on the runner admin page - https://$GITLAB_ENDPOINT/admin/runners
-
If things aren’t working properly see the status of the pods by running
kubectl get all -n gitlab