apiVersion: apps/v1 kind: Deployment metadata: name: furumi-socks-proxy labels: app: furumi-socks-proxy spec: replicas: 1 selector: matchLabels: app: furumi-socks-proxy template: metadata: labels: app: furumi-socks-proxy spec: nodeSelector: kubernetes.io/hostname: ai.tail2fe2d.ts.net tolerations: - key: workload operator: Equal value: ai effect: NoSchedule containers: - name: socks-proxy image: serjs/go-socks5-proxy:v0.0.4 imagePullPolicy: IfNotPresent env: - name: REQUIRE_AUTH value: "true" - name: PROXY_USER value: furumi - name: PROXY_PASSWORD value: furumi - name: PROXY_PORT value: "1080" ports: - name: socks5 containerPort: 1080 protocol: TCP readinessProbe: tcpSocket: port: socks5 initialDelaySeconds: 2 periodSeconds: 10 timeoutSeconds: 2 failureThreshold: 3 livenessProbe: tcpSocket: port: socks5 initialDelaySeconds: 10 periodSeconds: 30 timeoutSeconds: 2 failureThreshold: 3 resources: requests: cpu: 10m memory: 16Mi limits: cpu: 200m memory: 64Mi securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL readOnlyRootFilesystem: true runAsNonRoot: true securityContext: seccompProfile: type: RuntimeDefault --- apiVersion: v1 kind: Service metadata: name: furumi-socks-proxy labels: app: furumi-socks-proxy spec: type: ClusterIP selector: app: furumi-socks-proxy ports: - name: socks5 protocol: TCP port: 1080 targetPort: socks5 --- apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: furumi-socks-proxy-ingress spec: podSelector: matchLabels: app: furumi-socks-proxy policyTypes: - Ingress ingress: - from: - podSelector: matchLabels: app: furumi-player ports: - protocol: TCP port: 1080