jenkinsci / kubernetes-cd-plugin

A Jenkins plugin to deploy to Kubernetes cluster
MIT License
140 stars 72 forks source link

UnKnownHostException in Jenkins and job failed at kuberneted deployment stage #132

Open AnilKumarP003 opened 4 years ago

AnilKumarP003 commented 4 years ago

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

sofiabobadilla commented 2 years ago

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