Bitwarden 密码管理器私库安装和使用
Bitwarden 密码管理器私库安装和使用
拉取镜像并且启动容器
docker pull vaultwarden/server:latest
docker run -d --name vaultwarden -v /vw-data/:/data/ --restart unless-stopped -p 80:80 vaultwarden/server:latest
K8S使用yaml文件安装
kind: Namespace
apiVersion: v1
metadata:
name: simple
labels:
kubernetes.io/metadata.name: simple
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: vaultwarden
namespace: simple
labels:
name: vaultwarden
spec:
replicas: 1
selector:
matchLabels:
name: vaultwarden
template:
metadata:
labels:
name: vaultwarden
spec:
volumes:
- name: data
nfs:
server: <NFS Server IP>
path: <NFS Server Path>
containers:
- name: vaultwarden
image: vaultwarden/server:latest
ports:
- containerPort: 80
protocol: TCP
- containerPort: 443
protocol: TCP
resources: {}
volumeMounts:
- name: data
mountPath: /data
subPath: vaultwarden
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: IfNotPresent
securityContext:
capabilities: {}
seLinuxOptions: {}
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
securityContext:
seLinuxOptions: {}
affinity: {}
schedulerName: default-scheduler
dnsConfig: {}
---
apiVersion: v1
kind: Service
metadata:
name: vaultwarden
namespace: simple
spec:
externalTrafficPolicy: Cluster
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
ipFamilyPolicy: SingleStack
ports:
- nodePort: 30000
port: 80
protocol: TCP
targetPort: 80
selector:
name: vaultwarden
sessionAffinity: None
type: NodePort