Have anyone tried of setting admin password via helm chart ?
I tried below seems like not working .
helm install my-nexus sonatype/nexus --set nexus.security.adminPassword=myDesiredPassword
Have anyone tried of setting admin password via helm chart ?
I tried below seems like not working .
helm install my-nexus sonatype/nexus --set nexus.security.adminPassword=myDesiredPassword
Where did you find this property? Checking our source I don’t see this particular property.
You should be able to use an environment variable NEXUS_SECURITY_INITIAL_PASSWORD
containing the password which will only work for the first time Nexus is started.
I did add env variable “NEXUS_SECURITY_INITIAL_PASSWORD” in helm values.yaml . This is not working for me. Appreciate your response . Thanks
nexus:
env:
- name: NEXUS_SECURITY_INITIAL_PASSWORD
value: "#####"
Hello Richard,
Could you also try adding the following in conjunction with the above:
- name: NEXUS_SECURITY_RANDOMPASSWORD
value: "false"
Alternatively, try the following:
helm install my-nexus sonatype/nexus \
--set secret.nexusAdminSecret.enabled=true \
--set secret.nexusAdminSecret.adminPassword=myDesiredPassword
Hi @laurencet , Thanks much .
But either of your solutions are not working for setting up admin pwd while bootstrapping nexus oss instance.
I believe secret.nexus* only works incase of nxrm-ha .