diff --git a/pkg/cluster/internal/create/actions/kubeadminit/init.go b/pkg/cluster/internal/create/actions/kubeadminit/init.go index 933b6c312b..eb8d5b69c5 100644 --- a/pkg/cluster/internal/create/actions/kubeadminit/init.go +++ b/pkg/cluster/internal/create/actions/kubeadminit/init.go @@ -81,8 +81,8 @@ func (a *action) Execute(ctx *actions.ActionContext) error { // Newer versions set this in the config file. if kubeVersion.LessThan(version.MustParseSemantic("v1.23.0")) { - // skip preflight checks, as these have undesirable side effects - // and don't tell us much. requires kubeadm 1.13+ + // Skip preflight to avoid pulling images. + // Kind pre-pulls images and preflight may conflict with that. skipPhases := "preflight" if a.skipKubeProxy { skipPhases += ",addon/kube-proxy" diff --git a/pkg/cluster/internal/create/actions/kubeadmjoin/join.go b/pkg/cluster/internal/create/actions/kubeadmjoin/join.go index a5102112cd..2eadc6f073 100644 --- a/pkg/cluster/internal/create/actions/kubeadmjoin/join.go +++ b/pkg/cluster/internal/create/actions/kubeadmjoin/join.go @@ -136,8 +136,8 @@ func runKubeadmJoin(logger log.Logger, node nodes.Node) error { } // Newer versions set this in the config file. if kubeVersion.LessThan(version.MustParseSemantic("v1.23.0")) { - // skip preflight checks, as these have undesirable side effects - // and don't tell us much. requires kubeadm 1.13+ + // Skip preflight to avoid pulling images. + // Kind pre-pulls images and preflight may conflict with that. args = append(args, "--skip-phases=preflight") } diff --git a/pkg/cluster/internal/kubeadm/config.go b/pkg/cluster/internal/kubeadm/config.go index 6e94d986dc..3b6986cff2 100644 --- a/pkg/cluster/internal/kubeadm/config.go +++ b/pkg/cluster/internal/kubeadm/config.go @@ -171,8 +171,9 @@ func (c *ConfigData) Derive() { } c.RuntimeConfigString = strings.Join(runtimeConfig, ",") - // skip preflight checks, as these have undesirable side effects - // and don't tell us much. requires kubeadm 1.22+ + // Skip preflight to avoid pulling images. + // Kind pre-pulls images and preflight may conflict with that. + // requires kubeadm 1.22+ c.JoinSkipPhases = []string{"preflight"} c.InitSkipPhases = []string{"preflight"} if c.KubeProxyMode == string(config.NoneProxyMode) {