Hi Team,
I am unable to create jenkins agent in k8s cluster. I am able to connect cluster (test connection is sucessfull) but not able to see the pod in cluster level.
Kubernetes pluginVersion3952.v88e3b_0cf300b_
Jenkins version : 2.401.1
k8s version : 1.23.15
rancher version : 2.6.9
In jenkins dashboard i can see pod name jenkins-3456 (launching and suspended )
I could find below logs in Jenkins master. Can som one please assist me to fix this issue.
####################
2023-07-01 13:09:18
2023-07-01 07:39:17.997+0000 [id=322596] WARNING o.c.j.p.k.KubernetesLauncher#launch: Kubernetes returned unhandled HTTP code -1 null
2023-07-01 13:09:18
2023-07-01 07:39:17.997+0000 [id=322596] WARNING o.c.j.p.k.KubernetesLauncher#launch: Error in provisioning; agent=KubernetesSlave name: jenkinsarjun-q1f09, template=PodTemplate{id=‘eead99eb-616a-400f-a4f7-803597e52b45’, name=‘jenkinsarjun’, label=‘jnlpslave’, containers=[ContainerTemplate{name=‘jnlp’, image=‘bcr-d01.inside.XXXX.cloud/ti3fe/jenkins-agent:latest’, workingDir=‘/home/jenkins’, command=‘’, args=‘’, resourceRequestCpu=‘’, resourceRequestMemory=‘’, resourceRequestEphemeralStorage=‘’, resourceLimitCpu=‘’, resourceLimitMemory=‘’, resourceLimitEphemeralStorage=‘’, envVars=[KeyValueEnvVar [getValue()=https://rb-jmaas.xxxxxxxx.com/Ram-dev:8080, getKey()=JENKINS_URL]], livenessProbe=ContainerLivenessProbe{execArgs=‘’, timeoutSeconds=0, initialDelaySeconds=0, failureThreshold=0, periodSeconds=0, successThreshold=0}}]}
2023-07-01 13:09:18
java.net.SocketTimeoutException: timeout
2023-07-01 13:09:18
at okhttp3.internal.http2.Http2Stream$StreamTimeout.newTimeoutException(Http2Stream.kt:675)
2023-07-01 13:09:18
at okhttp3.internal.http2.Http2Stream$StreamTimeout.exitAndThrowIfTimedOut(Http2Stream.kt:684)
2023-07-01 13:09:18
at okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.kt:143)
2023-07-01 13:09:18
at okhttp3.internal.http2.Http2ExchangeCodec.readResponseHeaders(Http2ExchangeCodec.kt:97)
2023-07-01 13:09:18
at okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:110)
2023-07-01 13:09:18
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:93)
2023-07-01 13:09:18
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2023-07-01 13:09:18
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34)
2023-07-01 13:09:18
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2023-07-01 13:09:18
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
2023-07-01 13:09:18
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2023-07-01 13:09:18
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
2023-07-01 13:09:18
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2023-07-01 13:09:18
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
2023-07-01 13:09:18
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2023-07-01 13:09:18
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
2023-07-01 13:09:18
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517)
2023-07-01 13:09:18
Caused: java.io.IOException: timeout
2023-07-01 13:09:18
at io.fabric8.kubernetes.client.dsl.internal.OperationSupport.waitForResult(OperationSupport.java:535)
2023-07-01 13:09:18
at io.fabric8.kubernetes.client.dsl.internal.OperationSupport.handleResponse(OperationSupport.java:558)
2023-07-01 13:09:18
at io.fabric8.kubernetes.client.dsl.internal.OperationSupport.handleCreate(OperationSupport.java:349)
2023-07-01 13:09:18
at io.fabric8.kubernetes.client.dsl.internal.BaseOperation.handleCreate(BaseOperation.java:711)
2023-07-01 13:09:18
at io.fabric8.kubernetes.client.dsl.internal.BaseOperation.handleCreate(BaseOperation.java:93)
2023-07-01 13:09:18
at io.fabric8.kubernetes.client.dsl.internal.CreateOnlyResourceOperation.create(CreateOnlyResourceOperation.java:42)
2023-07-01 13:09:18
Caused: io.fabric8.kubernetes.client.KubernetesClientException: An error has occurred.
2023-07-01 13:09:18
at io.fabric8.kubernetes.client.KubernetesClientException.launderThrowable(KubernetesClientException.java:129)
2023-07-01 13:09:18
at io.fabric8.kubernetes.client.KubernetesClientException.launderThrowable(KubernetesClientException.java:122)
2023-07-01 13:09:18
at io.fabric8.kubernetes.client.dsl.internal.CreateOnlyResourceOperation.create(CreateOnlyResourceOperation.java:44)
2023-07-01 13:09:18
at org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher.launch(KubernetesLauncher.java:133)
2023-07-01 13:09:18
at hudson.slaves.SlaveComputer.lambda$_connect$0(SlaveComputer.java:298)
2023-07-01 13:09:18
at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
2023-07-01 13:09:18
at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:80)
2023-07-01 13:09:18
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
2023-07-01 13:09:18
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
2023-07-01 13:09:18
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
2023-07-01 13:09:18
at java.base/java.lang.Thread.run(Thread.java:829)
2023-07-01 13:09:18
2023-07-01 07:39:17.998+0000 [id=322596] INFO o.c.j.p.k.KubernetesSlave#_terminate: Terminating Kubernetes instance for agent jenkinsarjun-q1f09
2023-07-01 13:09:18
2023-07-01 07:39:18.070+0000 [id=322596] WARNING o.c.j.p.k.KubernetesSlave#_terminate: Agent pod jenkinsarjun-q1f09 was not deleted due to retention policy Default.
2023-07-01 13:09:18
2023-07-01 07:39:18.070+0000 [id=322596] INFO o.c.j.p.k.KubernetesSlave#_terminate: Disconnected computer jenkinsarjun-q1f09