Skip to content

Commit

Permalink
hubble: port-forward only on IPv4
Browse files Browse the repository at this point in the history
Before this patch, cilium hubble port-forward and cilium hubble ui would
fail when the host didn't have IPv6 enabled.

Signed-off-by: Alexandre Perrin <[email protected]>
  • Loading branch information
kaworu authored and tklauser committed Jan 10, 2023
1 parent d6447fb commit 90e7cca
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion hubble/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ func (p *Parameters) RelayPortForwardCommand(ctx context.Context, client k8sHubb
"-n", p.Namespace,
"svc/hubble-relay",
"--address", "127.0.0.1",
"--address", "::1",
fmt.Sprintf("%d:%d", p.PortForward, relaySvc.Spec.Ports[0].Port)}

if p.Context != "" {
Expand Down
1 change: 0 additions & 1 deletion hubble/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ func (p *Parameters) UIPortForwardCommand(ctx context.Context) error {
"-n", p.Namespace,
"svc/hubble-ui",
"--address", "127.0.0.1",
"--address", "::1",
fmt.Sprintf("%d:80", p.UIPortForward)}

if p.Context != "" {
Expand Down

0 comments on commit 90e7cca

Please sign in to comment.