k8s书签可以解决什么问题? [英] What k8s bookmark solves?

查看:77
本文介绍了k8s书签可以解决什么问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试进行部署,并使用 k8s节点api 监视k8s事件,直到部署就绪为止(观看):

I'm trying to make a deployment and watch for k8s events until the deployment is ready using k8s node api (Watch): https://github.com/kubernetes-client/javascript/blob/master/examples/typescript/watch/watch-example.ts

我已阅读本节: https://kubernetes.io/docs/reference/using-api/api-concepts/#watch-bookmarks 一遍又一遍,但我仍然无法理解,从客户的角度来看:

I have read this section: https://kubernetes.io/docs/reference/using-api/api-concepts/#watch-bookmarks over and over but I still can't understand, from the client perspective:

  1. 此功能试图解决什么?
  2. 我什么时候应该使用它?
  3. 我可以不使用它并且不错过任何活动吗?
  4. 我如何使用它?
  5. 我收到书签事件该怎么办.

推荐答案

由于您知道到目前为止已经处理了所有内容,因此可以有效地恢复手表.下次启动手表时,您可以将其用作初始版本,而无需回复每个对象.

It allows resuming the watch efficiently because you know you've processed everything up to that point. The next time you start a watch you can use that as the starting version and not need to reply every object.

这篇关于k8s书签可以解决什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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