2.1 KiB
Kubernetes The Hard Way
This tutorial is partially based on Kubernetes The Hard Way.
The main focus of this tutorial is to explain the necessity of Kubernetes components. That is why there is no need to configure multiple instances of each component and allow us to set up a single-node Kubernetes cluster. Of course, the cluster created can't be used as a production-ready Kubernetes cluster.
To run the labs you need one of the following:
- vm with ubuntu 20.04
- preconfigured docker container (here is the manual how to do that)
Copyright
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (whatever it means).
Labs
- Cluster architecture
- Container runtime
- Kubelet
- Pod networking
- ETCD
- Api Server
- Apiserver - Kubelet integration
- Scheduler
- Controller manager
- Kube-proxy
docker build -t ubuntu-systemd .
docker run -d
--name ubuntu-systemd-container
--privileged
--security-opt seccomp=unconfined
--security-opt apparmor=unconfined
--cap-add=NET_ADMIN
--cap-add=NET_RAW
-v /sys/fs/cgroup:/sys/fs/cgroup:rw
--tmpfs /tmp
--tmpfs /run
--tmpfs /run/lock
ubuntu-systemd
docker run -d
--name ubuntu-systemd-container
--privileged
--security-opt seccomp=unconfined
--security-opt apparmor=unconfined
-v /sys/fs/cgroup:/sys/fs/cgroup:rw
--tmpfs /tmp
--tmpfs /run
--tmpfs /run/lock
ubuntu-systemd