Home

Awesome

<!-- BEGIN_TF_DOCS -->

socat

Access internal resources through Kubernetes port-forwarding

module "rds-forwarder" {
  source = "github.com/opszero/terraform-kubernetes-socat"

  name = "rds-forwarder"
  destination_host = "opszero.askldjasdkl.us-east-1.rds.amazonaws.com"
  destination_port = 5432
  container_port = 5432
}

On the command line:

kubectl port-forward deployments/rds-forwader 5431:5432

This will then route requests to:

psql -h 0.0.0.0 -p 5431 -U username -W databasename

Providers

NameVersion
<a name="provider_kubernetes"></a> kubernetesn/a

Inputs

NameDescriptionTypeDefaultRequired
<a name="input_container_port"></a> container_portPort to listen to on the containeranyn/ayes
<a name="input_destination_host"></a> destination_hostHost name to route requests to.stringn/ayes
<a name="input_destination_port"></a> destination_portPort to listen to on the containeranyn/ayes
<a name="input_name"></a> nameName of the deploymentstringn/ayes

Resources

NameType
kubernetes_deployment_v1.socatresource

Outputs

No outputs.

🚀 Built by opsZero!

<a href="https://opszero.com"><img src="https://opszero.com/wp-content/uploads/2024/07/opsZero_logo_svg.svg" width="300px"/></a>

Since 2016 opsZero has been providing Kubernetes expertise to companies of all sizes on any Cloud. With a focus on AI and Compliance we can say we seen it all whether SOC2, HIPAA, PCI-DSS, ITAR, FedRAMP, CMMC we have you and your customers covered.

We provide support to organizations in the following ways:

We do this with a high-touch support model where you:

Please schedule a call if you need support.

<br/><br/>

<div style="display: block"> <img src="https://opszero.com/wp-content/uploads/2024/07/aws-advanced.png" width="150px" /> <img src="https://opszero.com/wp-content/uploads/2024/07/AWS-public-sector.png" width="150px" /> <img src="https://opszero.com/wp-content/uploads/2024/07/AWS-eks.png" width="150px" /> </div> <!-- END_TF_DOCS -->