New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add status column for kubectl get replicationcontroller/service #7483
Comments
Adding this to Deployment - #20009 |
Would like to add this to ReplicaSet and ReplicationController, also. Probably ReadyReplicas, which we could also add to Deployment. |
@foxish let's start with adding running / ready replicas (pods) to |
@janetkuo Based on our offline discussion, adding a new field to api/types.go:ReplicationControllerStatus is not preferable at the moment. So, we choose to make multiple GET calls to fetch the status of the pods. It seems difficult to see which would be the appropriate place to make those calls back to the pods. |
Can you elaborate on why? We are already doing this for Deployments and 1) I have stumbled across many cases where people want to know the available replicas of their controllers individually and 2) doing this at the replica set status and then using that at the deployment level seems more correct and would offload complexity from the deployment controller. That's why I have opened #28381 |
So I think that a serious problem with the cluster today is when pods can't be created for the following reasons:
I think 1-3 are enough to justify some small amount of status to be rolled up - it would massively improve the user experience of naive clients (kubectl describe rc foo) and web clients. It would remove a whole class of questions on stack overflow (why do I not have X things). It will become increasingly difficult over time because we will add more things to that list. I think this may also be covered in another issue, so I don't want to hijack, but I do think from a usability issue controllers are responsible for summarizing the total state of the decisions they make, not just through events. It can definitely be tricky to keep that status up to date in a performant matter, but i think it's critical. |
Thanks, sorry for the confusion. |
Automatic merge from submit-queue kubectl: display ready replicas in 'get {rs,rc}' Fixes #7483 @kubernetes/kubectl @janetkuo @bgrant0607
kubectl get replicaController/service does not tell whether the replicaController is in health state or service is running, how about add a status column to indicate that?
The text was updated successfully, but these errors were encountered: