From c6f94435c5f1f045fc6d1816884fc288f3a11940 Mon Sep 17 00:00:00 2001 From: Sense T Date: Sat, 9 Sep 2023 06:24:01 +0000 Subject: [PATCH] update resources --- wg-socks/deployment.yaml | 14 +++++++------- wg-socks/kustomization.yaml | 1 + wg-socks/service.yaml | 16 ++++++++++++++++ 3 files changed, 24 insertions(+), 7 deletions(-) create mode 100644 wg-socks/service.yaml diff --git a/wg-socks/deployment.yaml b/wg-socks/deployment.yaml index a9e9cc7..4b3a81d 100644 --- a/wg-socks/deployment.yaml +++ b/wg-socks/deployment.yaml @@ -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 \ No newline at end of file + imagePullPolicy: IfNotPresent \ No newline at end of file diff --git a/wg-socks/kustomization.yaml b/wg-socks/kustomization.yaml index cfca7e3..e110bd1 100644 --- a/wg-socks/kustomization.yaml +++ b/wg-socks/kustomization.yaml @@ -2,6 +2,7 @@ resources: - deployment.yaml + - service.yaml commonLabels: app: wireguard-socks type: proxy diff --git a/wg-socks/service.yaml b/wg-socks/service.yaml new file mode 100644 index 0000000..f5737a6 --- /dev/null +++ b/wg-socks/service.yaml @@ -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 \ No newline at end of file