socat-tunneller

by Isotoma

Helm chartv0.2.0App 1.0Verified publisher

A Helm chart for socat-tunneller

About this chart

socat-tunneller

Note: successor to stable/socat-tunneller https://github.com/helm/charts/tree/master/stable/socat-tunneller where stable's 0.1.1 and 0.1.2 (which added the deprecation notice) are functionally identical to 0.1.2 here.


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.

Basic usage

helm install isotoma/socat-tunneller --name db-tunneller --set tunnel.host=mydbhost.cloud --set tunnel.port=3306 --set nameOverride=db-tunneller

then

kubectl port-forward svc/db-tunneller 13306:3306

then, for eg

mysql -u myuser -h 127.0.0.1 --port 13306 -p

Configuration values

Important configuration

ParameterDescriptionDefault
tunnel.hostThe host to target, this should be resolvable by the pod(required)
tunnel.portThe port to target on the host(required)

Other configuration

ParameterDescriptionDefault
replicaCountDeployment replicas1
image.repositoryImage repositoryalpine/socat
image.tagImage tag1.0.5
image.pullPolicyImage pull policyIfNotPresent
resourcesContainer resources{}
nodeSelectorPod node selector{}
tolerationsPod tolerations[]
affinityPod affinity{}
podAnnotationsPod annotations{}

Deploy socat-tunneller with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has socat-tunneller on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartsocat-tunneller is pinned at v0.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply