This is sample KIND deployment. This project might not maintenance for now.
Kind deployment on Linux and Windows. This includes metallb and dashboard.
-Ubuntu Linux Server 20.04.3 amd64 or arm64 4vCPU 16GB RAM 50GB above (Don't install any other extra packages) on vSphere VM.
If you are using ESX VM and you would like to test CNI, Loadbalancer, When you create VM, you can add VRAM, you can use Xwindow with high resolution.
-Windows 10 4vCPU 16GB RAM 50GB above
- ubuntu Server 20.04 in MS Appstore
- Docker Desktop (https://hub.docker.com/editions/community/docker-ce-desktop-windows)
- KIND (https://kind.sigs.k8s.io/docs/user/quick-start/)
- external Minio / NFS Server (Option).
Configure your clone with ssh key then git clone this.
- Linux
sudo -i
git clone https://github.com/masezou/k8s-study
cd k8s-study
./0-minio-lnx.sh ; ./1-buildk8s-lnx.sh ; ./2-tool.sh ; ./3-configk8s.sh ; ./4-csi-storage.sh ; ./5-desktop.sh
- Ubuntu on Windows 10 ... It is not tested well...
sudo -i
mkdir .kube
git clone git@github.com:masezou/k8s-study.git
cd k8s-study
cp 1-buildk8s-win.cmd /mnt/c/Users/[Username]/Desktop/
cp config.yml /mnt/c/Users/[Username]/Desktop/
Execute 1-buildk8s-win.cmd in Windows 10 native environment.
- Ubuntu on Windows 10
You need to modify NFSSVR/NFSPATH in ./4-nfs-storage.sh
sudo -i
cp /mnt/c/Users/[Username]/.kube/config ~/.kube/
chmod -R go-wr ~/.kube
kubectl get node
cd k8s-study
sudo ./2-tool.sh
./3-configk8s.sh
./4-csi-storage.sh
- Loadbalancer and ingress was configured but the magic is only in Kind/Docker network. You can play loadbalancer and ingress if you try to install desktop system. Easist way is executing P-desktop.sh.
- 0-minio-win.ps1, You need to edit administrator password in the script, before running the script.
- This environment is KIND environment. Metallb loadbalancer only affects to accessing from localhost. If you want to access from out of box. kubectl port-forward --address 0.0.0.0 service/hogehoge
- If you want use bitnami/helm, you may need to add "volumePermissions.enabled=true" because hostpath driver need to have root permission in PVC.