Kubernetes 中所有可能的状态/原因的列表 [英] List of all possible status / reasons in Kubernetes

查看:37
本文介绍了Kubernetes 中所有可能的状态/原因的列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何知道 Kubernetes 中所有可能的状态和原因的列表?

How do I know the list of all possible statuses and reasons in Kubernetes?

现在,我正在处理 Kubernetes 事件.根据某些不寻常的事件,我将对此做出反应.例如,如果 pod 被退回或挂起,将收到此类事件并通过电子邮件(自定义代码)获得通知.将针对每个此类事件进一步采取必要的行动.

Right now, I'm working with Kubernetes events. Based on certain unusual events, I will be reacting to it. For example, if a pod is backed off or pending, will receive such events and get notified via Email (custom code). Necessary actions would be taken further for each such events.

我必须知道 pod 和节点的所有可能状态的列表.这将帮助我处理代码中不常见的行为.如果可能,最好也知道可能事件的原因列表.

I have to know the list of all possible status for a pod and node. That would help me to handle uncommon behaviours in my code. If possible, it would be good to know the list of possible Events' reasons also.

我正在使用 Fabric8 kubernetes-client,因为我发现 Java Kubernetes-client 在处理事件方面存在一些问题.

I'm using Fabric8 kubernetes-client as I found some issues with Java Kubernetes-client for handling events.

我通过谷歌搜索的方式,无法得到一些结果.

The way I searched through Google, couldn't get some results.

推荐答案

如果你需要一个完整的 Kubernetes events 列表,你应该直接查看 Kubernetes github 上的项目.

If you need to have a complete list of events in Kubernetes, you should take a look directly to the Kubernetes project on github.

这里是<代码>event.go 文件.

这篇关于Kubernetes 中所有可能的状态/原因的列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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