daemonset.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. apiVersion: apps/v1
  2. kind: DaemonSet
  3. metadata:
  4. name: byedpi
  5. spec:
  6. selector:
  7. matchLabels:
  8. app.kubernetes.io/name: byedpi
  9. app.kubernetes.io/part-of: byedpi
  10. template:
  11. metadata:
  12. labels:
  13. app.kubernetes.io/name: byedpi
  14. app.kubernetes.io/part-of: byedpi
  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. - name: byedpi
  27. image: harbor.home.wugi.info/library/byedpi@sha256:522a77b6f760c436364c80814bd74154a343428c14a45296e279cd486683dfcb
  28. ports:
  29. - name: socks5
  30. containerPort: 1081
  31. protocol: TCP
  32. command:
  33. - /usr/bin/ciadpi
  34. args:
  35. - --debug=2
  36. - --port=1081
  37. - --disorder=1
  38. - --auto=torst
  39. - --tlsrec=1+s
  40. resources:
  41. limits:
  42. cpu: 2000m
  43. memory: 1024Mi
  44. requests:
  45. cpu: 1000m
  46. memory: 512Mi