Skip to content

Latest commit

 

History

History
61 lines (51 loc) · 1.35 KB

README.md

File metadata and controls

61 lines (51 loc) · 1.35 KB

tinyproxy-docker

Simple forward proxy using tinyproxy

dockerhub love

Setup

on Kubernetes

  1. 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
  2. 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"
              }
            ],
            ...
          }
        ],
        ...
    }