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

View File

@ -2,6 +2,7 @@
resources: resources:
- deployment.yaml - deployment.yaml
- service.yaml
commonLabels: commonLabels:
app: wireguard-socks app: wireguard-socks
type: proxy 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