[JIRA] (JENKINS-55788) Error when configuring Kubernetes Plugin v1.14.3

3 views
Skip to first unread message

mdpgd95@gmail.com (JIRA)

unread,
Jan 25, 2019, 5:53:03 PM1/25/19
to jenkinsc...@googlegroups.com
Michael Douglas Pacheco Gonçalves Dias created an issue
 
Jenkins / Bug JENKINS-55788
Error when configuring Kubernetes Plugin v1.14.3
Issue Type: Bug Bug
Assignee: Michael Douglas Pacheco Gonçalves Dias
Attachments: 1.png
Components: kubernetes-plugin
Created: 2019-01-25 22:52
Environment: Jenkins version: 2.161
Kubernetes-plugin version: 1.14.3
OS: Linux mint 19.1 (Tessa)
Labels: kubernetes-plugin kubernetes minikube
Priority: Blocker Blocker
Reporter: Michael Douglas Pacheco Gonçalves Dias

I'm following the steps in this article to setup Jenkins on top of my Kubernetes (minikube) cluster. When I ask to Kubernetes plugin to test the connection with my cluster this message appears:

Error testing connection https://192.168.99.113:8443: Failure executing: GET at: https://192.168.99.113:8443/api/v1/namespaces/default/pods. Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked. pods is forbidden: User "system:serviceaccount:default:default" cannot list resource "pods" in API group "" in the namespace "default".

{{}}
 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

ravisharma134@gmail.com (JIRA)

unread,
Jan 30, 2019, 11:00:01 AM1/30/19
to jenkinsc...@googlegroups.com
Ravi Sharma commented on Bug JENKINS-55788
 
Re: Error when configuring Kubernetes Plugin v1.14.3

I am also facing the same issue. My jenkins master runs on K8s and trying the agent provisioning on same cluster and namespace.

liyatikal@java.net (JIRA)

unread,
Jun 27, 2019, 5:48:02 AM6/27/19
to jenkinsc...@googlegroups.com

You need to create a role for cluster-admin for your user:

kubectl create clusterrolebinding permissive-binding --clusterrole=cluster-admin --user=admin --user=kubelet --group=system:serviceaccounts
Reply all
Reply to author
Forward
0 new messages