File tree 2 files changed +69
-0
lines changed
2 files changed +69
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM alpine:3.8
2
+
3
+ LABEL maintainer=
"Rainist Engineering <[email protected] >"
4
+
5
+ RUN apk update && apk add tinyproxy=1.8.4-r3
6
+
7
+ ENTRYPOINT ["tinyproxy" ]
8
+ CMD ["-d" ]
Original file line number Diff line number Diff line change
1
+ # tinyproxy-docker
2
+
3
+ Simple forward proxy using [ tinyproxy] ( https://github.com/tinyproxy/tinyproxy )
4
+
5
+ [ ![ dockerhub] ( https://img.shields.io/badge/rainist-tinyproxy-blue.svg?logo=docker )] ( https://hub.docker.com/r/rainist/tinyproxy ) [ ![ love] ( https://img.shields.io/badge/%3C%2F%3E%20with%20%E2%99%A5%20by-Rainist-blue.svg )] ( https://github.com/Rainist )
6
+
7
+ ## Setup
8
+
9
+ ### on Kubernetes
10
+
11
+ 1 . Create configmap
12
+
13
+ ``` yaml
14
+ apiVersion : v1
15
+ kind : ConfigMap
16
+ data :
17
+ tinyproxy.conf : |
18
+ Port 8000
19
+ Listen 0.0.0.0
20
+
21
+ Upstream proxy-host:proxy-port
22
+
23
+ MaxClients 100
24
+ MinSpareServers 1
25
+ MaxSpareServers 5
26
+ StartServers 1
27
+ MaxRequestsPerChild 0
28
+ metadata :
29
+ name : proxy-config
30
+ namespace : namespace
31
+ ` ` `
32
+
33
+ 1. Mount configmap to ` /etc/tinyproxy`
34
+
35
+ ` ` ` json
36
+ "spec": {
37
+ "volumes": [
38
+ {
39
+ "name": "proxy-config",
40
+ "configMap": {
41
+ "name": "proxy-config",
42
+ "defaultMode": 420
43
+ }
44
+ }
45
+ ],
46
+ "containers": [
47
+ {
48
+ "name": "proxy",
49
+ "image": "rainist/tinyproxy:1.8.4-r3",
50
+ "volumeMounts": [
51
+ {
52
+ "name": "proxy-config",
53
+ "mountPath": "/etc/tinyproxy"
54
+ }
55
+ ],
56
+ ...
57
+ }
58
+ ],
59
+ ...
60
+ }
61
+ ` ` `
You can’t perform that action at this time.
0 commit comments