Closed hasakura12 closed 3 years ago
Have you tried using the Kubernetes internal service DNS names? Jenkins URL should be http://jenkins.<namespace>.svc.cluster.local:8080
and the tunnel should be jenkins.<namespace>.svc.cluster.local:50000
Example working configuration:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.
This issue is being automatically closed due to inactivity.
Describe the bug Jenkins master pod deployed successfully. But when I trigger Jenkins job and jenkins slave pod gets created, jnlp container errors out "port:50000 is not reachable". This is probably due to Jenkins Kubernetes plugin config, which can also be set from values.yaml for
agent.*
andcontroller.agent*
configs (https://github.com/jenkinsci/helm-charts/blob/main/charts/jenkins/README.md#to-300) I assume.Version of Helm and Kubernetes:
Helm Version:
Which version of the chart: Chart version is 3.1.2.
What happened:
Jenkins helm chart deployed to AWS EKS K8s worker nodes.
Jenkins master and slave used to work until I needed to re-deploy Jenkins pod after the underlying EC2 needed to be restarted to fix vulnerabilities of linux packages.
Install Jenkins helm chart with below overrides.yaml
Followed the kubernetes plugin doc to setup Cloud config: https://github.com/jenkinsci/kubernetes-plugin
As in the screenshot, connection to Jenkins is successful using "Test Connection" button as Jenkins pod is within AWS EKS cluster.
When I trigger Jenkins job, slave pod terminates.
Here are logs:
Verified the endpoint
/tcpSlaveAgentListener
from a curl pod in jenkins namespaceHowever, the private endpoint (with AWS VPN)
/tcpSlaveAgentListener
used to work but it doesn't now, not sure if this is related to the error "provided port:50000 is not reachable"I've tried setting JENKINS_URL=http://jenkins:8080, to no avail.
When I set JENKINS_TUNNEL=jenkins:50000, then jenkins slave pod hangs
I've looked through and tried these:
https://stackoverflow.com/questions/44180595/tcpslaveagentlistener-not-found-on-jenkins-server - https://stackoverflow.com/questions/58719522/tcpslaveagentlistener-is-invalid-404-not-found https://github.com/jenkinsci/docker/issues/788 https://programmer.ink/think/installing-jenkins-on-k8s-and-common-problems.html - https://issues.jenkins.io/browse/JENKINS-63832
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know: