Deploying our Runner

First we’ll create a configuration file with information about our runner

cat > gitlab-runner.yml << EOF
apiVersion: apps.gitlab.com/v1beta2
kind: Runner
metadata:
  name: gitlab-runner
spec:
  gitlabUrl: https://gitlab.fdlabs.dev  
  token: gitlab-runner-token
  ca: fdlabs-ca #required to support non-public certificate authorities
  tags: "workshop"
EOF

Then we’ll run the following command to create the runner based on that configuration kubectl apply -f gitlab-runner.yml

Now if we refresh our gitlab page and expand runners again we should see our new runner listed