withKubeConfig支持的是plain credential text所以要创建如下截图的凭据,否则是无法连接到k8s的,找了好久,看文献还是得看原生的。以下截图就是导入k8s集群的k8s的config文件就可以了。
https://jenkins.io/doc/pipeline/steps/kubernetes-cli/#kubernetes-cli-plugin
https://wiki.jenkins.io/display/JENKINS/Plain+Credentials+Plugin
https://github.com/jenkinsci/kubernetes-cli-plugin/blob/master/README.md
所有评论(0)