Create an administrator user from the command line

hello and thanks for the answer, but this does not answer my question, if i want to login with the REST API in a new instance, i need to create an user before, dont i? my problem is that i have to create an user and then connect and there is no way to create an user before having an user.

a workaround is to create an user and then backup, create the image and restore the db at each time the image is called (in the master node ) but this is not advice because k8s might restore your db if it restart the pod