Zhenzhong Xu
Zhenzhong Xu
CCoder.com
Created by Zhenzhong Xu on 12/14/2024 in #help
Coder created workspace (from K8s Devcontainer template) does not seem to inject proper SSH key
Hi i need some help setting up Coder on a K8s cluster. I've installed coder in K8s (via helm), configured role and role binding for PVC and Deployments. Setting up a workspace from the k8S DevContainer template seems working fine except that ssh keys are not properly injected into the workspace, resulting in git clone failure. Below are the logs. Really appreciate any help!
envbuilder v1.1.0+a3a6a83 - Build development environments from repositories in a container
#1: 📦 Cloning [email protected]:zhenzhongxu/personal-ai-infra.git to /workspaces/personal-ai-infra...
#1: 🔑 Using SSH authentication!
#1: 🔑 No SSH key found, falling back to agent!
#1: ❌ Failed to connect to SSH agent: error creating SSH agent: "SSH agent requested but SSH_AUTH_SOCK not-specified"
#1: Parsed Git URL as "ssh://[email protected]/zhenzhongxu/personal-ai-infra.git"
Failed to clone repository: clone "[email protected]:zhenzhongxu/personal-ai-infra.git": error creating SSH agent: "SSH agent requested but SSH_AUTH_SOCK not-specified"
envbuilder v1.1.0+a3a6a83 - Build development environments from repositories in a container
#1: 📦 Cloning [email protected]:zhenzhongxu/personal-ai-infra.git to /workspaces/personal-ai-infra...
#1: 🔑 Using SSH authentication!
#1: 🔑 No SSH key found, falling back to agent!
#1: ❌ Failed to connect to SSH agent: error creating SSH agent: "SSH agent requested but SSH_AUTH_SOCK not-specified"
#1: Parsed Git URL as "ssh://[email protected]/zhenzhongxu/personal-ai-infra.git"
Failed to clone repository: clone "[email protected]:zhenzhongxu/personal-ai-infra.git": error creating SSH agent: "SSH agent requested but SSH_AUTH_SOCK not-specified"
8 replies