Resetting KOTS Admin Password

kots

#1

If I lose the auto-generated KOTS admin password for the embedded install or forgot what I set it for existing install, how do I go about resetting these?


#2

The admin password is stored as a bcrypt value so once set it cannot be read back, the only way to recover is to reset it.

Existing Install

kubectl kots reset-password -n <namespace>

Embedded Install

  • Delete secrets

    kubectl delete secret kotsadm-password
    kubectl delete secret kotsadm-tls <-- Need to delete for Reinstall to work properly

  • Reinstall KOTS via Kurl.sh

    curl -sSL https://kurl.sh/<app_or_hash> | sudo bash

Note: Once kots cli is available for embedded clusters you can reset-password via cli.