Retrieve the MarkLogic admin credentials
- Last Updated: April 14, 2026
- 1 minute read
- MarkLogic Server
- Documentation
If credentials were not provided for the admin user when installing the MarkLogic Chart, a randomly generated alphanumeric value was used. This value is stored in Kubernetes Secrets.
Note:
Custom admin credentials can also be set using the auth parameter during installation.
To retrieve the randomly generated admin credentials from Kubernetes Secrets:
-
List the secrets for a MarkLogic deployment by entering this command:
kubectl get secrets -n <release-namespace> -
Find the appropriate secret. The secret generated by the Helm Chart has the format
<release-name>-admin. For example, ifrelease-name=marklogic, the secret that contains the admin username, password, and wallet password ismarklogic-admin. -
Retrieve the encoded credentials by entering this command:
kubectl get secret marklogic-admin -n <release-namespace> SECRET_NAME -o jsonpath='{.data}' -
Use the output to decode the credentials. For example, if the encoded password is
UyFCXCpkJHpEc2I9, enter this command to decode the password:echo 'UyFCXCpkJHpEc2I9' | base64 --decode -
Repeat the process described in step 4 for the username and wallet password.