statefulset.yaml 818 B

123456789101112131415161718192021222324252627282930313233343536
  1. apiVersion: apps/v1
  2. kind: StatefulSet
  3. metadata:
  4. name: 3x-ui
  5. spec:
  6. selector:
  7. matchLabels:
  8. app.kubernetes.io/name: 3x-ui
  9. app.kubernetes.io/part-of: 3x-ui
  10. template:
  11. metadata:
  12. labels:
  13. app.kubernetes.io/name: 3x-ui
  14. app.kubernetes.io/part-of: 3x-ui
  15. spec:
  16. containers:
  17. - image: ghcr.io/mhsanaei/3x-ui:v2.1.2
  18. name: 3x-ui
  19. env:
  20. - name: XRAY_VMESS_AEAD_FORCED
  21. value: "false"
  22. volumeMounts:
  23. - mountPath: /etc/x-ui
  24. name: data
  25. - mountPath: /root/cert
  26. name: certificates
  27. volumes:
  28. - name: data
  29. hostPath:
  30. path: /var/lib/3x-ui/data
  31. type: Directory
  32. - name: certificates
  33. hostPath:
  34. path: /var/lib/3x-ui/certs
  35. type: Directory