aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/vaultwarden/vaultwarden-deployment.yaml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--kubernetes/vaultwarden/vaultwarden-deployment.yaml43
1 files changed, 43 insertions, 0 deletions
diff --git a/kubernetes/vaultwarden/vaultwarden-deployment.yaml b/kubernetes/vaultwarden/vaultwarden-deployment.yaml
new file mode 100644
index 0000000..6e00e50
--- /dev/null
+++ b/kubernetes/vaultwarden/vaultwarden-deployment.yaml
@@ -0,0 +1,43 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: vaultwarden
+ labels:
+ app: vaultwarden
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: vaultwarden
+ template:
+ metadata:
+ labels:
+ app: vaultwarden
+ spec:
+ containers:
+ - name: vaultwarden
+ image: vaultwarden/server:1.23.1
+ ports:
+ - containerPort: 80
+ volumeMounts:
+ - name: vaultwarden-data
+ mountPath: /data/
+ volumes:
+ - name: vaultwarden-data
+ persistentVolumeClaim:
+ claimName: vaultwarden-data
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: vaultwarden-service
+spec:
+ selector:
+ app: vaultwarden
+ type: LoadBalancer
+ ports:
+ - protocol: TCP
+ name: "vaultwarden-80"
+ port: 27080
+ targetPort: 80
+ nodePort: 31180