From d7a8f4c8809a9680bcb5ac8f17a02018ea3cb3dc Mon Sep 17 00:00:00 2001 From: Sheogorath <sheogorath@shivering-isles.com> Date: Wed, 23 Apr 2025 12:26:57 +0200 Subject: [PATCH] feat(gitlab-runner): Fix hetzner runner unable to use SSH It seems that SSH requires an existing user in /etc/passwd References: https://unix.stackexchange.com/questions/524268/running-git-or-ssh-client-in-docker-as-user-no-user-exists-for-uid https://superuser.com/questions/1704482/run-ssh-as-a-non-existent-virtual-user https://unix.stackexchange.com/questions/766429/ssh-fails-with-no-user-exists-for-uid-x-on-ldap-user-on-ubuntu https://github.com/openshift/jenkins/issues/168 --- apps/k8s01/gitlab-runner/hetzner-runner.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/k8s01/gitlab-runner/hetzner-runner.yaml b/apps/k8s01/gitlab-runner/hetzner-runner.yaml index fc53a8ad7..ab316d033 100644 --- a/apps/k8s01/gitlab-runner/hetzner-runner.yaml +++ b/apps/k8s01/gitlab-runner/hetzner-runner.yaml @@ -42,6 +42,9 @@ spec: tag: 17.10.0 extraEnv: HOME: /home/gitlab-runner + podSecurityContext: + # Fix to run SSH with existing user + runAsUser: 999 valuesFrom: - kind: ConfigMap -- GitLab