Installing kubernetes cluster (single node) with the following:
- ubuntu 22.04 server
- kubeadm
- kubectl
- kubelet
- helm
- k9s
Inside kubernetes:
- Kube-vip (for multimaster)
- Metric-server
- Flannel or (calico)
- Metallb
- liqo
git clone git@github.com:RobotnikAutomation/kubernetes-install.git
checkout devel
cd kubernetes-install
- Start the http server on the remote machine
git clone git@github.com:RobotnikAutomation/kubernetes-install.git
checkout devel
cd kubernetes-install
cd www/
python3 -m http.server 3003
- Burn the image on a pendrive
- Run the cloud init http server on the remote machine
- Ensure that machine you are going to install has ethernet connection with dhcp
- Boot the machine with the pendrive
- Press e when the grub enter
- Change the line to
linux /casper/vmlinuz autoinstall ip=dhcp ds=nocloud-net\;s=http://192.168.20.165:3003/edge1/ -- net.ifnames=0 biosdevname=0
- Press F10
- Wait thill the installation is over
- Remove the pendrive
- restart the machine
- Wait till cloud init runs all the first boot commands
https://github.com/mwhudson/livefs-editor.git
cd livefs
livefs-editor
sudo su
python -m pip install .
exit
cd iso/
../scripts/download-ubuntu-iso.sh
#edit your url accordingly where your http will be
cloud_init_url=http://192.168.20.165:3003/edge/
sed -i "s#http://192.168.20.165:3003/edge/#${cloud_init_url}#" actions.yaml
sudo livefs-edit $(ls ubuntu-*-*.iso | tail -n1) rob-ci-$(ls ubuntu-*-*.iso | tail -n1) --action-yaml actions.yaml
- Burn the image on a pendrive
- Run the cloud init http server on the remote machine
- Ensure that machine you are going to install has ethernet connection with dhcp
- Boot the machine with the pendrive
- Wait thill the installation is over
- Remove the pendrive
- restart the machine
- Wait till cloud init runs all the first boot commands
- Log in to the machine
- edit the file
.cluster-init/environment
accordingly with your need and ip ranges - execute the following command
.cluster-init/start-cluster.sh
- execute the following command
.cluster-init/destroy-cluster.sh