ERROR: ERROR: Cannot find kubeconfig credentials with id demo-kubeconfig
java.lang.IllegalArgumentException: Cannot find kubeconfig credentials with id demo-kubeconfig
at com.microsoft.jenkins.kubernetes.KubernetesDeployContext.clientFactory(KubernetesDeployContext.java:273)
at com.microsoft.jenkins.kubernetes.command.DeploymentCommand.execute(DeploymentCommand.java:58)
at com.microsoft.jenkins.kubernetes.command.DeploymentCommand.execute(DeploymentCommand.java:45)
at com.microsoft.jenkins.azurecommons.command.CommandService.runCommand(CommandService.java:88)
at com.microsoft.jenkins.azurecommons.command.CommandService.execute(CommandService.java:96)
at com.microsoft.jenkins.azurecommons.command.CommandService.executeCommands(CommandService.java:75)
at com.microsoft.jenkins.azurecommons.command.BaseCommandContext.executeCommands(BaseCommandContext.java:77)
at com.microsoft.jenkins.kubernetes.KubernetesDeploy.perform(KubernetesDeploy.java:42)
at com.microsoft.jenkins.azurecommons.command.SimpleBuildStepExecution.run(SimpleBuildStepExecution.java:54)
at com.microsoft.jenkins.azurecommons.command.SimpleBuildStepExecution.run(SimpleBuildStepExecution.java:35)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Kubernetes deployment ended with HasError
搜了发现是3.0的bug,详见
然后发现了这个。网页失效了,
kubesphere-system ks-controller-manager-7b5dcbc866-t2k28 0/1 Pending 0 2m31s
发现pending,。。。一直起不来,
描述一下这个pod。
# kubectl describe pod ks-controller-manager-7b5dcbc866-t2k28 -n kubesphere-system
node.kubernetes.io/unreachable:NoExecute for 60s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling 65s (x8 over 7m12s) default-scheduler 0/1 nodes are available: 1 node(s) had taint {node.kubernetes.io/ci: }, that the pod didn't tolerate.
节点被占用好像,这个node.kubernetes.io/ci ,是集群设置独占,禁止调用好像,
解除这个节点占用。,
#不知道这行啥意思,期待大佬解答一下
# kubectl taint nodes --all node.kubernetes.io/ci-
# 会提示已解锁 node/localhost.localdomain untainted
然后…就可以解决了