I install jenkins-x to my kubernetes cluster,but open the jenkins url must input username and password??
what's the username and password?
At the end of jx create cluster or jx install in the terminal output you should see the admin password printed.
If you have lost that you can also check your local ~/.jx/jenkinsAuth.yaml file which contains the password too.
jx install was faild ,but the jx pod is running in my kubernetes cluster.
Thank you for your help , I find the password in this path /root/.jx/adminSecrets.yaml.
Thank you
OK - BTW why did the install fail? If it did not complete successfully you may run into issues.
jx install --provider=kubernetes --skip-ingress
The error information
Cloning the Jenkins X cloud environments repo to /root/.jx/cloud-environments
Counting objects: 397, done.
Compressing objects: 100% (4/4), done.
Total 397 (delta 0), reused 2 (delta 0), pack-reused 393
Generated helm values /root/.jx/extraValues.yaml
helm repo add jenkins-x https://chartmuseum.build.cd.jenkins-x.io
"jenkins-x" has been added to your repositories
rm -rf secrets.yaml.dec
helm repo add jenkins-x https://chartmuseum.build.cd.jenkins-x.io
"jenkins-x" has been added to your repositories
helm repo update
Hang tight while we grab the latest from your chart repositories...
...Skip local chart repository
...Successfully got an update from the "stable" chart repository
...Successfully got an update from the "jenkins-x" chart repository
Update Complete. ⎈ Happy Helming!⎈
helm install jenkins-x/jenkins-x-platform --name jenkins-x -f ./myvalues.yaml -f ./secrets.yaml --version 0.0.507 --values=/root/.jx/gitSecrets.yaml --values=/root/.jx/adminSecrets.yaml --values=/root/.jx/extraValues.yaml --namespace=jx --timeout=6000
Error: Job failed: BackoffLimitExceeded
make: * [install] Error 1
Error: Command failed make ARGS=--values=/root/.jx/gitSecrets.yaml --values=/root/.jx/adminSecrets.yaml --values=/root/.jx/extraValues.yaml --namespace=jx --timeout=6000 install
error: exit status 2
@Jacky2 ah were you on premise maybe? Things normally download pretty snappily on the cloud.
BTW you can specify the admin password on the CLI via --default-admin-password
http://jenkins-x.io/commands/jx_install/
Ok thanks - looks like the exposecontroller job failed to create ingress rules but I'm guessing because you disabled the nginx controller with the --skip-ingress flag you're planning on using NodePorts or Loadbalancer types?
@jstrachan oh, Thank you very mach. I dont know this parameter before you tell me
@rawlingsj because I have nginx-ingress-controller in my kubernetes cluster, I want use this ingress . so I use --skip-ingress and after jenkins-x install success I will config jenkins service into the nginx-ingress-controller
Ok FWIW I think if you had provided the --domain flag to jx install then the exposecontroller job would have created the ingress rules for you that use your ingress controller.
For example:
jx install --skip-ingress --domain my.hostname.io
Oh, thank you. But jenkins-x has multiple services. Do I want to set up different domains for every service?
You can use one single domain that has wildcard dns setup. Then exposecontroller will generate a hostname for each application / service using the app name, namespace and then your domain.
e.g.
https://jenkins.jx.my.hostname.io
https://my-application.jx-staging.my.hostname.io
Oh, Thanks. I'll try it.
@rawlingsj @jstrachan
I want to collect this topic into jx docs as a section named 'Jenkins'. Many people must already faced the same issues.
https://jenkins-x.io/troubleshooting/
Good idea - FAQ updated https://jenkins-x.io/troubleshooting/faq/
I suggest we organ into serval sections, like:
https://jenkins-x.io/zh/troubleshooting/
Or the faq page perhaps has too much content.
Sounds good - fancy popping a suggestion in as a Pull Request? The FAQ page can be found here https://github.com/jenkins-x/jx-docs/blob/master/content/troubleshooting/faq.md
I already create a PR and merge into master. But it's a Chinese version.
I have installed jenkins-x and it generated a password as well, but when i am login in to jenkins using admin and a password generated it fails with incorrect password.
i have verified the password at jenkinsAuth.yaml file which is same.
I have noticed when I get jx installed in one machine, with gke etc, for first time, everything seems ok, then when I try to setup jx in another machine but still using the same gloud, kubernetes etc, the Jenkins password is changed, I got a new one and I'm not able to login at more, with the previous one or new one, even getting the password from files mentioned above, still not working anymore, seems the password has been ruined for some reason.
This is happening all the time when I tried to setup jx in a new machine based on a existing setup mande before, any suggestion?
btw, I do use jx install in the second machine.
Most helpful comment
At the end of
jx create clusterorjx installin the terminal output you should see the admin password printed.If you have lost that you can also check your local
~/.jx/jenkinsAuth.yamlfile which contains the password too.