Skip to content

Commit 548d50d

Browse files
authored
Merge pull request kubernetes#125157 from carlory/kubeadm-2563
kubeadm: update warning message for the swap check
2 parents d0aaa66 + f5c69fd commit 548d50d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/kubeadm/app/preflight/checks.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,9 @@ func (swc SwapCheck) Check() (warnings, errorList []error) {
651651
}
652652

653653
if len(buf) > 1 {
654-
return []error{errors.New("swap is supported for cgroup v2 only; the NodeSwap feature gate of the kubelet is beta but disabled by default")}, nil
654+
return []error{errors.New("swap is supported for cgroup v2 only. " +
655+
"The kubelet must be properly configured to use swap. Please refer to https://kubernetes.io/docs/concepts/architecture/nodes/#swap-memory, " +
656+
"or disable swap on the node")}, nil
655657
}
656658

657659
return nil, nil

0 commit comments

Comments
 (0)