yikuaibro commented on issue #264: URL: https://github.com/apache/shardingsphere-on-cloud/issues/264#issuecomment-1470114702
The Ready field in the ContainerStatus struct in the Kubernetes library is set based on the result of the readiness probe defined for the container in the Pod's specification. If the readiness probe succeeds, the Ready field is set to true, and if it fails, it is set to false. If the Ready field is true, it means that the container has passed its readiness probe and is ready to serve requests. However, this does not necessarily mean that the container is currently ready. If the container has just started or is still initializing, it may take some time before it becomes ready. During this time, the Ready field may be true, but the READY column in the kubectl get pods command result may show a value of (0/1). Therefore, the READY column in the kubectl get pods command result provides a more real-time view of the readiness of the containers in the Pod, while the Ready field in the ContainerStatus struct provides information about the overall readiness of the container. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
