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(){ ...@@ -227,6 +227,11 @@ copy_host_file(){
fi fi
} }
add_to_master(){
echo "Add node to CP"
#$key=kubeadm token create --print-join-command
}
main(){ main(){
...@@ -234,10 +239,15 @@ main(){ ...@@ -234,10 +239,15 @@ main(){
#update_system #update_system
echo "Installing" echo "Installing"
copy_host_file $1 copy_host_file $1
prerequisite if [[ $2 == "cp"]]; then
install_cri prerequisite
install_cri
install_k8s install_k8s
copy_k8s_config copy_k8s_config
else
add_to_master
fi
echo "Finish Setup K8S" echo "Finish Setup K8S"
exit 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