60 lines
1.5 KiB
YAML
60 lines
1.5 KiB
YAML
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
|