1 master, 2 nodes, 1 nfs server
Initially based on this repo
Also installs helm on master node, NFS Subdir External Provisioner
Pay attention that storageClassName
for PersistentVolumeClaim
should be nfs-client
Example:
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: test-claim
spec:
storageClassName: nfs-client
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Mi
- Working Vagrant setup
- 16 Gig + RAM workstation as the Vms use 6 vCPUS and 6+ GB RAM
To provision the cluster, execute the following commands.
git clone https://github.com/alvicsam/k8s-vagrant
cd k8s-vagrant
./runme.sh
vagrant ssh master
vagrant@master-node:~$ k get nodes
NAME STATUS ROLES AGE VERSION
master-node Ready control-plane,master 14m v1.20.6
worker-node01 Ready worker 12m v1.20.6
worker-node02 Ready worker 10m v1.20.6
vagrant destroy -f