pwd.yaml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. ---
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: pwd-deployment
  6. namespace: default
  7. labels:
  8. app: pwd
  9. spec:
  10. replicas: 1
  11. selector:
  12. matchLabels:
  13. app: pwd
  14. template:
  15. metadata:
  16. labels:
  17. app: pwd
  18. annotations:
  19. diun.enable: "true"
  20. diun.include_tags: '^\d+\.\d+\.\d+-alpine$'
  21. spec:
  22. containers:
  23. - image: vaultwarden/server:1.35.1-alpine
  24. name: vaultwarden
  25. imagePullPolicy: IfNotPresent
  26. ports:
  27. - containerPort: 80
  28. env:
  29. - name: ENABLE_DB_WAL
  30. value: "false"
  31. - name: YUBICO_CLIENT_ID
  32. value: "72098"
  33. - name: YUBICO_SECRET_KEY
  34. value: U1m4/HNRXLcNIp9zDA6DWOpLiGA=
  35. - name: DOMAIN
  36. value: https://pwd.bodicsek.host
  37. volumeMounts:
  38. - name: vaultwarden-vol
  39. mountPath: /data
  40. volumes:
  41. - name: vaultwarden-vol
  42. hostPath:
  43. path: /mnt/bitwarden/
  44. type: Directory
  45. ---
  46. apiVersion: v1
  47. kind: Service
  48. metadata:
  49. name: pwd
  50. namespace: default
  51. labels:
  52. app: pwd
  53. spec:
  54. type: ClusterIP
  55. selector:
  56. app: pwd
  57. ports:
  58. - port: 80
  59. targetPort: 80
  60. ---
  61. apiVersion: cert-manager.io/v1
  62. kind: Certificate
  63. metadata:
  64. name: pwd.bodicsek.host
  65. spec:
  66. secretName: pwd.bodicsek.host
  67. issuerRef:
  68. name: letsencrypt-prod
  69. kind: ClusterIssuer
  70. dnsNames:
  71. - pwd.bodicsek.host
  72. ---
  73. apiVersion: traefik.io/v1alpha1
  74. kind: IngressRoute
  75. metadata:
  76. name: pwd
  77. namespace: default
  78. spec:
  79. entryPoints:
  80. - websecure
  81. routes:
  82. - kind: Rule
  83. match: Host(`pwd.bodicsek.host`)
  84. services:
  85. - kind: Service
  86. name: pwd
  87. namespace: default
  88. passHostHeader: true
  89. port: 80
  90. tls:
  91. secretName: pwd.bodicsek.host