From 90e7cca59c16a527e15893c33624c68163a62a12 Mon Sep 17 00:00:00 2001 From: Alexandre Perrin Date: Tue, 10 Jan 2023 13:07:00 +0100 Subject: [PATCH] hubble: port-forward only on IPv4 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 --- hubble/relay.go | 1 - hubble/ui.go | 1 - 2 files changed, 2 deletions(-) diff --git a/hubble/relay.go b/hubble/relay.go index fea6947044..e0d4018d6f 100644 --- a/hubble/relay.go +++ b/hubble/relay.go @@ -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 != "" { diff --git a/hubble/ui.go b/hubble/ui.go index a5aafbff78..657ac2360d 100644 --- a/hubble/ui.go +++ b/hubble/ui.go @@ -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 != "" {