Skip to content

CLI does not always respect --kube-context #10462

Open
@arianaw66

Description

Gloo Edge Product

Open Source

Gloo Edge Version

local dev version, v1.19.0-beta1+

Kubernetes Version

v1.31.0

Describe the bug

glooctl check --kube-context kind-kind does not respect --kube-context flag for all commands it calls.
And I suspect the same is true for various other glooctl commands.

glooctl check succeeds when I'm locally pointing to the kind-kind context:

❯ k config current-context
kind-kind

❯ glooctl check
----------
glooctl binary version (1.17.16) differs from server components (v1.0.1) by at least a minor version.
Consider running:
glooctl upgrade --release=v1.0.1
----------

Checking Deployments... OK
Checking Pods... OK
Checking Upstreams... OK
Checking UpstreamGroups... OK
Checking AuthConfigs... OK
Checking RateLimitConfigs... OK
Checking VirtualHostOptions... OK
Checking RouteOptions... OK
Checking Secrets... OK
Checking VirtualServices... OK
Checking Gateways... OK
Checking Proxies... OK

Skipping Kubernetes Gateway resources check -- Kubernetes Gateway integration not enabled

Skipping Gloo Instance check -- Gloo Federation not detected.
No problems detected.

but when I have no local kubecontext configured, I see the following:

❯ k config current-context
error: current-context is not set

❯ glooctl check --kube-context kind-kind
----------
glooctl binary version (1.17.16) differs from server components (v1.0.1) by at least a minor version.
Consider running:
glooctl upgrade --release=v1.0.1
----------

Checking Deployments... OK
error getting KubeClient
Checking Pods... OK
Checking Upstreams... OK
Checking UpstreamGroups... OK
Checking AuthConfigs... OK
Checking RateLimitConfigs... OK
Checking VirtualHostOptions... OK
Checking RouteOptions... OK
Checking Secrets... 1 Errors!
Checking VirtualServices... OK
Checking Gateways... OK
Checking Proxies... E1210 18:11:33.946048   38052 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
E1210 18:11:33.947224   38052 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
E1210 18:11:33.947910   38052 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
E1210 18:11:33.948942   38052 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
The connection to the server localhost:8080 was refused - did you specify the right host or port?
Problem while checking for out of sync proxies
2 Errors!
error: arguments in resource/name form must have a single resource and name
[controller-runtime] log.SetLogger(...) was never called; logs will not be displayed.
Detected at:
	>  goroutine 1 [running]:
	>  runtime/debug.Stack()
	>  	/usr/local/go/src/runtime/debug/stack.go:24 +0x5e
	>  sigs.k8s.io/controller-runtime/pkg/log.eventuallyFulfillRoot()
	>  	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/log/log.go:60 +0xcd
	>  sigs.k8s.io/controller-runtime/pkg/log.(*delegatingLogSink).Error(0xc000a49f40, {0x52b3bf8, 0x7332630}, {0x4178c38, 0x20}, {0x0, 0x0, 0x0})
	>  	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/log/deleg.go:139 +0x5d
	>  github.com/go-logr/logr.Logger.Error({{0x5312150?, 0xc000a49f40?}, 0x38486c5?}, {0x52b3bf8, 0x7332630}, {0x4178c38, 0x20}, {0x0, 0x0, 0x0})
	>  	/go/pkg/mod/github.com/go-logr/[email protected]/logr.go:301 +0xec
	>  sigs.k8s.io/controller-runtime/pkg/client/config.loadConfig.func1()
	>  	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/client/config/config.go:133 +0x55
	>  sigs.k8s.io/controller-runtime/pkg/client/config.loadConfig({0x0, 0x0})
	>  	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/client/config/config.go:155 +0x379
	>  sigs.k8s.io/controller-runtime/pkg/client/config.GetConfigWithContext({0x0?, 0x0?})
	>  	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/client/config/config.go:97 +0x18
	>  github.com/solo-io/gloo/pkg/utils/kubeutils.GetRestConfigWithKubeContext({0x0?, 0x0?})
	>  	/workspace/gloo/pkg/utils/kubeutils/rest_config.go:23 +0x18
	>  github.com/solo-io/gloo/projects/gloo/cli/pkg/helpers.getKubernetesConfig(0x0, {0x0?, 0x0?})
	>  	/workspace/gloo/projects/gloo/cli/pkg/helpers/clients.go:618 +0x27
	>  github.com/solo-io/gloo/projects/gloo/cli/pkg/helpers.GetKubernetesClientWithTimeout(0x5308be0?, {0x0?, 0x0?})
	>  	/workspace/gloo/projects/gloo/cli/pkg/helpers/clients.go:606 +0x25
	>  github.com/solo-io/gloo/projects/gloo/cli/pkg/helpers.GetKubernetesClient(...)
	>  	/workspace/gloo/projects/gloo/cli/pkg/helpers/clients.go:599
	>  github.com/solo-io/gloo/projects/gloo/cli/pkg/helpers.GetGlooDeploymentName({0x5308be0, 0xc000b39b90}, {0x4137857, 0xb})
	>  	/workspace/gloo/projects/gloo/cli/pkg/helpers/clients.go:155 +0x52
	>  github.com/solo-io/gloo/projects/gloo/cli/pkg/kubegatewayutils.DetectKubeGatewayEnabled({0x5308c18, 0xc0009b9ef0}, 0xc000a8b808)
	>  	/workspace/gloo/projects/gloo/cli/pkg/kubegatewayutils/detect.go:45 +0x69
	>  github.com/solo-io/gloo/projects/gloo/cli/pkg/cmd/check.isKubeGatewayEnabled({0x5308c18, 0xc0009b9ef0}, 0xc000a8b808)
	>  	/workspace/gloo/projects/gloo/cli/pkg/cmd/check/kube_gateway.go:65 +0x65
	>  github.com/solo-io/gloo/projects/gloo/cli/pkg/cmd/check.CheckKubeGatewayResources({0x5308c18, 0xc0009b9ef0}, {0xc001059c90?, 0x0?}, 0xc000a8b808)
	>  	/workspace/gloo/projects/gloo/cli/pkg/cmd/check/kube_gateway.go:21 +0x4f
	>  github.com/solo-io/gloo/projects/gloo/cli/pkg/cmd/check.RootCmd.func1(0xc000ca2608?, {0x412710a?, 0x4?, 0x412710e?})
	>  	/workspace/gloo/projects/gloo/cli/pkg/cmd/check/root.go:81 +0x1c5
	>  github.com/spf13/cobra.(*Command).execute(0xc000ca2608, {0xc000caa220, 0x2, 0x2})
	>  	/go/pkg/mod/github.com/spf13/[email protected]/command.go:983 +0xaca
	>  github.com/spf13/cobra.(*Command).ExecuteC(0xc00023ef08)
	>  	/go/pkg/mod/github.com/spf13/[email protected]/command.go:1115 +0x3ff
	>  github.com/spf13/cobra.(*Command).Execute(0x5308b00?)
	>  	/go/pkg/mod/github.com/spf13/[email protected]/command.go:1039 +0x13
	>  main.main()
	>  	/workspace/gloo/projects/gloo/cli/cmd/main.go:11 +0x2a
