Commit b35572c2 authored by Wen Wei Li's avatar Wen Wei Li

need to add noraml node to CP node

parent 1116e45d
### install k8s
### Usage
* create a hosts file to override the k8s node defualt hosts file
* for example
`vim ./hosts`
```
# k8s nodes
192.168.18.6 dk8scp1
192.168.18.7 dk8snodecicd1
192.168.18.8 dk8snodeap1
192.168.18.9 dk8snodedb1
```
* install k8s cp node
`./install-k8s.sh ./hosts cp`
* add k8s node
`./install-k8s.sh ./hosts node`
* install helm char
`./install-helm.sh`
......@@ -227,6 +227,11 @@ copy_host_file(){
fi
}
add_to_master(){
echo "Add node to CP"
#$key=kubeadm token create --print-join-command
}
main(){
......@@ -234,10 +239,15 @@ main(){
#update_system
echo "Installing"
copy_host_file $1
prerequisite
install_cri
if [[ $2 == "cp"]]; then
prerequisite
install_cri
install_k8s
copy_k8s_config
copy_k8s_config
else
add_to_master
fi
echo "Finish Setup K8S"
exit
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment