Install Vaultwarden on OKD4x
Jump to navigation
Jump to search
oc new-project vaultwarden oc create serviceaccount anyuid oc adm policy add-scc-to-user anyuid -z anyuid read -p "ADMIN_PASSWORD: " ADMIN_PASSWORD ADMIN_TOKEN="$(echo -n $ADMIN_PASSWORD | argon2 "$(openssl rand -base64 32)" -e -id -k 65540 -t 3 -p 4 | sed 's#\$#\$\$#g')" echo ADMIN_TOKEN=$ADMIN_TOKEN oc new-app --image=vaultwarden/server:latest --name vaultwarden ADMIN_TOKEN=$ADMIN_TOKEN oc patch deployment/vaultwarden --patch '{"spec":{"template":{"spec":{"serviceAccountName": "anyuid"}}}}' oc set volume deployment/vaultwarden --remove --mount-path=/data --confirm oc set volume deployment/vaultwarden --add --name=data --mount-path=/data -t pvc --claim-size=5G --claim-mode=ReadWriteOnce oc set volume deployment --all oc create route edge vaultwarden --service=vaultwarden --port=80 --hostname=vault.mydomain.tld