Hi all
I am trying to use jenkins and kubernetes plugin. I deployed a kubernetes
cluster in AWS using kubeadm and I installed jenkins on a EC2 VM.
I configured the plugin such that its using Kubernetes server certificate
key to connect
I am trying to initiate the deployment of pods in the kubernetes clusters
using pipelines in jenkins.
However I keep getting an agent time out
Any help?
Feb 06, 2020 1:32:59 AM WARNING
org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Error in provisioning; agent=KubernetesSlave name: mypod-j3d11-nwjvt,
template=PodTemplate{, name='mypod-j3d11', label='mypod',
nodeUsageMode=EXCLUSIVE, workspaceVolume=EmptyDirWorkspaceVolume
[memory=false], containers=[ContainerTemplate{name='golang',
image='golang:1.8.0', command='cat', ttyEnabled=true}],
annotations=[org.csanchez.jenkins.plugins.kubernetes.PodAnnotation@aab9c821]}
java.lang.IllegalStateException: Containers are terminated with exit codes:
{jnlp=255}
at
org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher.checkTerminatedContainers(KubernetesLauncher.java:224)
at
org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher.launch(KubernetesLauncher.java:181)
at hudson.slaves.SlaveComputer.lambda$_connect$0(SlaveComputer.java:292)
at
jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
at
jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
this is my template below which I am using in my pipeline
podTemplate(cloud: 'kubernetes', label: 'mypod',containers: [
containerTemplate(name: 'golang', image: 'golang:1.8.0', ttyEnabled: true,
command: 'cat')
]) {
node('mypod') {
stage('Get a Golang project') {
git url: 'https://github.com/hashicorp/terraform.git'
container('golang') {
stage('Build a Go project') {
sh 'echo hello world'
}
}
}
}
}
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/3c000217-f6ef-44bf-976e-a05156570db3%40googlegroups.com.