Skip to content
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

Extend kubectl get multiclusterservice output #1028

Open
Josca opened this issue Feb 3, 2025 · 4 comments
Open

Extend kubectl get multiclusterservice output #1028

Josca opened this issue Feb 3, 2025 · 4 comments
Labels
enhancement Small feature, request or improvement suggestion

Comments

@Josca
Copy link
Contributor

Josca commented Feb 3, 2025

Please extend the command output to improve user experience:

kubectl get multiclusterservice

Current

NAME                AGE
mcs-nginx-ingress   2d12h

Suggested

NAME               STATUS       SERVICES     CLUSTERS   AGE
mcs-nginx-ingress  Creating     3/5          0/2        2d12h
  • Column STATUS - Running / Pending / Failed / Succeeded / Unknown
  • Column SERVICES - Deployed/Required services count.
  • Column CLUSTERS - Updated/NotUpdated clusters count.
@Josca Josca added the enhancement Small feature, request or improvement suggestion label Feb 3, 2025
@github-project-automation github-project-automation bot moved this to Todo in k0rdent Feb 3, 2025
@BROngineer
Copy link
Contributor

@Josca what output you expect in case some services failed on some clusters?

@Josca
Copy link
Contributor Author

Josca commented Feb 4, 2025

I would follow container-pods logic here if possible - Running, Pending, Failed, Succeeded, Unknown.

@BROngineer
Copy link
Contributor

I would follow container-pods logic here if possible - Running, Pending, Failed, Succeeded, Unknown.

following this analogy we should consider MultiClusterService as a Deployment, for instance. Deployments does not show statuses of the containers, only Pods.

Say, there is cluster-1, cluster-2 and cluster-3 with service-A, service-B and service-C.
cluster-1 has service-A and service-C failed
cluster-2 has service-B failed.
cluster-3 runs all services successfully.

So, what would be the output?

@Josca
Copy link
Contributor Author

Josca commented Feb 4, 2025

NAME             SERVICES     CLUSTERS   AGE
mcs-ABC          0/3          1/3        2d12h
  • Ok, the comparison with "deployment" is good. So I can imagine this.
  • Services 0/3, no service (from 3 defined) runs successfully across all clusters.
  • Clusters 1/3, on cluster (from 3 selected) is successfully configured (runs all services).

It doesn't give all info but some useful info:

    1. There are 3 services defined in mcs-ABC.
    1. There are 3 clusters selected in mcs-ABC.
    1. There is some problem with each of 3 services.
    1. There is one cluster successfully configured.

Does it make sense?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Small feature, request or improvement suggestion
Projects
Status: Todo
Development

No branches or pull requests

2 participants