2018-04-24 10:10:40 +02:00
# Operating Systems
2020-05-21 07:53:51 +02:00
Typhoon supports [Fedora CoreOS ](https://getfedora.org/coreos/ ) and [Flatcar Linux ](https://www.flatcar-linux.org/ ). These operating systems were chosen because they offer:
2018-04-24 10:10:40 +02:00
* Minimalism and focus on clustered operation
* Automated and atomic operating system upgrades
* Declarative and immutable configuration
* Optimization for containerized applications
Together, they diversify Typhoon to support a range of container technologies.
2022-07-21 18:01:43 +02:00
* Fedora CoreOS: rpm-ostree, podman, containerd
* Flatcar Linux: Gentoo core, docker, containerd
2018-04-24 10:10:40 +02:00
2018-04-26 11:41:04 +02:00
## Host Properties
2018-04-24 10:10:40 +02:00
2020-03-25 08:31:18 +01:00
| Property | Flatcar Linux | Fedora CoreOS |
2021-12-10 02:21:24 +01:00
|-------------------|---------------|---------------|
2022-03-20 03:15:02 +01:00
| Kernel | ~5.10.x | ~5.16.x |
| systemd | 249 | 249 |
2021-12-10 02:21:24 +01:00
| Username | core | core |
2019-07-18 08:52:34 +02:00
| Ignition system | Ignition v2.x spec | Ignition v3.x spec |
2020-03-25 08:31:18 +01:00
| storage driver | overlay2 (extfs) | overlay2 (xfs) |
2021-12-10 02:21:24 +01:00
| logging driver | json-file | journald |
| cgroup driver | systemd | systemd |
| cgroup version | v2 | v2 |
| Networking | systemd-networkd | NetworkManager |
| Resolver | systemd-resolved | systemd-resolved |
2018-04-24 10:10:40 +02:00
2018-04-26 11:41:04 +02:00
## Kubernetes Properties
2020-03-25 08:31:18 +01:00
| Property | Flatcar Linux | Fedora CoreOS |
2021-12-10 02:21:24 +01:00
|-------------------|---------------|---------------|
2018-04-26 11:41:04 +02:00
| single-master | all platforms | all platforms |
| multi-master | all platforms | all platforms |
2019-09-07 22:38:51 +02:00
| control plane | static pods | static pods |
2022-03-20 03:15:02 +01:00
| Container Runtime | containerd 1.5.9 | containerd 1.6.0 |
2020-03-17 05:21:41 +01:00
| kubelet image | kubelet [image ](https://github.com/poseidon/kubelet ) with upstream binary | kubelet [image ](https://github.com/poseidon/kubelet ) with upstream binary |
| control plane images | upstream images | upstream images |
2020-11-04 01:37:09 +01:00
| on-host etcd | docker | podman |
Change Flatcar kubelet.service container from rkt to docker
* Use docker to run the `kubelet.service` container
* Update Kubelet mounts to match Fedora CoreOS
* Remove unused `/etc/ssl/certs` mount (see
https://github.com/poseidon/typhoon/pull/810)
* Remove unused `/usr/share/ca-certificates` mount
* Remove `/etc/resolv.conf` mount, Docker default is ok
* Change `delete-node.service` to use docker instead of rkt
and inline ExecStart, as was done on Fedora CoreOS
* Fix permission denied on shutdown `delete-node`, caused
by the kubeconfig mount changing with the introduction of
node TLS bootstrap
Background
* podmand, rkt, and runc daemonless container process runners
provide advantages over the docker daemon for system containers.
Docker requires workarounds for use in systemd units where the
ExecStart must tail logs so systemd can monitor the daemonized
container. https://github.com/moby/moby/issues/6791
* Why switch then? On Flatcar Linux, podman isn't shipped. rkt
works, but isn't developing while container standards continue
to move forward. Typhoon has used runc for the Kubelet runner
before in Fedora Atomic, but its more low-level. So we're left
with Docker, which is less than ideal, but shipped in Flatcar
* Flatcar Linux appears to be shifting system components to
use docker, which does provide some limited guards against
breakages (e.g. Flatcar cannot enable docker live restore)
2020-10-19 07:51:25 +02:00
| on-host kubelet | docker | podman |
2020-08-28 08:25:44 +02:00
| CNI plugins | calico, cilium, flannel | calico, cilium, flannel |
| coordinated drain & OS update | [FLUO ](https://github.com/kinvolk/flatcar-linux-update-operator ) addon | [fleetlock ](https://github.com/poseidon/fleetlock ) |
2018-04-26 11:41:04 +02:00
## Directory Locations
2018-04-24 10:10:40 +02:00
2018-04-26 11:41:04 +02:00
Typhoon conventional directories.
2018-04-24 10:10:40 +02:00
| Kubelet setting | Host location |
|-------------------|--------------------------------|
2021-04-02 08:45:19 +02:00
| cni-conf-dir | /etc/cni/net.d |
2018-04-24 10:10:40 +02:00
| pod-manifest-path | /etc/kubernetes/manifests |
| volume-plugin-dir | /var/lib/kubelet/volumeplugins |