【发布时间】:2020-06-17 12:13:13
【问题描述】:
部署到 kubernetes 集群时,我在 Jenkins 中遇到以下错误:
错误:错误:java.lang.RuntimeException:io.kubernetes.client.openapi.ApiException:java.net.UnknownHostException:**.azmk8s.io:名称或服务未知 hudson.remoting.ProxyException:java.lang.RuntimeException:io.kubernetes.client.openapi.ApiException:java.net.UnknownHostException:
尝试使用以下 jenkins 管道 sn-p 进行部署:
kubernetesDeploy(
configs: 'deploymentFile.yaml',
kubeconfigId: 'Kubeconfig',
enableConfigSubstitution: true
)
请推荐
【问题讨论】:
标签: jenkins kubernetes jenkins-groovy azure-aks