kubeadm: update warning message for the swap check

Co-authored-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
carlory 2024-05-28 12:01:11 +08:00
parent 5d1a97ce09
commit f5c69fde39

View File

@ -651,7 +651,9 @@ func (swc SwapCheck) Check() (warnings, errorList []error) {
}
if len(buf) > 1 {
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
return []error{errors.New("swap is supported for cgroup v2 only. " +
"The kubelet must be properly configured to use swap. Please refer to https://kubernetes.io/docs/concepts/architecture/nodes/#swap-memory, " +
"or disable swap on the node")}, nil
}
return nil, nil