Skip to content

hubble CLI help for service filtering is misleading  #713

Closed

Description

The way the service field in Hubble flows has been implemented so far is that it only works if the destination IP is the service ClusterIP. This makes the following lines from hubble observe --help misleading:

      --from-service filter     Show all flows originating in the given service ([namespace/]<svc-name>). If namespace is not provided, 'default' is used
      --service filter          Show all flows related to the given service ([namespace/]<svc-name>). If namespace is not provided, 'default' is used
      --to-service filter       Show all flows terminating in the given service ([namespace/]<svc-name>). If namespace is not provided, 'default' is used

Per @gandro the ideal fix would be to extend it to do a lookup on the IP to see if the destination/source is a service backend IP and populate the fields accordingly. It likely needs some plumbing in cilium-agent first however, to have a backendIP -> service metadata index.

In the shorter term it would be good to update the help for these items eg.

Shows flows where the destination IP address matches the ClusterIP address of the given service ([namespace/]<svc-name>)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

⌨️ area/cliImpacts the command line interface of any command in the repository.👍 good-first-issueGood starting point for new developers, which requires minimal understanding of Hubble.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions