kubectl wait --for=condition=complete --timeout=30s [英] kubectl wait --for=condition=complete --timeout=30s

查看:26
本文介绍了kubectl wait --for=condition=complete --timeout=30s的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 kubectl wait 命令通过此 文档.以下是我正在尝试的命令

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 输出可以通过这个 github 访问 link.

谁能帮我解决这个问题

推荐答案

这看起来就像你在 Pod 如您的输出中所述,而不是 作业.

This totally looks like you are running kubectl wait --for=condition=complete on a Pod as described in your output rather than a Job.

Pod 没有 --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 wait --for=condition=complete --timeout=30s的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