Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
x/build: fix gomote ssh to COS-based Linux Docker images #26969
When I moved the Linux Docker-based container images from Kubernetes to COS I accidentally broke
We used to ssh proxy to the POD's port 22, which worked, but now we ssh to the COS node's ssh server, which is the wrong one. We're also running an SSH server inside the container (which is also listening on port 22 in its private network namespace), and it's only that inner SSH server that's authenticated.
We need to configure the COS node's konlet YAML to either forward some different port (e.g. host 2200 to container 22) or just make the container image listen on 2200 instead, and then configure that in x/build/dashboard/builders.go and make the coordinator respect that in its
The current konlet config is:
I see nothing about even mapping port 80, so maybe all ports not otherwise free are mapped.
You'll need to read the code to see if it's configurable:
But I think the answer is the network is not configurable:
So we should probably just make our OpenSSH sshd in the container listen on a high port.
CL 129356 and deploying the new version of
I tested, and
Closing since the issue is resolved. Huge thanks to @bradfitz for the help with this.