diff options
author | terminaldweller <thabogre@gmail.com> | 2022-01-06 07:14:16 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-01-06 07:14:16 +0000 |
commit | e4f20fe9c17bb9802560121fe96234df31022636 (patch) | |
tree | 5b5b2db03d807a39887f851dbabc45339ce3a3d2 /kubernetes/vaultwarden/vaultwarden-deployment.yaml | |
parent | fix (diff) | |
download | scripts-e4f20fe9c17bb9802560121fe96234df31022636.tar.gz scripts-e4f20fe9c17bb9802560121fe96234df31022636.zip |
added vaultwarden
Diffstat (limited to 'kubernetes/vaultwarden/vaultwarden-deployment.yaml')
-rw-r--r-- | kubernetes/vaultwarden/vaultwarden-deployment.yaml | 43 |
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 |