vaultwarden.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. ---
  2. apiVersion: v1
  3. kind: Namespace
  4. metadata:
  5. name: vaultwarden
  6. ---
  7. apiVersion: apps/v1
  8. kind: Deployment
  9. metadata:
  10. name: vaultwarden
  11. namespace: vaultwarden
  12. spec:
  13. strategy:
  14. type: Recreate
  15. selector:
  16. matchLabels:
  17. app: vaultwarden
  18. replicas: 1
  19. template:
  20. metadata:
  21. labels:
  22. app: vaultwarden
  23. spec:
  24. containers:
  25. - name: vaultwarden
  26. image: vaultwarden/server:latest
  27. ports:
  28. - containerPort: 80
  29. name: http-web-svc
  30. envFrom:
  31. - secretRef:
  32. name: vaultwarden-secret
  33. env:
  34. - name: WEBSOCKET_ENABLED
  35. value: "true"
  36. - name: SIGNUPS_ALLOWED
  37. value: "false"
  38. volumeMounts:
  39. - mountPath: "/data"
  40. name: data
  41. livenessProbe:
  42. httpGet:
  43. path: /
  44. port: 80
  45. failureThreshold: 10
  46. initialDelaySeconds: 30
  47. periodSeconds: 10
  48. volumes:
  49. - name: data
  50. persistentVolumeClaim:
  51. claimName: vaultwarden-pvc
  52. ---
  53. apiVersion: v1
  54. kind: Service
  55. metadata:
  56. name: vaultwarden-service
  57. namespace: vaultwarden
  58. spec:
  59. selector:
  60. app: vaultwarden
  61. type: ClusterIP
  62. ports:
  63. - name: vaultwarden-web-port
  64. protocol: TCP
  65. port: 80
  66. targetPort: http-web-svc