Scripts dir is use binary deploy kubernetes cluster,default version is v1.14.0.Kubernetes-operator use ansible call this scripts and deploy kubernetes cluster.
use scripts deploy kubernetes:
- clone kubernetes-operator scripts in localhost
/home/kubernetes-operator/scripts
path - define version and hosts in
deploy/config.sh
,default bin file inbin/
,thebin/
dir file is mock, and you need to replace withhttps://github.com/gosoon/kubernetes-utils/tree/master/scripts/bin
- define host list in
deploy/hosts_env
- configure host login using the private key,put the public key on all hosts,and save ssh private-key in
/home/kubernetes-operator/private-key
- exec scripts to deploy
$ cd deploy/
$ bash deploy.sh etcd
$ bash deploy.sh master
$ bash deploy.sh node