gpt4 book ai didi

kubernetes:无法更新端点警告

转载 作者:行者123 更新时间:2023-12-03 23:24:33 26 4
gpt4 key购买 nike

这是我在 kubectl get events 中注意到的一些内容输出

Warning   FailedToUpdateEndpoint   Endpoints                 Failed to update endpoint mynamespace/myservice: Operation cannot be fulfilled on endpoints "myservice": the object has been modified; please apply your changes to the latest version and try again

我知道 this discussion ,但我认为不适用,因为我没有明确创建 Endpoint资源来自 yaml .

我注意到在图像更新期间出现了一些轻微的服务不可用,因此我试图检查这是否相关。

使用 GKE 版本 v1.12.7-gke.25在主节点和节点上,在 istio 之上.

最佳答案

这是 的常见行为k8s 让 k8s 客户端( Controller )知道再试一次。

Kubernetes leverages the concept of resource versions to achieve optimistic concurrency. concurrency-control-and-consistency



它由系统填充。

To enable clients to build a model of the current state of a cluster, all Kubernetes object resource types are required to support consistent lists and an incremental change notification feed called a watch. Every Kubernetes object has a resourceVersion field representing the version of that resource as stored in the underlying database. When retrieving a collection of resources (either namespace or cluster scoped), the response from the server will contain a resourceVersion value that can be used to initiate a watch against the server. The server will return all changes (creates, deletes, and updates) that occur after the supplied resourceVersion. This allows a client to fetch the current state and then watch for changes without missing any updates. If the client watch is disconnected they can restart a new watch from the last returned resourceVersion, or perform a new collection request and begin again efficient-detection-of-changes

关于kubernetes:无法更新端点警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57957516/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com