K3s-cluster/vaultwarden/deployment.yaml

36 lines
976 B
YAML
Raw Normal View History

2022-06-24 18:43:24 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: vaultwarden
namespace: vaultwarden
spec:
replicas: 1
selector:
matchLabels:
app: vaultwarden
template:
metadata:
labels:
app: vaultwarden
spec:
2022-09-10 01:44:23 +00:00
hostname: vaultwarden
subdomain: vaultwarden
2022-06-24 18:43:24 +00:00
containers:
- name: vaultwarden
image: vaultwarden/server
ports:
- containerPort: 80
env:
- name: SIGNUPS_ALLOWED
value: "true"
- name: DATABASE_URL
value: "mysql://root:example@127.0.0.1:3306/vaultwarden"
- name: mariadb
image: mariadb
env:
- name: MARIADB_ROOT_PASSWORD
value: "example"
- name: MARIADB_DATABASE
value: "vaultwarden"