apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: socks5
  labels:
    app.kubernetes.io/name: socks5
spec:
  selector:
    matchLabels:
      app.kubernetes.io/name: socks5
  serviceName: socks5
  replicas: 1
  template:
    metadata:
      labels:
        app.kubernetes.io/name: socks5
    spec:
      containers:
        - name: socks5
          image: serjs/go-socks5-proxy:latest
          imagePullPolicy: "Always"
          ports:
            - name: tcp-socks5
              containerPort: 1080
 #       - name: netshoot
 #         command: [ 'tail', '-f', '/dev/null' ]
 #         image: docker.io/nicolaka/netshoot:latest
 #         imagePullPolicy: "Always"
