OpenShift CRC: Customize admin password

1 min read | by Jordi Prats

When setting up a CRC cluster we might want to be able to set a specific admin password instead of having to retrieve it using crc console.

Using crc config we can set it if the haven't started it yet. First, we'll have to set the admin password for the OpenShift instance using crc config set kubeadmin-password:

$ crc config set kubeadmin-password mypassword

Once this password is set, we can now proceed starting the instance using crc start:

$ crc start
INFO Adding crc-admin and crc-developer contexts to kubeconfig...
Started the OpenShift cluster.

The server is accessible via web console at:

Log in as administrator:
  Username: kubeadmin
  Password: mypassword

After starting the minikube-like OpenShift cluster, we'll be able to see the connection details with the password we have defined instead of the random password that would set by default.

Posted on 30/08/2022