Skip to content

Commit 21a7a01

Browse files
author
Ricardo Pchevuzinske Katz
committed
Add Flatcar instructions
Signed-off-by: Ricardo Pchevuzinske Katz <[email protected]>
1 parent 3cb0307 commit 21a7a01

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

content/en/docs/setup/production-environment/tools/kubeadm/install-kubeadm.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ For information how to create a cluster with kubeadm once you have performed thi
2525
- Red Hat Enterprise Linux (RHEL) 7
2626
- Fedora 25+
2727
- HypriotOS v1.0.1+
28-
- Container Linux (tested with 1800.6.0)
28+
- Flatcar Container Linux (tested with 2512.3.0)
2929
* 2 GB or more of RAM per machine (any less will leave little room for your apps)
3030
* 2 CPUs or more
3131
* Full network connectivity between all machines in the cluster (public or private network is fine)
@@ -220,7 +220,7 @@ sudo systemctl enable --now kubelet
220220
- You can leave SELinux enabled if you know how to configure it but it may require settings that are not supported by kubeadm.
221221

222222
{{% /tab %}}
223-
{{% tab name="Fedora CoreOS" %}}
223+
{{% tab name="Fedora CoreOS or Flatcar Container Linux" %}}
224224
Install CNI plugins (required for most pod network):
225225

226226
```bash
@@ -231,6 +231,11 @@ curl -L "https://github.com/containernetworking/plugins/releases/download/${CNI_
231231

232232
Define the directory to download command files
233233

234+
{{< note >}}
235+
The DOWNLOAD_DIR variable must be set to a writable directory.
236+
If you are running Flatcar Container Linux, set DOWNLOAD_DIR=/opt/bin.
237+
{{< /note >}}
238+
234239
```bash
235240
DOWNLOAD_DIR=/usr/local/bin
236241
sudo mkdir -p $DOWNLOAD_DIR
@@ -251,7 +256,7 @@ cd $DOWNLOAD_DIR
251256
sudo curl -L --remote-name-all https://storage.googleapis.com/kubernetes-release/release/${RELEASE}/bin/linux/amd64/{kubeadm,kubelet,kubectl}
252257
sudo chmod +x {kubeadm,kubelet,kubectl}
253258

254-
RELEASE_VERSION="v0.2.7"
259+
RELEASE_VERSION="v0.4.0"
255260
curl -sSL "https://raw.githubusercontent.com/kubernetes/release/${RELEASE_VERSION}/cmd/kubepkg/templates/latest/deb/kubelet/lib/systemd/system/kubelet.service" | sed "s:/usr/bin:${DOWNLOAD_DIR}:g" | sudo tee /etc/systemd/system/kubelet.service
256261
sudo mkdir -p /etc/systemd/system/kubelet.service.d
257262
curl -sSL "https://raw.githubusercontent.com/kubernetes/release/${RELEASE_VERSION}/cmd/kubepkg/templates/latest/deb/kubeadm/10-kubeadm.conf" | sed "s:/usr/bin:${DOWNLOAD_DIR}:g" | sudo tee /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
@@ -262,6 +267,12 @@ Enable and start `kubelet`:
262267
```bash
263268
systemctl enable --now kubelet
264269
```
270+
271+
{{< note >}}
272+
The Flatcar Container Linux distribution mounts the `/usr` directory as a read-only filesystem.
273+
Before bootstrapping your cluster, you need to take additional steps to configure a writable directory.
274+
See the [Kubeadm Troubleshooting guide](/docs/setup/production-environment/tools/kubeadm/troubleshooting-kubeadm/#usr-mounted-read-only/) to learn how to set up a writable directory.
275+
{{< /note >}}
265276
{{% /tab %}}
266277
{{< /tabs >}}
267278

0 commit comments

Comments
 (0)