Docs for creation lab K8s - #849
Conversation
knopers8
left a comment
There was a problem hiding this comment.
again, some comments for migrating this to ansible.
|
|
||
| - Verify all required kernel modules are loaded | ||
|
|
||
| RHEL 10 can have problems with having all required kernel modules, you can check: |
There was a problem hiding this comment.
I'm not sure where this comes from, can't find corresponding advice in the k8s doc and I didn't have to do any of this when installing. When migrating to an ansible playbook, I would try first without.
Maybe it comes from Calico?
| RHEL 10 is running cgroups v2 as a default, so we need containerd to use systemd as cgroups driver so add following to the | ||
| `/etc/containerd/config.toml` together with some other changes (like bin dir and other), contents of the config.toml are: | ||
| ``` | ||
| cat /etc/containerd/config.toml |
There was a problem hiding this comment.
i'd use v3, probably more future-proof:
version = 3
[plugins]
[plugins."io.containerd.cri.v1.images"]
pinned_images = { sandbox = "registry.k8s.io/pause:3.10" }
[plugins."io.containerd.cri.v1.runtime"]
[plugins."io.containerd.cri.v1.runtime".cni]
bin_dir = "/usr/libexec/cni/"
conf_dir = "/etc/cni/net.d"
[plugins."io.containerd.cri.v1.runtime".containerd.runtimes.runc]
[plugins."io.containerd.cri.v1.runtime".containerd.runtimes.runc.options]
SystemdCgroup = true
[plugins."io.containerd.internal.v1.opt"]
path = "/var/lib/containerd/opt"
There was a problem hiding this comment.
This was taken directly from k8s docs 🤷♂️
There was a problem hiding this comment.
I remember getting a part of it from k8s docs, but then needing to extend it with some other snippet which was in version 3. Maybe they updated the documentation in the meantime and they put the complete thing...?
|
|
||
|
|
||
| # To init Control plane node | ||
| - Open following ports: [k8s](https://kubernetes.io/docs/reference/networking/ports-and-protocols/), [calico](https://docs.tigera.io/calico-enterprise/latest/operations/troubleshoot/troubleshooting) |
There was a problem hiding this comment.
that page in calico does not list any ports
|
|
||
| The reason why cluster is responding NotReady is that we have no network plugin. | ||
|
|
||
| - Calico |
There was a problem hiding this comment.
I think we could go with Cilium, since ATLAS have experience with both and picked it. They measured that Cilium scales much better with number of Pods (quadratic vs linear, IIRC). I would not diverge at this point unless we have a reason for it.
There was a problem hiding this comment.
That I found it wrong and I am sorry for that...
No description provided.