35 lines
667 B
YAML
35 lines
667 B
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: app
|
|
namespace: vaultwarden
|
|
labels:
|
|
app: vw
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: vw
|
|
template:
|
|
metadata:
|
|
annotations: {}
|
|
labels:
|
|
app: vw
|
|
spec:
|
|
nodeSelector:
|
|
kubernetes.io/hostname: tencent-gz1
|
|
containers:
|
|
- name: app
|
|
image: vaultwarden/server:1.32.5
|
|
ports:
|
|
- containerPort: 80
|
|
name: web
|
|
volumeMounts:
|
|
- name: vw-data
|
|
mountPath: /data
|
|
volumes:
|
|
- name: vw-data
|
|
persistentVolumeClaim:
|
|
claimName: vw-tgz1-pvc
|
|
|