In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "what is the use of Events in Kubernetes API design". The content of the explanation in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what is the use of Events in Kubernetes API design"?
Guide reading
When designing API extensions and implementing their controllers, how to design events and status? What kind of information needs to be put into status and what kind of information needs to be put into events?
Event design convention
Event is originally designed to provide a supplement to status, and unlike status, event can provide historical information. Like status, event is also maintained by the controller. So when do I need to report event? What information do you need to report?
When the controller observes a state (normal or abnormal state) of a resource, it needs to report an event if it requires the attention of the user or administrator. Reported events, which usually contain three pieces of information:
Reason: event name
Type: event type (or event level), which can be "Normal" or "Warning"
Message: event description details
Currently, only Normal and Warning are available for event types, and new types, such as Critical, can be extended to represent more serious information in the future if necessary. Event names are represented in hump style. Keep the names short but informative. Avoid minimalist names such as "Failed" or at least "xxxFailed" to indicate what went wrong.
Thank you for reading, the above is the content of "what is the use of Events in Kubernetes API design". After the study of this article, I believe you have a deeper understanding of what the use of Events in Kubernetes API design is, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.