-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkube-deployment.yml
102 lines (102 loc) · 2.09 KB
/
kube-deployment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
apiVersion: v1
kind: Namespace
metadata:
name: "tor"
labels:
name: "tornetworkproxy"
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: tor-pv-datadir
namespace: tor
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 8Gi
---
apiVersion: v1
kind: Service
metadata:
name: tor
namespace: tor
labels:
apps: tor
spec:
type: LoadBalancer
ports:
- port: 2123
targetPort: 2123
name: orport
protocol: TCP
- port: 2133
targetPort: 2133
name: ptport
protocol: TCP
selector:
app: tor
# clusterIP: None
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: tor
namespace: tor
labels:
app: tor
spec:
replicas: 1
selector:
matchLabels:
app: tor
template:
metadata:
labels:
app: tor
spec:
containers:
- name: tor
image: zetneteork/tor-obfs4-bridge:latest
imagePullPolicy: Always
securityContext:
allowPrivilegeEscalation: false
runAsUser: 0
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: TZ
value: "Europe/Prague"
- name: PT_PORT
value: "2133"
- name: EMAIL
value: "[email protected]"
- name: OR_PORT
value: "2123"
- name: TOR_OR_PORT_IPV4
value: "0"
- name: TOR_EXITRELAY
value: "0"
- name: TOR_BRIDGERELAY
value: "1"
- name: PATH
value: "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
ports:
-
containerPort: 2123
name: orport
protocol: TCP
-
containerPort: 2133
name: ptport
protocol: TCP
volumeMounts:
- name: datadir
mountPath: /var/lib/tor
volumes:
- name: datadir
persistentVolumeClaim:
claimName: tor-pv-datadir