Добавить
Уведомления

how to install Microk8s and create high availability cluster

Support channel: https://www.youtube.com/c/HeikkiKoivisto/?sub_confirmation=1 Continue of video series on Kubernetes, this time preparing Microk8s cluster for Rancher and share storage on the cluster. On next will be installing Rancher on Kubernetes. Commands: How to create MicroK8s cluster on Ubuntu 20.04 and install Rancher on it + use Longhorn hosts: docker1 192.168.10.31 - docker3 192.168.10.33 Install microk8s from the 1.19 channel (Rancher doesn't support Kubernetes 1.20 yet): sudo snap install microk8s --classic --channel=1.19 MicroK8s creates a group to enable seamless usage of commands which require admin privilege sudo usermod -a -G microk8s $USER sudo chown -f -R $USER ~/.kube su - $USER set failure domains for HA mode ( missing greater than a sign) sudo echo "failure-domain=42" to /var/snap/microk8s/current/args/ha-conf sudo microk8s.stop && sudo microk8s.start Check the status microk8s status add nodes: generate auth codes: microk8s add-node Add second node: microk8s join 192.168.10.31:25000/fd225678eeaa44ca74210c8935e76743 add thrid node: microk8s join 192.168.10.31:25000/002332659bc8695d7d536433c7086334 Check nodes: microk8s kubectl get node #Microk8s #cluster #Rancher

12+
16 просмотров
2 года назад
12+
16 просмотров
2 года назад

Support channel: https://www.youtube.com/c/HeikkiKoivisto/?sub_confirmation=1 Continue of video series on Kubernetes, this time preparing Microk8s cluster for Rancher and share storage on the cluster. On next will be installing Rancher on Kubernetes. Commands: How to create MicroK8s cluster on Ubuntu 20.04 and install Rancher on it + use Longhorn hosts: docker1 192.168.10.31 - docker3 192.168.10.33 Install microk8s from the 1.19 channel (Rancher doesn't support Kubernetes 1.20 yet): sudo snap install microk8s --classic --channel=1.19 MicroK8s creates a group to enable seamless usage of commands which require admin privilege sudo usermod -a -G microk8s $USER sudo chown -f -R $USER ~/.kube su - $USER set failure domains for HA mode ( missing greater than a sign) sudo echo "failure-domain=42" to /var/snap/microk8s/current/args/ha-conf sudo microk8s.stop && sudo microk8s.start Check the status microk8s status add nodes: generate auth codes: microk8s add-node Add second node: microk8s join 192.168.10.31:25000/fd225678eeaa44ca74210c8935e76743 add thrid node: microk8s join 192.168.10.31:25000/002332659bc8695d7d536433c7086334 Check nodes: microk8s kubectl get node #Microk8s #cluster #Rancher

, чтобы оставлять комментарии