kubectl等待--for =条件=完成-超时= 30s [英] kubectl wait --for=condition=complete --timeout=30s
本文介绍了kubectl等待--for =条件=完成-超时= 30s的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I am trying to check the status of a pod using kubectl wait command through this documentation. Following is the command that i am trying
kubectl wait --for=condition=complete --timeout=30s -n d1 job/test-job1-oo-9j9kj
以下是我得到的错误
Kubectl error: status.conditions accessor error: Failure is of the type string, expected map[string]interface{}
和我的kubectl -o json output can be accessed via this github
链接
有人可以帮助我解决此问题
Can someone help me to fix the issue
推荐答案
这完全看起来像是您在工作.
This totally looks like you are running kubectl wait --for=condition=complete
on a Pod as described in your output rather than a Job.
吊舱没有--for=condition=complete
选项.确实,我在Pod上运行它时会得到什么:
A pod doesn't have the --for=condition=complete
option. Exactly, what I get when I run it on a pod:
$ kubectl wait --for=condition=complete pod/mypod-xxxxxxxxxx-xxxxx
error: .status.conditions accessor error: Failure is of the type string, expected map[string]interface{}
这篇关于kubectl等待--for =条件=完成-超时= 30s的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文