From a25bd791eee15d4550906404a6283bb918163713 Mon Sep 17 00:00:00 2001 From: gitea-admin Date: Tue, 19 May 2026 08:42:36 +0000 Subject: [PATCH] feat: deploy Bitwarden self-hosted in security namespace --- .../bitwarden/bitwarden-deployment.yaml | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 deployments/bitwarden/bitwarden-deployment.yaml diff --git a/deployments/bitwarden/bitwarden-deployment.yaml b/deployments/bitwarden/bitwarden-deployment.yaml new file mode 100644 index 0000000..01004ce --- /dev/null +++ b/deployments/bitwarden/bitwarden-deployment.yaml @@ -0,0 +1,59 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: bitwarden + namespace: security + labels: + app: bitwarden +spec: + replicas: 1 + selector: + matchLabels: + app: bitwarden + template: + metadata: + labels: + app: bitwarden + spec: + containers: + - name: bitwarden + image: bitwarden/server:latest + ports: + - containerPort: 80 + env: + - name: SIGNUPS_ALLOWED + value: "true" + - name: WEBVAULT_ENABLED + value: "true" + - name: IDENTITY_URL + value: "https://bitwarden.khalisio.com" + - name: API_URL + value: "https://bitwarden.khalisio.com" + - name: DATABASE_URL + value: "/bitwarden/data/bitwarden.db" + resources: + requests: + cpu: 100m + memory: 256Mi + limits: + cpu: 500m + memory: 512Mi + volumeMounts: + - name: bitwarden-data + mountPath: /bitwarden + readinessProbe: + httpGet: + path: /healthz + port: 80 + initialDelaySeconds: 15 + periodSeconds: 10 + livenessProbe: + httpGet: + path: /healthz + port: 80 + initialDelaySeconds: 30 + periodSeconds: 30 + volumes: + - name: bitwarden-data + persistentVolumeClaim: + claimName: bitwarden-data