From 177f4f2a00c868e47c6d9038e8b244542531046f Mon Sep 17 00:00:00 2001 From: Steven Powell Date: Wed, 3 Jul 2024 19:23:00 -0500 Subject: [PATCH] added comment for api server tunnel --- pkg/minikube/bootstrapper/kubeadm/kubeadm.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/minikube/bootstrapper/kubeadm/kubeadm.go b/pkg/minikube/bootstrapper/kubeadm/kubeadm.go index b14ba7fae083..325ec0817657 100644 --- a/pkg/minikube/bootstrapper/kubeadm/kubeadm.go +++ b/pkg/minikube/bootstrapper/kubeadm/kubeadm.go @@ -444,6 +444,8 @@ func (k *Bootstrapper) tunnelToAPIServer(cfg config.ClusterConfig) error { if cfg.APIServerPort == 0 { return fmt.Errorf("apiserver port not set") } + // An API server tunnel is only needed for QEMU w/ builtin network, for + // everything else return if !driver.IsQEMU(cfg.Driver) || !network.IsBuiltinQEMU(cfg.Network) { return nil }