用的 FluxCD 连 SSH GitLab,报错很神秘:
ssh: no common algorithm for host key; client offered: [ecdsa-sha2-nistp256], server offered: [rsa-sha2-512 rsa-sha2-256 ssh-ed25519]
可以去 k8s 里找一下相关 git repo source 的 secret,里面有 known_hosts ,可能是缓存了一个老版本的,新版已经没有了。
用这个命令找一下新的 host key:
ssh-keyscan gitlab.com
然后手动编辑一下就行:
kubectl edit secret fluxcd -n flux-system
Created By 三三好记性不如烂 Wiki - 人工大脑CC BY-SA or CC BY-NC-SA 4.0