batman - add tor.yml
This commit is contained in:
commit
7e36ce0dfe
56
tor.yml
Normal file
56
tor.yml
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: tor
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: tor
|
||||||
|
replicas: 1
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: tor
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: tor
|
||||||
|
image: siverten/tor:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
ports:
|
||||||
|
- containerPort: 9050
|
||||||
|
name: socks
|
||||||
|
- containerPort: 9089
|
||||||
|
name: dir
|
||||||
|
- containerPort: 9090
|
||||||
|
name: or
|
||||||
|
securityContext:
|
||||||
|
capabilities:
|
||||||
|
drop: ["ALL"]
|
||||||
|
seccompProfile:
|
||||||
|
type: RuntimeDefault
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsGroup: 101
|
||||||
|
runAsUser: 100
|
||||||
|
volumeMounts:
|
||||||
|
- name: torrc
|
||||||
|
mountPath: /etc/torrc
|
||||||
|
readOnly: true
|
||||||
|
volumes:
|
||||||
|
- name: torrc
|
||||||
|
configMap:
|
||||||
|
name: tor
|
||||||
|
items:
|
||||||
|
- key: torrc
|
||||||
|
path: torrc
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: tor
|
||||||
|
data:
|
||||||
|
torrc: |
|
||||||
|
SocksPort 0.0.0.0:9050
|
||||||
|
ExitRelay 0
|
Loading…
x
Reference in New Issue
Block a user