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 2022 Google LLC. This is not an official Google Product.
- Load template Deployment.
- Verify connectivity to k8s cluster.
- Start listening for connections.
- 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.