Rainist / tinyproxy-docker

Simple forward proxy using tinyproxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Simple forward proxy using tinyproxy


Languages

Language:Dockerfile 100.0%