pwd.yaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. spec:
  19. containers:
  20. - image: vaultwarden/server:1.32.7-alpine
  21. name: vaultwarden
  22. imagePullPolicy: IfNotPresent
  23. ports:
  24. - containerPort: 80
  25. env:
  26. - name: ENABLE_DB_WAL
  27. value: "false"
  28. - name: YUBICO_CLIENT_ID
  29. value: "72098"
  30. - name: YUBICO_SECRET_KEY
  31. value: U1m4/HNRXLcNIp9zDA6DWOpLiGA=
  32. - name: DOMAIN
  33. value: https://pwd.bodicsek.host
  34. volumeMounts:
  35. - name: vaultwarden-vol
  36. mountPath: /data
  37. volumes:
  38. - name: vaultwarden-vol
  39. hostPath:
  40. path: /mnt/bitwarden/
  41. type: Directory
  42. ---
  43. apiVersion: v1
  44. kind: Service
  45. metadata:
  46. name: pwd
  47. namespace: default
  48. labels:
  49. app: pwd
  50. spec:
  51. type: ClusterIP
  52. selector:
  53. app: pwd
  54. ports:
  55. - port: 80
  56. targetPort: 80
  57. ---
  58. apiVersion: cert-manager.io/v1
  59. kind: Certificate
  60. metadata:
  61. name: pwd.bodicsek.host
  62. spec:
  63. secretName: pwd.bodicsek.host
  64. issuerRef:
  65. name: letsencrypt-prod
  66. kind: ClusterIssuer
  67. dnsNames:
  68. - pwd.bodicsek.host
  69. ---
  70. apiVersion: traefik.io/v1alpha1
  71. kind: IngressRoute
  72. metadata:
  73. name: pwd
  74. namespace: default
  75. spec:
  76. entryPoints:
  77. - websecure
  78. routes:
  79. - kind: Rule
  80. match: Host(`pwd.bodicsek.host`)
  81. services:
  82. - kind: Service
  83. name: pwd
  84. namespace: default
  85. passHostHeader: true
  86. port: 80
  87. tls:
  88. secretName: pwd.bodicsek.host