error getting KubeClient

Skipping Gloo Instance check -- Gloo Federation not detected.
Error: 8 errors occurred:
	* error getting KubeClient: Error retrieving Kubernetes configuration: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable

	* getting kube config: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
	* getting kube client: Error retrieving Kubernetes configuration: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable

	* getting kube config: Error retrieving Kubernetes configuration: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable

	* ProxyDebugBindAddr is empty. Consider upgrading the version of Gloo
	* timed out trying to connect to localhost during port-forward, errors: 236 errors occurred:
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused
	* Get "http://localhost:61914/stats/prometheus": dial tcp [::1]:61914: connect: connection refused


	* timed out trying to connect to localhost during port-forward, errors: 236 errors occurred:
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused
	* Get "http://localhost:62872/metrics": dial tcp [::1]:62872: connect: connection refused


	* unable to determine if Kubernetes Gateway integration is enabled: unable to determine if Kubernetes Gateway integration is enabled: error getting KubeClient: Error retrieving Kubernetes configuration: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable

Expected Behavior

glooctl check when the local context is configured and glooctl check --kube-context kind-kind should result in the same output, and all glooctl commands which have a --kube-context flag should execute all kubectl commands in that context.

Steps to reproduce the bug

  1. Set up Gloo Gateway
  2. Point local kubecontext to that setup (k config use-context {your-kube-context})
  3. Confirm setup is healthy and glooctl check succeeds
  4. Unset local kubecontext (k config unset current-context)
  5. See glooctl check --kube-context {your-kube-context} fail

Additional Environment Detail

No response

Additional Context

This was discovered here. As you can see, we have a test for this which is misleading, as I strongly suspect it has a default kubecontext set, which matches the one passed in.

Related Issues

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions