Home > Enterprise >  Jenkins plugin Kubernetes Credential Provider issue
Jenkins plugin Kubernetes Credential Provider issue

Time:11-18

I have been trying to fix the error on the Manage Jenkins section -

Credentials from Kubernetes Secrets will not be available.See the log for more details.enter image description here

I see the following error below when I click on See the log for more details -

java.net.UnknownHostException: kubernetes.default.svc: Name or service not known

and Jenkins system logs says enter image description here

Jenkins version: 2.368 Kubernetes Credentials Provider Plugin version: 1.206.v7ce2cf7b_0c8b

Any pointers to fix the same would be really great, thanks

CodePudding user response:

This error java.net.UnknownHostException: kubernetes.default.svc: Name or service not known is caused by installing the Jenkins plug-in (Kubernetes Credentials Provider) and not using it. You need to close or uninstall the plug-in and this message will not appear. if you need to connect Kubernetes via Jenkins, install the Kubernetes plugin

Credentials will be added and updated by adding/updating them as secrets to Kubernetes. The format of the Secret is different depending on the type of credential you wish to expose, but will all have several things in common. Find these examples.

  • Related