deployment.yaml 903 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: 3proxy
  5. spec:
  6. selector:
  7. matchLabels:
  8. app.kubernetes.io/name: 3proxy
  9. app.kubernetes.io/part-of: 3proxy
  10. strategy:
  11. type: Recreate
  12. template:
  13. metadata:
  14. labels:
  15. app.kubernetes.io/name: 3proxy
  16. app.kubernetes.io/part-of: 3proxy
  17. spec:
  18. containers:
  19. - image: docker-registry.wugi.info/networking/3proxy:latest
  20. name: 3proxy
  21. ports:
  22. - containerPort: 1080
  23. name: socks5
  24. protocol: TCP
  25. - containerPort: 3128
  26. name: http
  27. protocol: TCP
  28. resources:
  29. limits:
  30. memory: 512Mi
  31. volumeMounts:
  32. - mountPath: /etc/3proxy.cfg
  33. subPath: 3proxy.cfg
  34. name: 3proxy-configuration
  35. volumes:
  36. - name: 3proxy-configuration
  37. configMap:
  38. name: 3proxy-configuration