kubernetes-cd-plugin icon indicating copy to clipboard operation
kubernetes-cd-plugin copied to clipboard

UnKnownHostException in Jenkins and job failed at kuberneted deployment stage

Open AnilKumarP003 opened this issue 4 years ago • 1 comments

I am getting below error in Jenkins while deploying to kubernetes cluster:

ERROR: ERROR: java.lang.RuntimeException: io.kubernetes.client.openapi.ApiException: java.net.UnknownHostException: **.azmk8s.io: Name or service not known hudson.remoting.ProxyException: java.lang.RuntimeException: io.kubernetes.client.openapi.ApiException: java.net.UnknownHostException:

Tried to deploy with below jenkins pipeline snippet:

kubernetesDeploy( configs: 'deploymentFile.yaml', kubeconfigId: 'Kubeconfig', enableConfigSubstitution: true ) Please suggest

AnilKumarP003 avatar Jun 18 '20 10:06 AnilKumarP003

similar problem here. Can you shared what worked for you at the time?

sofiabobadilla avatar Sep 02 '22 14:09 sofiabobadilla