kubernetes-cd-plugin
kubernetes-cd-plugin copied to clipboard
UnKnownHostException in Jenkins and job failed at kuberneted deployment stage
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
similar problem here. Can you shared what worked for you at the time?