-
Bug
-
Resolution: Not A Defect
-
Critical
-
None
-
kubernetes 1.51, coreos, kubernetes plugin 0.10
plugin 0.10... I have a kubernetes pod template configured with a different slave image than the default JNLP slave template. For some reason when I look at pods for my slave nodes I now see both the jenkinsci/jnlp-slave:alpine container and my intended container:
jenkins-docker-dood-slave
Image:
pswenson/jenkins-docker-dood-slave:2.0
This causes big problems as the jobs almost always go to the JNLP slave instead of the jenkins-docker-dood-slave and this causes a job failure (my custom slave image runs docker commands and uses a shared docker socket)
The old 0.8 version didn't have this problem, however that version doesn't appear to work with kube 1.51.
I'm going to look at the source code of the plugin and see if I can figure out what's going on. Any suggestions would be greatly appreciated.
- is duplicated by
-
JENKINS-41109 Kubernetes plugin defaults to wrong container
-
- Resolved
-
-
JENKINS-41106 Jenkins build fails with java.io.IOException: Failed to mkdirs: sometimes, not always
-
- Resolved
-
- is related to
-
JENKINS-41137 Missing openssh-client in alpine images
-
- Closed
-
-
JENKINS-41109 Kubernetes plugin defaults to wrong container
-
- Resolved
-
-
JENKINS-49511 Connection fails between agent and master
-
- Closed
-
- relates to
-
JENKINS-41040 ssh fails to run after upgrade to 0.10
-
- Closed
-
We had the same problem;
either name your container 'jnlp' as a hack,
or do a container step
relevent code:
https://github.com/jenkinsci/kubernetes-plugin/blob/master/src/main/java/org/csanchez/jenkins/plugins/kubernetes/KubernetesCloud.java