modulepackage
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.
Resources
# Functions
No description provided by the author
Inspired by https://dx13.co.uk/articles/2021/01/15/kubernetes-types-using-go/.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Generate a pseudorandom 40 bit ID, 8 chars long.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
We create one of these per connection.
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author