Need help to deploy Gitlab on Kubernetes
Hey,
I'm deploying Gitlab on Kubernetes, but I'm bumping into SSH. I've used the chart helm, made a pretty basic configuration. I'm using Traefik instead of Nginx. My application deploys perfectly, the only problem is that if I want to clone a project in SSH, it asks me for the password `[[email protected]](mailto:[email protected])'s password:`. I don't know why ssh doesn't work. The IngressRouteTcp for Shell is present. I don't know what configuration I've missed...
Here are some parts of my chart:
global:
ingress:
apiVersion:
configureCertmanager: true
useNewIngressForCerts:
provider: traefik
class: traefik
annotations: {}
enabled: true
tls: {}
# enabled: true
# secretName:
path: /
pathType: Prefix
shell:
authToken: {}
secret: gitlab-shell-secret
key: secret
hostKeys:
{}
# secret:
##
tcp:
proxyProtocol: false
shared-secrets:
enabled: true
traefik:
install: false
ports:
gitlab-shell:
expose: true
port: 2222
exposedPort: 22networking.k8s.io/v1https://docs.gitlab.com/charts/charts/globals#tcp-proxy-protocol
Here are the logs when I want SSH Gitlab :
ssh -v
OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to gitlab.selfhosted.com [192.168.9.200] port 22.
debug1: Connection established.
debug1: identity file C:\\Users\\zozob/.ssh/id_rsa type -1
debug1: identity file C:\\Users\\zozob/.ssh/id_rsa-cert type -1
debug1: identity file C:\\Users\\zozob/.ssh/id_dsa type -1
debug1: identity file C:\\Users\\zozob/.ssh/id_dsa-cert type -1
debug1: identity file C:\\Users\\zozob/.ssh/id_ecdsa type -1
debug1: identity file C:\\Users\\zozob/.ssh/id_ecdsa-cert type -1
debug1: identity file C:\\Users\\zozob/.ssh/id_ecdsa_sk type -1
debug1: identity file C:\\Users\\zozob/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file C:\\Users\\zozob/.ssh/id_ed25519 type -1
debug1: identity file C:\\Users\\zozob/.ssh/id_ed25519-cert type -1
debug1: identity file C:\\Users\\zozob/.ssh/id_ed25519_sk type -1
debug1: identity file C:\\Users\\zozob/.ssh/id_ed25519_sk-cert type -1
debug1: identity file C:\\Users\\zozob/.ssh/id_xmss type -1
debug1: identity file C:\\Users\\zozob/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.6
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.9p1 Ubuntu-3
debug1: compat_banner: match: OpenSSH_8.9p1 Ubuntu-3 pat OpenSSH* compat 0x04000000
debug1: Authenticating to as 'git'
debug1: load_hostkeys: fopen C:\\Users\\zozob/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: MAC: <implicit> compression: none
debug1: kex: client->server cipher: MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:E0PgS2Yj18xDtD/7zrGlkJM/Lq7sBs+I1Z1px/iLRoA
debug1: load_hostkeys: fopen C:\\Users\\zozob/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts2: No such file or directory
debug1: Host 'gitlab.selfhosted.com' is known and matches the ED25519 host key.
debug1: Found key in C:\\Users\\zozob/.ssh/known_hosts:8
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: zozob@DESKTOP-VSRRJSL RSA SHA256:sNWVrSEXjUtbvRosTy8MJuw/AdixZLeJtuQJ+XmaU/A agent
debug1: Will attempt key: C:\\Users\\zozob/.ssh/id_rsa
debug1: Will attempt key: C:\\Users\\zozob/.ssh/id_dsa
debug1: Will attempt key: C:\\Users\\zozob/.ssh/id_ecdsa
debug1: Will attempt key: C:\\Users\\zozob/.ssh/id_ecdsa_sk
debug1: Will attempt key: C:\\Users\\zozob/.ssh/id_ed25519
debug1: Will attempt key: C:\\Users\\zozob/.ssh/id_ed25519_sk
debug1: Will attempt key: C:\\Users\\zozob/.ssh/id_xmss
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,[email protected],ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected]>
debug1: kex_input_ext_info: (unrecognised)
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: zozob@DESKTOP-VSRRJSL RSA SHA256:sNWVrSEXjUtbvRosTy8MJuw/AdixZLeJtuQJ+XmaU/A agent
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: C:\\Users\\zozob/.ssh/id_rsa
debug1: Trying private key: C:\\Users\\zozob/.ssh/id_dsa
debug1: Trying private key: C:\\Users\\zozob/.ssh/id_ecdsa
debug1: Trying private key: C:\\Users\\zozob/.ssh/id_ecdsa_sk
debug1: Trying private key: C:\\Users\\zozob/.ssh/id_ed25519
debug1: Trying private key: C:\\Users\\zozob/.ssh/id_ed25519_sk
debug1: Trying private key: C:\\Users\\zozob/.ssh/id_xmss
debug1: Next authentication method: password
[email protected]'s password:[email protected]:[email protected]@[email protected]
Could someone help me? I'm in distress...
Thank you in advance for all your answers!
EDIT: For sure, I had a SSH to my Gitlab user !
EDIT2: Here are the logs for one of the two shell pods:
gitlab-shell {"component": "gitlab-shell","subcomponent":"ssh","time":"2024-04-05T23:38:49Z","message":"kex_exchange_identification: Connection closed by remote host\r"}
These logs appear all the time without me trying to connect via SSH or clone a repository...