Difference between revisions of "Install Vaultwarden on OKD4x"
Jump to navigation
Jump to search
(Created page with "* https://github.com/dani-garcia/vaultwarden/wiki/ <pre> oc new-project vaultwarden oc create serviceaccount anyuid oc adm policy add-scc-to-user anyuid -z anyuid read -p "A...") |
(No difference)
|
Latest revision as of 12:47, 8 November 2023
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