Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/opszero/terraform-kubernetes-socat
https://github.com/opszero/terraform-kubernetes-socat
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/opszero/terraform-kubernetes-socat
- Owner: opszero
- License: other
- Created: 2022-08-26T22:32:03.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-16T21:22:01.000Z (about 2 months ago)
- Last Synced: 2024-09-17T02:41:13.463Z (about 2 months ago)
- Language: HCL
- Homepage: https://opszero.com
- Size: 72.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Support: SUPPORT
Awesome Lists containing this project
README
# 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](#provider\_kubernetes) | n/a |
## Inputs| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [container\_port](#input\_container\_port) | Port to listen to on the container | `any` | n/a | yes |
| [destination\_host](#input\_destination\_host) | Host name to route requests to. | `string` | n/a | yes |
| [destination\_port](#input\_destination\_port) | Port to listen to on the container | `any` | n/a | yes |
| [name](#input\_name) | Name of the deployment | `string` | n/a | yes |
## Resources| Name | Type |
|------|------|
| [kubernetes_deployment_v1.socat](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/deployment_v1) | resource |
## OutputsNo outputs.
# 🚀 Built by opsZero!Since 2016 [opsZero](https://opszero.com) 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:
- [Modernize or Migrate to Kubernetes](https://opszero.com/solutions/modernization/)
- [Cloud Infrastructure with Kubernetes on AWS, Azure, Google Cloud, or Bare Metal](https://opszero.com/solutions/cloud-infrastructure/)
- [Building AI and Data Pipelines on Kubernetes](https://opszero.com/solutions/ai/)
- [Optimizing Existing Kubernetes Workloads](https://opszero.com/solutions/optimized-workloads/)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 KubernetesPlease [schedule a call](https://calendly.com/opszero-llc/discovery) if you need support.