Dear Gitlab community,
I am trying to deploy a Gitlab runner with ssh executor in k8s through helm charts. I don’t know why, but the container does not come up and logs shows this error:
Registration attempt 7 of 30
Runtime platform arch=amd64 os=linux pid=175 revision=e0218c92 version=14.3.2
WARNING: Running in user-mode.
WARNING: The user-mode requires you to manually start builds processing:
WARNING: $ gitlab-runner run
WARNING: Use sudo for system-mode:
WARNING: $ sudo gitlab-runner…Registering runner… succeeded runner=a4i5brtJ
PANIC: The ssh-host needs to be entered
Unregistering runner from GitLab succeeded runner=cAzqEdaj
This is my values.yml file:
imagePullPolicy: IfNotPresent
gitlabUrl: https://mygitlabdomain.com
runnerRegistrationToken: "a4i5brtJfLj8zPmsiKeW"
terminationGracePeriodSeconds: 3600
concurrent: 2
checkInterval: 30
logLevel: warn
rbac:
create: true
clusterWideAccess: false
podSecurityPolicy:
enabled: false
resourceNames:
- gitlab-runner
metrics:
enabled: true
runners:
config: |
[[runners]]
executor = "ssh"
[runners.ssh]
host = "myserver"
port = "22"
user = "myuser"
identity_file = "/secrets/id_rsa"
tags: "LiveLoginNode,ssh"
name: "ci-test"
cache:
{}
builds:
{}
services:
{}
helpers:
{}
securityContext:
fsGroup: 65533
runAsUser: 100
resources:
limits:
memory: 2Gi
cpu: 8
requests:
memory: 2Gi
cpu: 4
affinity: {}
nodeSelector:
{}
tolerations:
[]
hostAliases:
[]
podAnnotations:
{}
podLabels:
{}
envVars:
- name: RUNNER_EXECUTOR
value: ssh
secrets:
- name: secret-ssh-auth
items:
- key: secret-ssh-auth
path: id_rsa
Any idea what can I do to fix this “PANIC: The ssh-host needs to be entered” error??
thank you very much