Kubernetes executor installed from Helm chart failing with DNS-1123 error
Summary
Cannot run Auto DevOps pipeline locally with Kubernetes executor (installed from gitlab-runner helm chart).
Failing with a DNS-1123 subdomain must consist of lower case alphanumeric characters... (see below)
Steps to reproduce
On GitLab-CE master :
- Created a fresh GKE Kubernetes cluster
- Install Helm
- Install Ingress
- Install Runner
- Run Auto DevOps Pipeline on a Rack-based project
Actual behavior
What actually happens
Expected behavior
What you should see instead
Kubernetes executor runs the Build job of Auto DevOps
Relevant logs and/or screenshots
Running with gitlab-runner 11.5.0 (3afdaba6)
on runner-gitlab-runner-59b99fff5-h5pbh y1CH8yir
Using Kubernetes namespace: gitlab-managed-apps
Using Kubernetes executor with image docker:stable-git ...
ERROR: Job failed (system failure): Secret "runner-y1CH8yir-project-63-concurrent-09fgs9" is invalid: [metadata.generateName: Invalid value: "runner-y1CH8yir-project-63-concurrent-0": a DNS-1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*'), metadata.name: Invalid value: "runner-y1CH8yir-project-63-concurrent-09fgs9": a DNS-1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')]
Environment description
Are you using shared Runners on GitLab.com? Or is it a custom installation? Which executors are used? Please also provide the versions of related tools like
docker infoif you are using the Docker executor.
Locally with GDK. GitLab-CE master (0e3f6251f56)
Used GitLab Runner version
Gitlab chart 0.1.38
Running with gitlab-runner 11.5.0 (3afdaba6)
on runner-gitlab-runner-59b99fff5-h5pbh y1CH8yir
/cc @tmaczukin
Edited by Thong Kuah
