daemonset.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. apiVersion: apps/v1
  2. kind: DaemonSet
  3. metadata:
  4. name: redsocks
  5. spec:
  6. selector:
  7. matchLabels:
  8. app.kubernetes.io/name: redsocks
  9. app.kubernetes.io/part-of: redsocks
  10. template:
  11. metadata:
  12. labels:
  13. app.kubernetes.io/name: redsocks
  14. app.kubernetes.io/part-of: redsocks
  15. spec:
  16. tolerations:
  17. - key: "edge.cluster.local/not-schedulable"
  18. operator: "Equal"
  19. effect: "NoSchedule"
  20. - key: "workstation.cluster.local"
  21. operator: "Equal"
  22. value: "true"
  23. effect: "NoSchedule"
  24. hostNetwork: true
  25. containers:
  26. - image: nixery.dev/shell/coreutils/util-linux/redsocks
  27. name: redsocks
  28. command:
  29. - /bin/redsocks
  30. args:
  31. - -c
  32. - /etc/redsocks.conf
  33. ports:
  34. - containerPort: 1083
  35. name: socks5
  36. protocol: TCP
  37. volumeMounts:
  38. - mountPath: /etc/redsocks.conf
  39. subPath: redsocks.conf
  40. readOnly: true
  41. name: config
  42. volumes:
  43. - name: config
  44. configMap:
  45. name: redsocks-configuration