-
Notifications
You must be signed in to change notification settings - Fork 17
/
tor-external-full.yaml
64 lines (60 loc) · 1.29 KB
/
tor-external-full.yaml
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
apiVersion: tor.k8s.torproject.org/v1alpha2
kind: Tor
metadata:
name: example-tor-instance-full
spec:
client:
socks:
enable: true
policy:
- "accept 1.2.3.4/32"
- "accept 5.6.7.0/24"
- "accept fe80::/0"
flags:
- IsolateClientAddr
- IsolateSOCKSAuth
dns:
enable: true
natd:
enable: true
httptunnel:
enable: true
trans:
# transparent proxy is disabled in Tor build 0.4.6.10
enable: false
control:
enable: true
# secret: # if not set a random one will be generated
# - "changeme"
# secretRef:
# - name: my-tor-control-secret
# key: mykey
metrics:
enable: true
config: |
# This is a comment
configMapKeyRef:
# Will be mounted at /config/custom1/custom-1.conf
- name: example-tor-instance-full-extraconfig
key: config1.conf
# Will be mounted at /config/custom2/custom-2.conf
- name: example-tor-instance-full-extraconfig
key: config2.conf
---
apiVersion: v1
kind: ConfigMap
metadata:
name: example-tor-instance-full-extraconfig
data:
config1.conf: |
# config test1
config2.conf: |
# config test2
---
apiVersion: v1
kind: Secret
metadata:
name: my-tor-control-secret
data:
# alsochangeme
mykey: YWxzb2NoYW5nZW1l