Prov of pod template failing with "Service account may have been revoked"

7 views
Skip to first unread message

pbasan...@gmail.com

unread,
Jan 22, 2019, 3:48:07 AM1/22/19
to Jenkins Users
Hi ,
My Jenkins is running on a pod and is configured to K8S.
when tried to run a  job .. Provision of the pod template failing with below error ..
===============

Waiting for agent to connect (99/100): k8s-pod-vfzmj
Jan 22, 2019 8:30:30 AM WARNING org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Error in provisioning; agent=KubernetesSlave name: k8s-pod-vfzmj, template=PodTemplate{inheritFrom='', name='K8S_POD', namespace='default', idleMinutes=3, label='K8S_LAB', nodeSelector='', nodeUsageMode=EXCLUSIVE, workspaceVolume=EmptyDirWorkspaceVolume [memory=false], containers=[ContainerTemplate{name='jnlp', image='oraclelinuxjdk-jenkins-slave:14.0', privileged=true, workingDir='/scratch/syseng', command='', args='', resourceRequestCpu='', resourceRequestMemory='', resourceLimitCpu='', resourceLimitMemory='', livenessProbe=org.csanchez.jenkins.plugins.kubernetes.ContainerLivenessProbe@641217ec}], yaml=}
io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://10.250.85.114:6443/api/v1/namespaces/default/pods/k8s-pod-vfzmj/log?pretty=false&container=jnlp&tailLines=30. Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked. pods "k8s-pod-vfzmj" is forbidden: User "slc11yke_k8s_user" cannot get pods/log in the namespace "default".
	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure(OperationSupport.java:478)
==============
Any help would be great help..
Regards,
Basanta

Carlos Sanchez

unread,
Jan 22, 2019, 4:41:02 AM1/22/19
to jenkins...@googlegroups.com
User "slc11yke_k8s_user" cannot get pods/log in the namespace "default".

--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/19217962-a508-4ede-85d5-e74d5eeeebb7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages