helm/wg-socks/deployment.yaml

50 lines
1.2 KiB
YAML
Raw Normal View History

2023-06-08 14:13:27 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: wireguard-socks
spec:
selector:
matchLabels:
app: wireguard-socks
template:
spec:
volumes:
2023-09-06 04:40:10 +00:00
- name: config
secret:
secretName: wireguard
initContainers:
- name: setup
image: busybox
command:
- sysctl
- -w
- net.ipv4.conf.all.src_valid_mark=1
securityContext:
privileged: true
2023-06-08 14:13:27 +00:00
containers:
- name: wireguard
2023-09-06 04:40:10 +00:00
image: linuxserver/wireguard:amd64-1.0.20210914
2023-06-08 14:13:27 +00:00
resources:
limits:
cpu: 200m
memory: 128Mi
imagePullPolicy: IfNotPresent
securityContext:
2023-09-06 04:40:10 +00:00
privileged: false
2023-06-08 14:13:27 +00:00
capabilities:
add:
- NET_ADMIN
2023-09-06 04:40:10 +00:00
- SYS_MODULE
2023-06-08 14:13:27 +00:00
volumeMounts:
2023-09-06 04:40:10 +00:00
- name: config
mountPath: /config
2023-06-08 14:13:27 +00:00
- name: socks5
image: netbyte/socks5-server
args:
- '-l'
- ':1089'
imagePullPolicy: IfNotPresent
resources:
limits:
cpu: 200m
memory: 128Mi