derailed / k9s

🐶 Kubernetes CLI To Manage Your Clusters In Style!
https://k9scli.io
Apache License 2.0
27.11k stars 1.7k forks source link

Support services without selectors #1789

Closed 9SliceStudio closed 11 months ago

9SliceStudio commented 2 years ago




Describe the bug When a service doesn’t provide any selectors, pressing Enter on it will display all the pods of the namespace instead of looking at the corresponding Endpoint

To Reproduce I am not very "Kubernetes fluent", however I use the TimescaleDB Helm chart, that uses the Patroni Postgres solution. This chart define a Service for the master node but without any selector, and instead rely of the endpoint management of patroni.

When listing the Services, go to the master service (the one with the name of the release). Press Enter on it.

Expected behavior I expect to see the pod of the master node.

Versions (please complete the following information):

lefes commented 1 year ago

Hey @9SliceStudio ! I would like to understand the bug and try to fix it. Could you be more specific about the steps to reproduce it? I installed the helm chart with this commands: helm repo add timescale 'https://charts.timescale.com' helm install my-release timescale/timescaledb-single --namespace temp All services have selectors and are working as expected."

9SliceStudio commented 1 year ago

Hey. The chart has been updated since I opened this issue. Using chart 0.21.0 (or newer) will prevent from reproduce the bug. Maybe you can just close this issue, or test with an older chart version if you want to still support Service without selectors.