kubeadm: update swap warning for v1.28 change

This commit is contained in:
Paco Xu 2023-08-28 11:42:24 +08:00
parent 2a5fd3076a
commit eb0afbc7d0

View File

@ -653,7 +653,7 @@ func (swc SwapCheck) Check() (warnings, errorList []error) {
}
if len(buf) > 1 {
return []error{errors.New("swap is enabled; production deployments should disable swap unless testing the NodeSwap feature gate of the kubelet")}, nil
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 nil, nil