mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-30 23:45:25 +02:00
98 lines
2.3 KiB
YAML
98 lines
2.3 KiB
YAML
---
|
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: &app vaultwarden
|
|
namespace: data
|
|
spec:
|
|
interval: 15m
|
|
chart:
|
|
spec:
|
|
chart: kah-common-chart
|
|
version: 1.1.2
|
|
sourceRef:
|
|
kind: HelmRepository
|
|
name: k8s-at-home-charts
|
|
namespace: flux-system
|
|
interval: 15m
|
|
install:
|
|
createNamespace: true
|
|
remediation:
|
|
retries: 5
|
|
upgrade:
|
|
remediation:
|
|
retries: 5
|
|
values:
|
|
global:
|
|
nameOverride: *app
|
|
|
|
image:
|
|
repository: ghcr.io/k8s-at-home/vaultwarden
|
|
tag: v1.25.1
|
|
|
|
strategy:
|
|
type: Recreate
|
|
|
|
env:
|
|
DATA_FOLDER: "data"
|
|
ICON_CACHE_FOLDER: "data/icon_cache"
|
|
ATTACHMENTS_FOLDER: "data/attachments"
|
|
DOMAIN: "https://vaultwarden.${SECRET_CLUSTER_DOMAIN}"
|
|
ADMIN_TOKEN: ${SECRET_VAULTWARDEN_ADMIN_TOKEN}
|
|
DATABASE_URL: ${SECRET_VAULTWARDEN_DB_URL}
|
|
TZ: "${TIMEZONE}"
|
|
SIGNUPS_ALLOWED: "false"
|
|
WEBSOCKET_ENABLED: "true"
|
|
WEBSOCKET_ADDRESS: 0.0.0.0
|
|
WEBSOCKET_PORT: 3012
|
|
SMTP_HOST: smtp.fastmail.com
|
|
SMTP_FROM: vaultwarden@${SECRET_DOMAIN}
|
|
SMTP_FROM_NAME: vaultwarden
|
|
SMTP_PORT: 587
|
|
SMTP_SSL: "true"
|
|
SMTP_USERNAME: ${SECRET_SMTP_USERNAME}
|
|
SMTP_PASSWORD: ${SECRET_VAULTWARDEN_SMTP_PASSWORD}
|
|
|
|
service:
|
|
main:
|
|
ports:
|
|
http:
|
|
port: 80
|
|
websocket:
|
|
enabled: true
|
|
port: 3012
|
|
|
|
persistence:
|
|
data:
|
|
enabled: true
|
|
existingClaim: vaultwarden-data
|
|
mountPath: /data
|
|
|
|
ingress:
|
|
main:
|
|
enabled: true
|
|
ingressClassName: "nginx"
|
|
annotations:
|
|
external-dns.alpha.kubernetes.io/target: "services.${SECRET_DOMAIN}."
|
|
external-dns/is-public: "true"
|
|
hosts:
|
|
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
- path: /notifications/hub
|
|
pathType: Prefix
|
|
- path: /notifications/hub/negotiate
|
|
pathType: Prefix
|
|
service:
|
|
port: 3012
|
|
tls:
|
|
- hosts:
|
|
- *host
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 100Mi
|
|
limits:
|
|
memory: 2Gi
|