A at hand instrument to robotically position up proxies that train the far-off container’s listening ports
again to the local machine. Appropriate adore kubectl portforward
or docker poke -p LOCAL:REMOTE
, but
robotically analysis and change the ports to be forwarded on the wing.
I in most cases catch myself forgot to add -p
possibility when making an strive out a say with docker, or disregarded to
train some different ports. Now I don’t wish to grief about that, I correct poke the following instructions:
Featured Content Ads
add advertising hereapf will change the port list on the wing. So need to you login to the container and originate different
server listening on different ports, it goes to dynamically change the local listeners.
For kubernetes:
Featured Content Ads
add advertising here$ kubectl poke --say redis redis
$ apf -k default/redis
LISTENING PORTS: [6379 ==> 6379]
Installation
Initially, apf requires a working docker
/ kubectl
client setup, the shopper can conect to both
local docker daemon / k8s cluster or far-off.
It is seemingly you’ll perhaps possibly possibly both download the binary from the open artifacts or set up it your self.
# MacOS (intel)
curl -L -O https://github.com/ruoshan/autoportforward/releases/download/v0.0.2/apf-mac
chmod +x apf-mac
mv apf-mac /usr/local/bin/apf
# Linux
curl -L -O https://github.com/ruoshan/autoportforward/releases/download/v0.0.2/apf-linux-x64
chmod +x apf-mac
mv apf-mac /usr/local/bin/apf
To manually set up it, clone the repo and poke the set up.sh
script.
Featured Content Ads
add advertising hereUsage
# Docker
apf {container ID / title}
# Kubernetes
apf -k {namespace}/{pod title}
Web hiss
- Supporting for reverse proxy is in growth: Construct listening ports in container and ahead them ba