A port-forward proxy. Allows an onward connection from the cluster to some other host in your cluster’s network, eg your hosted database/cache/other service.
In practice, this means that a hosted service can be made available only to the cluster, then cluster users can be granted access by giving them permission to run port-forward on the tunneller.
1 |
helm install stable/socat-tunneller --name db-tunneller --set tunnel.host=mydbhost.cloud --set tunnel.port=3306 --set nameOverride=db-tunneller |
then:
1 |
kubectl port-forward svc/db-tunneller 13306:3306 |
then, for example:
1 |
mysql -u myuser -h 127.0.0.1 --port 13306 -p |
Tell us about a new Kubernetes application
Never miss a thing! Sign up for our newsletter to stay updated.
Discover and learn about everything Kubernetes