Hi All, I am kind of new here. I have couple of qu...
# all-things-deployment
s
Hi All, I am kind of new here. I have couple of questions. Please how do I change default login (datahub) and password (datahub) when deploying using helm to kubernetes?
b
Unless you've created a user called datahub in OIDC, you login via the /logIn page for datahub. The password for datahub user login can be changed by modifying a file called user.props in datahub-frontend-react container. Basically you override the file in the container using a volume from a secret. https://datahubspace.slack.com/archives/CV2UVAPPG/p1636450948110500?thread_ts=1636450148.109600&cid=CV2UVAPPG
s
@better-orange-49102 @square-activity-64562 Thank you. I will try it
@square-activity-64562 I modified values.yaml with the values you provided and my deployment failed with
Copy code
Error: INSTALLATION FAILED: failed pre-install: timed out waiting for the condition
run
kubectl get pods
I got it to work. However, the secret I created did not work. I can't login
I realised that the default content of user.props is
datahub:datahub
I guess is username:password. How using extraVolume and extraVolumeMounts would replace user.props with key:value as default?
b
i'm not familiar with helm specific commands. however, the idea of overriding user.props with a secret/configmap is similar to https://stackoverflow.com/questions/65080224/how-to-overwrite-file-in-pods-container-in-kubernetes-deployment-file you're right that datahub:datahub is the login:password
s
Thanks @better-orange-49102 I got it working