Based on Kubernetes 1.15.3
git clone https://github.com/fishercht1995/progress-based-k8s-scheduler.git
There is detailed version from Shaolun Zhang https://github.com/zsl3203/summer
deploy k8s system
./progress-based-k8s-scheduler/kubernetes/deploy.sh
init k8s in the master node, and get token
./progress-based-k8s-scheduler/kubernetes/init.sh
deploy k8s system
./progress-based-k8s-scheduler/kubernetes/deploy.sh
Using Token get in the first step, so the worker will join into k8s cluster
./progress-based-k8s-scheduler/pgmonitor/master.sh
Dashboards Import: https:///dashboards/315
get externel ip address
dig +short myip.opendns.com @resolver1.opendns.com
sudo apt-get update
sudo apt install nfs-kernel-server
sudo mkdir -p /mnt/linuxidc
sudo chown nobody:nogroup /mnt/linuxidc
sudo chmod 777 /mnt/linuxidc
sudo nano /etc/exports
/mnt/linuxidc masterIP(rw,sync,no_subtree_check)
/mnt/linuxidc client1IP(rw,sync,no_subtree_check)
/mnt/linuxidc client2IP(rw,sync,no_subtree_check)
sudo exportfs -a
sudo systemctl restart nfs-kernel-server
sudo apt-get update
sudo apt-get install nfs-common
sudo mkdir -p /mnt/linuxidc_client
sudo mount master_ip:/mnt/linuxidc /mnt/linuxidc_client
kubectl edit clusterrole system:kube-scheduler
add my-scheduler
in resourceNames:
add after config file
- apiGroups:
- storage.k8s.io
resources:
- storageclasses
verbs:
- watch
- list
- get
change AUTH
- apiGroups:
- ""
resources:
- pods
verbs:
- delete
- get
- list
- watch
- create