repositorypackage
0.0.0-20240503232841-80bda5fed2a8
Repository: https://github.com/matir/podperconn.git
Documentation: pkg.go.dev
# README
PodPerConn
Pod Per Conn accepts an incoming connection and spawns a new pod, then forwards the connection to the new pod.
This is forwarded as a basic TCP forwarder without regard to the underlying protocol.
Copyright
Copyright 2022 Google LLC. This is not an official Google Product.
Design
Initial Setup
- Load template Deployment.
- Verify connectivity to k8s cluster.
- Start listening for connections.
Per-Connection
- Accept incoming connection.
- Attempt spawning a new pod that exposes exactly one port.
- Start forwarding traffic to port on new pod.
- On connection close, shut down deployment and close remaining connection.