Module to implement socat in Kubernetes through Terraform.
module "socat" {
source = "[email protected]:glaaj/tf-k8s-socat.git"
version = 1.0.0
namespace = "insertnamehere"
endpoint = "inserturlhere"
destination_port = xxx
source_port = xxx
protocol = "TCP"
}
Use the pods that the deployment creates to troubleshoot networking towards targets that may only be accessible from sources inside a cluster. For example a database that only allows connectivity from the cluster.
Name | Version |
---|---|
terraform | >= 1.7.0 |
kubernetes | > 2.0.0, < 3.0.0 |
random | > 3.0.0, < 4.0.0 |
Name | Version |
---|---|
kubernetes | > 2.0.0, < 3.0.0 |
random | > 3.0.0, < 4.0.0 |
No modules.
Name | Type |
---|---|
kubernetes_deployment.this | resource |
random_pet.this | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
destination_port | Port to which socat should forward the traffic. | number |
n/a | yes |
endpoint | Address to which socat should forward traffic. | string |
n/a | yes |
namespace | Name of the namespace in which the deployment should be placed. | string |
"default" |
no |
protocol | The protocol that socat should use, options are 'TCP' or 'UDP', defaults to TCP. | string |
"TCP" |
no |
source_port | Port on which socat should listen for traffic. | number |
n/a | yes |
No outputs.