diff --git a/vaultwarden/resources/deployment.yaml b/vaultwarden/resources/deployment.yaml index eed9856..0a6b309 100644 --- a/vaultwarden/resources/deployment.yaml +++ b/vaultwarden/resources/deployment.yaml @@ -4,6 +4,7 @@ kind: Deployment metadata: name: vaultwarden spec: + replicas: 0 selector: matchLabels: app.kubernetes.io/name: vaultwarden @@ -15,32 +16,32 @@ spec: app.kubernetes.io/part-of: vaultwarden spec: containers: - - name: vaultwarden - image: vaultwarden - envFrom: - - secretRef: - name: vaultwarden-api-config - env: - - name: DATABASE_URL - valueFrom: - secretKeyRef: - name: vaultwarden-db-credentials-vaultwarden - key: PQ_URL - resources: - limits: - memory: "128Mi" - cpu: "500m" - ports: - - containerPort: 8080 - volumeMounts: - - name: data - mountPath: /data - securityContext: - allowPrivilegeEscalation: false - readOnlyRootFilesystem: true - capabilities: - drop: - - ALL + - name: vaultwarden + image: vaultwarden + envFrom: + - secretRef: + name: vaultwarden-api-config + env: + - name: DATABASE_URL + valueFrom: + secretKeyRef: + name: vaultwarden-db-credentials-vaultwarden + key: PQ_URL + resources: + limits: + memory: "128Mi" + cpu: "500m" + ports: + - containerPort: 8080 + volumeMounts: + - name: data + mountPath: /data + securityContext: + allowPrivilegeEscalation: false + readOnlyRootFilesystem: true + capabilities: + drop: + - ALL affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: diff --git a/vaultwarden/resources/pvc.yaml b/vaultwarden/resources/pvc.yaml index d09fc3b..f0e6b3f 100644 --- a/vaultwarden/resources/pvc.yaml +++ b/vaultwarden/resources/pvc.yaml @@ -4,7 +4,7 @@ kind: PersistentVolumeClaim metadata: name: vaultwarden-data spec: - storageClassName: garage + storageClassName: hcloud-blob resources: requests: storage: 5Gi