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

The status subcommand pod count is broken when CiliumEndpoints are disabled #2334

Open
asauber opened this issue Feb 26, 2024 · 0 comments
Open
Labels
kind/bug Something isn't working

Comments

@asauber
Copy link
Member

asauber commented Feb 26, 2024

Bug report

General Information

  • Cilium CLI version (run cilium version)

v1.15.23

  • Orchestration system version in use (e.g. kubectl version, ...)

Any

  • Platform / infrastructure information (e.g. AWS / Azure / GCP, image / kernel versions)

Any

  • Link to relevant artifacts (policies, deployments scripts, ...)

In #2320 we allowed the status subcommand to exit cleanly, even if it cannot determine the number of pods for the "X/Y managed by Cilium" pod count. It is inaccurate in cases where CiliumEndpoints have been disabled, for example with the disableEndpointCRD: "true" Helm chart setting. In such cases, Pods might be tracked using an external kvstore, which cilium-cli should query in order to produce this output.

Cluster Pods:          3/3 managed by Cilium

How to reproduce the issue

  1. Configure Cilium with disableEndpointCRD: "true"
  2. Confirm that there are no CiliumEndpoints
  3. Possibly roll pods that were previously associated with CiliumEndpoints (switching to `disableEndpointCRD: "true" post-install can be tricky)
  4. Run cilium status
  5. See "0/0 managed by Cilium", when we know that this is not the case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant