mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
kubeadm: update warning message for the swap check
Co-authored-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
5d1a97ce09
commit
f5c69fde39
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user