Draft: Spike: Workspaces on CI Runners
- Issue: Spike: Architecture for running Workspaces on C... (gitlab-org/gitlab#519307 - closed)
- PoC Reference MR: WIP: POC for using KAS to tunnel to runners (!2084 - closed)
Description
This is a spike to route tunnel HTTP traffic into an agent which is running anywhere(e.g. CI job). Currently, the code does the following -
- Start HTTP server on KAS
- Tunnel HTTP traffic to corresponding agent
Testing
# start a server for testing
python3 -m http.server 60001
# 60001 is the port
# 1 is the workspace name. the agent id will be fetched by calling GitLab. for now, we use the agentid as the workspace name for testing.
# the Workspaces HTTP server runs on port 9000
curl 60001-1.127.0.0.1.nip.io:9000
Edited by Vishal Tak