Egress proxy configurationΒΆ
Some configuration requires all external requests having a know source static IP address. This static IP address allow client to configure firewall rules based on the connection source IP. This configuration is done by having a ConfigMap with the name <name>-des-config which declare additional environment variables.
An egress can be added by running the following commands:
Variable |
Description |
---|---|
NAME |
the name of the helm deployment (helm ls) |
NAMESPACE |
the namespace where the deployment is located |
PROXY_HOST |
the address of the proxy |
PROXY_PORT |
the port of the proxy |
cat << EOF > des-config.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: <NAME>-des-config
data:
PROXY_HOST: "<PROXY_HOST>"
PROXY_PORT: "<PROXY_PORT>"
EOF
kubectl apply -f des-config.yaml -n <NAMESPACE>