Skip to content

November 2023

Using runner aliases

  ip = ""
  hostnames = [""]

The docs say:

List of additional host name aliases that will be added to all containers. Read more about using extra host aliases.

See additional examples.

Read about the security implications of hardcoding IP addresses.

September 2023

Troubleshooting a registered Runner

Let's say you have a values.yaml file for a Runner with a bunch of comments. Here are a few ways to see everything except the comments:

Looking through kubeSOS output to see if the Runner was able to check in:

rg '/jobs/request' | cut -d" " -f2- | jq -r '[."user_agent",.remote_addr,.status] | join (",")'

April 2023

Registering a Runner

kubectl create namespace ops-carranza-engineer
helm install --namespace ops-carranza-engineer -f k8s-runner.yaml gitlab-runner gitlab/gitlab-runner --version 0.41.1

Let's say you've done this a billion times and need a unique name:

helm install --namespace ops-carranza-engineer -f ops-carranza-engineer.yaml march10 gitlab/gitlab-runner

January 2023

It's always DNS.

If the DNS record for the coordinator URL

On NOERROR vs NXDOMAIN: they are different but you might get one when you expect the other. We observed a DNS server returning NOERROR and also not providing an answer. This is normal for when a wildcard record exists, we learned.

dig @ -t aaaa

; <<>> DiG 9.10.6 <<>> @ -t aaaa
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9654
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

; EDNS: version: 0, flags:; udp: 1232

;; AUTHORITY SECTION:    86352   IN  SOA 2023010310 7200 3600 1209600 86400

;; Query time: 103 msec
;; WHEN: Tue Jan 03 10:55:29 EST 2023
;; MSG SIZE  rcvd: 134