Skip to content

feat: add status column to uc ls#362

Draft
miekg wants to merge 1 commit into
psviderski:mainfrom
miekg:miek/26/mei08vr/service-status
Draft

feat: add status column to uc ls#362
miekg wants to merge 1 commit into
psviderski:mainfrom
miekg:miek/26/mei08vr/service-status

Conversation

@miekg

@miekg miekg commented May 8, 2026

Copy link
Copy Markdown
Contributor

This adds a status colunm showing the state of each container in the service. It lists x/y health, where x is the healthy container and y the total number:

NAME            MODE         REPLICAS   IMAGE                                                  ENDPOINTS                                         STATUS
atomdns         replicated   1          registry.science.ru.nl/cncz/sys/image/atomdns:latest   https://ctrl.u.science.ru.nl → :443               0/1 healthy
caddy           global       2          registry.science.ru.nl/cncz/sys/image/caddy:latest     (custom Caddy config)                             2/2 healthy
debian-vvsd     replicated   1          debian:bookworm-slim                                                                                     0/1 healthy
debug           replicated   1          registry.science.ru.nl/cncz/sys/image/debug:latest                                                       1/1 healthy
kopia           global       2          registry.science.ru.nl/cncz/sys/image/kopia:latest                                                       2/2 healthy

Fixes: #13

(Wasn't aware atomdns is crash-looping)

This adds a status colunm showing the state of each container in the
service. It lists x/y health, where x is the healthy container and y
the total number:

~~~
NAME            MODE         REPLICAS   IMAGE                                                  ENDPOINTS                                         STATUS
atomdns         replicated   1          registry.science.ru.nl/cncz/sys/image/atomdns:latest   https://ctrl.u.science.ru.nl → :443               0/1 healthy
caddy           global       2          registry.science.ru.nl/cncz/sys/image/caddy:latest     (custom Caddy config)                             2/2 healthy
debian-vvsd     replicated   1          debian:bookworm-slim                                                                                     0/1 healthy
debug           replicated   1          registry.science.ru.nl/cncz/sys/image/debug:latest                                                       1/1 healthy
kopia           global       2          registry.science.ru.nl/cncz/sys/image/kopia:latest                                                       2/2 healthy
~~~

Fixes: psviderski#13

(Wasn't aware atomdns is crash-looping)

Signed-off-by: Miek Gieben <miek@miek.nl>
@miekg

miekg commented May 18, 2026

Copy link
Copy Markdown
Contributor Author

It might be nicer to call the column HEALTH or HEALTHY to prevent the deplicated healthy on each line also makes it fit better on the screen.

@miekg

miekg commented Jun 4, 2026

Copy link
Copy Markdown
Contributor Author

hmm, just got a

Error: list services: list containers: rpc error: code = InvalidArgument desc = machines not found: fdcc:2ee7:1e01:b4f1:6427:fcf1:1dd2:356d, fdcc:cba:1dfb:4d8d:67c:8e7b:abde:a9ba, fdcc:50fa:b118:5aa6:dfd4:b63f:8e58:a9c8

with this enabled (when using a JumpHost for ssh, dunno if that matter).

The health indicator is handy though! Try to look more into it

@miekg miekg marked this pull request as draft June 5, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show service status when listing services

1 participant