projects:k8s:k8s_setup_with_k0s_k0sctl
Home | clubs :: cloud club :: python_club :: 3D-Printing | projects :: Proxmox | Kubernetes | scripting | utilities | games
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| projects:k8s:k8s_setup_with_k0s_k0sctl [2026/05/27 06:23] – garfield | projects:k8s:k8s_setup_with_k0s_k0sctl [2026/06/09 07:02] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| - Required prep - Ensure unique system ID. K0s cluster deployment will fail if aren' | - Required prep - Ensure unique system ID. K0s cluster deployment will fail if aren' | ||
| sudo systemd-machine-id-setup | sudo systemd-machine-id-setup | ||
| + | </ | ||
| + | - Disable SELinux because k0sctl doesn' | ||
| + | sudo setenforce 0 | ||
| </ | </ | ||
| - System prep ( RPM-based distros ) | - System prep ( RPM-based distros ) | ||
| Line 85: | Line 88: | ||
| firewall-cmd --permanent --add-port=179/ | firewall-cmd --permanent --add-port=179/ | ||
| firewall-cmd --permanent --add-port=4789/ | firewall-cmd --permanent --add-port=4789/ | ||
| + | |||
| + | # Tell Fedora to trust all traffic on the container network bridges | ||
| + | firewall-cmd --permanent --zone=trusted --add-interface=cni0 | ||
| + | firewall-cmd --permanent --zone=trusted --add-interface=kube-router | ||
| + | |||
| + | # Allow pods to masquerade/ | ||
| + | firewall-cmd --permanent --zone=trusted --add-masquerade | ||
| + | |||
| + | firewall-cmd --permanent --zone=trusted --add-source=10.244.0.0/ | ||
| + | firewall-cmd --permanent --zone=trusted --add-source=10.96.0.0/ | ||
| # Reload firewall to apply changes | # Reload firewall to apply changes | ||
| firewall-cmd --reload | firewall-cmd --reload | ||
| </ | </ | ||
| - | - Open the firewall | + | - Disable |
| - | # Open Kubelet API port and networking tunnels | + | sudo systemctl stop firewalld && sudo disable firewalld |
| - | firewall-cmd --permanent --add-port=10250/tcp | + | |
| - | firewall-cmd --permanent --add-port=179/tcp | + | |
| - | firewall-cmd --permanent --add-port=4789/udp | + | |
| - | + | ||
| - | # Reload firewall to apply changes | + | |
| - | firewall-cmd --reload | + | |
| </ | </ | ||
| - Create the cluster< | - Create the cluster< | ||
projects/k8s/k8s_setup_with_k0s_k0sctl.1779863022.txt.gz · Last modified: by garfield
