Kubernetes
System configuration
sudo systemctl stop firewalld
sudo systemctl disable firewalld
sudo systemctl stop iptables
sudo systemctl disable iptables
sudo sysctl -w net.ipv4.ip_forward=1
sudo sysctl -w net.ipv4.conf.all.rp_filter=1
# Manjaro / Arch / CentOS 7
sudo echo "net.ipv4.ip_forward = 1" >> /usr/lib/sysctl.d/50-default.conf
sudo echo "net.ipv4.conf.all.rp_filter = 1" >> /usr/lib/sysctl.d/50-default.conf
# Reboot
Microk8s
- Install snapd via [[https://docs.snapcraft.io/installing-snapd/6735]]
sudo snap install microk8s
sudo microk8s.enable dns registry
- Add registry to file /var/snap/microk8s/current/args/docker-daemon.json
{ "insecure-registries" : ["localhost:32000", "my-registry.local"] }
Rancher
docker run -d --restart=always -p 8080:80 -p 8443:443 --name rancher-server rancher/rancher:latest
Merge all config files
cd $HOME/Documents/kube; KUBECONFIG=`files=(*); echo $files | sed -E 's#\s+#:#g'` kubectl config view --merge --flatten > $HOME/.kube/config; cd $HOME