apiVersion: apps/v1
kind: Deployment
metadata:
  name: 3proxy
spec:
  selector:
    matchLabels:
      app.kubernetes.io/name: 3proxy
      app.kubernetes.io/part-of: 3proxy
  strategy:
    type: Recreate
  template:
    metadata:
      labels:
        app.kubernetes.io/name: 3proxy
        app.kubernetes.io/part-of: 3proxy
    spec:
      containers:
      - image: docker-registry.wugi.info/networking/3proxy:latest
        name: 3proxy
        ports:
        - containerPort: 1080
          name: socks5
          protocol: TCP
        - containerPort: 3128
          name: http
          protocol: TCP
        resources:
          limits:
            memory: 512Mi
        volumeMounts:
        - mountPath: /etc/3proxy.cfg
          subPath: 3proxy.cfg
          name: 3proxy-configuration
      volumes:
      - name: 3proxy-configuration
        configMap:
          name: 3proxy-configuration
