@@ -22,9 +22,10 @@ when using kubeadm to set up a kubernetes cluster.
2222 document assumes these default ports. However, they are configurable through
2323 the kubeadm config file.
2424* Each host must [ have docker, kubelet, and kubeadm installed] [ toolbox ] .
25- * Some infrastructure to copy files between hosts (e.g., ssh).
25+ * Some infrastructure to copy files between hosts. For example ` ssh ` and ` scp `
26+ can satisfy this requirement.
2627
27- [ toolbox ] : /docs/setup/independent /install-kubeadm/
28+ [ toolbox ] : /docs/tasks/tools /install-kubeadm/
2829
2930{{% /capture %}}
3031
@@ -33,9 +34,32 @@ when using kubeadm to set up a kubernetes cluster.
3334## Setting up the cluster
3435
3536The general approach is to generate all certs on one node and only distribute
36- the * necessary* files to the other nodes. Note that kubeadm contains all the
37- necessary crytographic machinery to generate the certificates described below;
38- no other cryptographic tooling is required for this example.
37+ the * necessary* files to the other nodes.
38+
39+ {{< note >}}
40+ ** Note:** kubeadm contains all the necessary crytographic machinery to generate
41+ the certificates described below; no other cryptographic tooling is required for
42+ this example.
43+ {{< /note >}}
44+
45+
46+ 1 . Configure the kubelet to be a service manager for etcd.
47+
48+ Running etcd is simpler than running kubernetes so you must override the
49+ kubeadm-provided kubelet unit file by creating a new one with a higher
50+ precedence.
51+
52+ ``` sh
53+ cat << EOF > /etc/systemd/system/kubelet.service.d/20-etcd-service-manager.conf
54+ [Service]
55+ ExecStart=
56+ ExecStart=/usr/bin/kubelet --pod-manifest-path=/etc/kubernetes/manifests --allow-privileged=true
57+ Restart=always
58+ EOF
59+
60+ systemctl daemon-reload
61+ systemctl restart kubelet
62+ ` ` `
3963
40641. Create configuration files for kubeadm.
4165
0 commit comments