bridge-dpl.yaml 838 B

12345678910111213141516171819202122232425262728293031323334353637
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: bridge
  5. spec:
  6. replicas: 1
  7. selector:
  8. matchLabels:
  9. name: bridge
  10. template:
  11. metadata:
  12. labels:
  13. name: bridge
  14. spec:
  15. affinity:
  16. nodeAffinity:
  17. preferredDuringSchedulingIgnoredDuringExecution:
  18. - weight: 1
  19. preference:
  20. matchExpressions:
  21. - key: kubernetes.io/arch
  22. operator: In
  23. values:
  24. - amd64
  25. volumes:
  26. - name: data
  27. persistentVolumeClaim:
  28. claimName: bridge-pvc
  29. containers:
  30. - name: bridge
  31. volumeMounts:
  32. - mountPath: "/root"
  33. name: data
  34. image: shenxn/protonmail-bridge:latest
  35. ports:
  36. - containerPort: 25
  37. - containerPort: 143