Discarded Kubernetes Resources
Check Items
Check whether there are discarded resources in the clusters.
Solution
- Scenario 1: The Service in the clusters of v1.25 or later has deprecated annotation tolerate-unready-endpoints.
Error log:
some check failed in cluster upgrade: this cluster has deprecated service list: map[test-svc] with deprecated annotation list [tolerate-unready-endpoints]
In this example, check the log to see if the Service (test-svc) has the tolerate-unready-endpoints annotation. This annotation indicates whether the endpoint controller should continue creating endpoints for unready pods. If the deprecated annotation exists, delete it and add the following field to the Service's spec as a replacement (For details, see ServiceSpec):
publishNotReadyAddresses: true
- Scenario 2: The Service in the clusters of v1.27 or later has deprecated annotation service.kubernetes.io/topology-aware-hints.
Error log:
some check failed in cluster upgrade: this cluster has deprecated service list: map[test-svc] with deprecated annotation list [service.kubernetes.io/topology-aware-hints]
In this example, check the log to see if the Service (test-svc) contains the service.kubernetes.io/topology-aware-hints annotation. This annotation was used to enable topology aware hints in Services. However, this function have been renamed. If the deprecated annotation exists, delete it and use service.kubernetes.io/topology-mode as a replacement (For details, see Topology Aware Routing):
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot