helm/wg-socks/deployment.yaml

50 lines
1.2 KiB
YAML
Raw Permalink 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:
2023-09-09 06:24:01 +00:00
cpu: 50m
memory: 32Mi
2023-06-08 14:13:27 +00:00
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
2023-09-09 06:24:01 +00:00
resources:
limits:
cpu: 50m
memory: 32Mi
2023-06-08 14:13:27 +00:00
args:
- '-l'
- ':1089'
2023-09-09 06:24:01 +00:00
imagePullPolicy: IfNotPresent