A proxy for the Rancher remotedialer.
This application serves as a proxy for the Rancher remotedialer, facilitating communication between the Rancher server and the managed clusters. It is configured entirely through environment variables.
To run the proxy, you must set the following environment variables:
Variable | Description | Required |
---|---|---|
TLS_NAME |
The client name (SAN) for the certificate. | Yes |
CA_NAME |
The name of the certificate authority secret. | Yes |
CERT_CA_NAMESPACE |
The namespace of the certificate secret. | Yes |
CERT_CA_NAME |
The name of the certificate secret. | Yes |
SECRET |
The remotedialer secret. | Yes |
PROXY_PORT |
The TCP port for the remotedialer-proxy. | Yes |
PEER_PORT |
The cluster-external service port. | Yes |
HTTPS_PORT |
The HTTPS port for the remotedialer-proxy. | Yes |
DEBUG |
Set to enable debug logging. | No |
Once the environment variables are set, you can run the application:
go run ./cmd/proxy
To build the application from source, run the following command:
go build ./cmd/proxy
Please see the CODEOWNERS
file for information on who to contact for contributions.