[root@k8s1 yum.repos.d]# kubeadm init –apiserver-advertise-address=192.168.12.10 –image-repository registry.aliyuncs.com/google_containers –kubernetes-version v1.18.0 –service-cidr=10.96.0.0/12 –pod-network-cidr=10.244.0.0/16
W0928 15:17:23.161858 1999 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[init] Using Kubernetes version: v1.18.0
[preflight] Running pre-flight checks
[WARNING IsDockerSystemdCheck]: detected “cgroupfs” as the Docker cgroup driver. The recommended driver is “systemd”. Please follow the guide at https://kubernetes.io/docs/setup/cri/
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR Swap]: running with swap on is not supported. Please disable swap
[preflight] If you know what you are doing, you can make a check non-fatal with `–ignore-preflight-errors=…`
To see the stack trace of this error execute with –v=5 or higher
How to Solve:
Need to turn off swap in linux
# Turn off swap, run both commands to solve the problem
swapoff -a # temporary
sed -ri ‘s/. *swap.*/#&/’ /etc/fstab # permanent
Read More:
- K8S Master Initialize Error: [ERROR CRI]: container runtime is not running: output: E0812
- How to Solve Pandas Error: nested renamer is not supported python
- RuntimeError: Exporting the operator uniform to ONNX opset version 12 is not supported.
- [Solved] bin/hive Startup Error: Operation category READ is not supported in state standby
- [Solved] OpenCV VideoWriter Error: FFMPEG: tag ‘MP4V‘ is not supported with codec id 12 and format mp4
- [Solved] Error contacting service. It is probably not running.
- [Solved] Error contacting service. It is probably not running.
- [Solved] ZooKeeper Configurate Error: Error contacting service. It is probably not running.
- [Solved] Zookeeper3.6.0 Error: Error contacting service. It is probably not running
- How to Solve VMware Workstation Error: The VMware Authorization Service is not running.
- When installing zookeeper, you can view the process start, but the status display error: Error contacting service. It is probably not running
- Start Docker Quickstart Terminal error This computer is running Hyper-V. VirtualBox won’t boot a 64bits VM when Hyper-V is activated
- [Solved] error during connect: This error may indicate that the docker daemon is not running
- [Solved] Conversion not supported for type java.time.LocalDateTime
- [Solved] Docker failed to start daemon: error initializing graphdriver: driver not supported
- [Solved] SpringBoot Error: HttpMediaTypeNotSupportedException: Content type ‘application/json‘ not supported
- Xcode debugging for the real iPhone Error: code signature version is no longer supported
- RuntimeError: Integer division of tensors using div or / is no longer supported, and in a future rel
- Grpc Compilation issues: “C++ versions less than C++11 are not supported.
- Error running ‘xxxx‘“: Command line is too long… [How to Solve]