<p>I have been trying to fix the error on the Manage Jenkins section -</p>
<p>Credentials from Kubernetes Secrets will not be available.See the log for more details.<a href="https://i.stack.imgur.com/DVBS6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DVBS6.png" alt="enter image description here" /></a></p>
<p>I see the following error below when I click on <em><strong>See the log for more details</strong></em> -</p>
<pre><code>java.net.UnknownHostException: kubernetes.default.svc: Name or service not known
</code></pre>
<p>and Jenkins system logs says
<a href="https://i.stack.imgur.com/6EBCO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6EBCO.png" alt="enter image description here" /></a></p>
<p>Jenkins version: 2.368
Kubernetes Credentials Provider Plugin version: 1.206.v7ce2cf7b_0c8b</p>
<p>Any pointers to fix the same would be really great, thanks</p>

Avi
<p>This error <a href="https://aws.plainenglish.io/jenkins-failed-to-initialize-kubernetes-secret-provider-fe87a240477" rel="nofollow noreferrer"><strong>java.net.UnknownHostException: kubernetes.default.svc: Name or service not known</strong></a> 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 <a href="https://plugins.jenkins.io/kubernetes/" rel="nofollow noreferrer">Kubernetes plugin</a></p>
<p>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 <a href="https://jenkinsci.github.io/kubernetes-credentials-provider-plugin/examples/" rel="nofollow noreferrer">examples</a>.</p>
