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

查看:108
本文介绍了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.

我通过Google搜索的方式无法获得某些结果.

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

推荐答案

如果您需要Kubernetes中的events完整列表,则应直接查看github上的Kubernetes项目.

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天全站免登陆