Simple forward proxy using tinyproxy
-
Create configmap
apiVersion: v1 kind: ConfigMap data: tinyproxy.conf: | Port 8000 Listen 0.0.0.0 Upstream proxy-host:proxy-port MaxClients 100 MinSpareServers 1 MaxSpareServers 5 StartServers 1 MaxRequestsPerChild 0 metadata: name: proxy-config namespace: namespace
-
Mount configmap to
/etc/tinyproxy
"spec": { "volumes": [ { "name": "proxy-config", "configMap": { "name": "proxy-config", "defaultMode": 420 } } ], "containers": [ { "name": "proxy", "image": "rainist/tinyproxy:1.8.4-r3", "volumeMounts": [ { "name": "proxy-config", "mountPath": "/etc/tinyproxy" } ], ... } ], ... }