update resources

This commit is contained in:
Sense T 2023-09-09 06:24:01 +00:00
parent dc0ed7bbe8
commit c6f94435c5
3 changed files with 24 additions and 7 deletions

View File

@ -26,8 +26,8 @@ spec:
image: linuxserver/wireguard:amd64-1.0.20210914
resources:
limits:
cpu: 200m
memory: 128Mi
cpu: 50m
memory: 32Mi
imagePullPolicy: IfNotPresent
securityContext:
privileged: false
@ -40,11 +40,11 @@ spec:
mountPath: /config
- name: socks5
image: netbyte/socks5-server
resources:
limits:
cpu: 50m
memory: 32Mi
args:
- '-l'
- ':1089'
imagePullPolicy: IfNotPresent
resources:
limits:
cpu: 200m
memory: 128Mi
imagePullPolicy: IfNotPresent

View File

@ -2,6 +2,7 @@
resources:
- deployment.yaml
- service.yaml
commonLabels:
app: wireguard-socks
type: proxy

16
wg-socks/service.yaml Normal file
View File

@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: wireguard-socks-udp
spec:
ipFamilyPolicy: PreferDualStack
ipFamilies:
- IPv4
- IPv6
type: LoadBalancer
selector:
app: wireguard-socks
ports:
- port: 1080
protocol: UDP
targetPort: 1089