Skip to content

opszero/terraform-kubernetes-socat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Name Version
kubernetes n/a

Inputs

Name Description Type Default Required
container_port Port to listen to on the container any n/a yes
destination_host Host name to route requests to. string n/a yes
destination_port Port to listen to on the container any n/a yes
name Name of the deployment string n/a yes

Resources

Name Type
kubernetes_deployment_v1.socat resource

Outputs

No outputs.

🚀 Built by opsZero!

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:

  • Get access to us on Slack, Microsoft Teams or Email
  • Get 24/7 coverage of your infrastructure
  • Get an accelerated migration to Kubernetes

Please schedule a call if you need support.



About

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages