Editing Kubeadm init
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | <code>kubeadm init</code> to bootstrap a Kubernetes [[control-plane]] node | |
− | <code> | ||
* <code>[[kubeadm]] init --[[pod-network-cidr]]=10.244.0.0/16</code> | * <code>[[kubeadm]] init --[[pod-network-cidr]]=10.244.0.0/16</code> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== With errors == | == With errors == | ||
− | + | <pre> | |
kubeadm init --pod-network-cidr=10.244.0.0/16 | kubeadm init --pod-network-cidr=10.244.0.0/16 | ||
W0419 17:17:35.020389 29884 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io | W0419 17:17:35.020389 29884 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io | ||
Line 26: | Line 14: | ||
[preflight] WARNING: Couldn't create the interface used for talking to the container runtime: docker is required for container runtime: exec: "docker": | [preflight] WARNING: Couldn't create the interface used for talking to the container runtime: docker is required for container runtime: exec: "docker": | ||
executable file not found in $PATH | executable file not found in $PATH | ||
− | + | [WARNING FileExisting-socat]: socat not found in system path | |
− | + | [WARNING Service-Kubelet]: kubelet service is not enabled, please run 'systemctl enable kubelet.service' | |
− | + | error execution phase preflight: [preflight] Some fatal errors occurred: | |
− | + | [ERROR NumCPU]: the number of available CPUs 1 is less than the required 2 | |
− | + | [ERROR FileExisting-crictl]: crictl not found in system path | |
− | + | [ERROR FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables does not exist | |
− | + | [ERROR FileExisting-conntrack]: conntrack not found in system path | |
− | + | [ERROR KubeletVersion]: couldn't get kubelet version: cannot execute 'kubelet --version': executable file not found in $PATH | |
− | + | [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 | |
+ | </pre> | ||
Line 42: | Line 31: | ||
− | kubeadm init --pod-network-cidr=10.244.0.0/16 | + | kubeadm init --pod-network-cidr=10.244.0.0/16 -ignore-preflight-errors=All |
+ | |||
== With errors: [[docker]] not installed == | == With errors: [[docker]] not installed == | ||
Line 64: | Line 54: | ||
To see the stack trace of this error execute with --v=5 or higher | To see the stack trace of this error execute with --v=5 or higher | ||
</pre> | </pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Related terms == | == Related terms == | ||
− | * <code>[[conntrack]] (command)</code> [[Netfilter]] (<code>[[apt install | + | * <code>[[conntrack]] (command)</code> [[Netfilter]] (<code>[[apt install conntract]]</code>) |
− | * <code>[[socat]]</code>: <code>[[apt install]] | + | * <code>[[socat]]</code>: <code>[[apt install]] socat</code> |
− | * <code>[[kubeadm config images pull | + | * <code>[[kubeadm config]] images pull</code> |
* [[Kubernetes (snap install)]] | * [[Kubernetes (snap install)]] | ||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == | ||
− | |||
* {{kubeadm}} | * {{kubeadm}} | ||
− | * {{ | + | * {{K8s}} |
[[Category:Kubernetes]] | [[Category:Kubernetes]] |
Advertising: