Commit 111ce079 by tingweiwang

新增下载nfs-common,sed-upper.sh增加recover参数

1 parent e7169dad
...@@ -20,7 +20,7 @@ redis_host=INTRANET_IP:6379 ...@@ -20,7 +20,7 @@ redis_host=INTRANET_IP:6379
redis_password=seetatech redis_password=seetatech
mongo_host='mongodb://admin:admin@INTRANET_IP:27017/seetaas?authSource=admin' #&号前记得加转义 mongo_host='mongodb://admin:admin@INTRANET_IP:27017/seetaas?authSource=admin' #&号前记得加转义
harbor_host=INTRANET_IP:5000 harbor_host=INTRANET_IP:5000
hb_host=INTRANET_IP:5000 hb_host=INTRANET_IP:5000 #如果是私有部署则共用一个私有harbor,如果是 公用部署则改成hb.seetatech.com
###############################修改后端app.yaml################################ ###############################修改后端app.yaml################################
sudo sed -i s/redis_host/$redis_host/g `find $workspace -type f -name app.yaml` sudo sed -i s/redis_host/$redis_host/g `find $workspace -type f -name app.yaml`
sudo sed -i s/mysql_host/$mysql_host/g `find $workspace -type f -name app.yaml` sudo sed -i s/mysql_host/$mysql_host/g `find $workspace -type f -name app.yaml`
......
...@@ -19,7 +19,7 @@ df -h |grep /dev/md5 && echo "raid5挂载成功,挂载路径是/storage/nfs" ...@@ -19,7 +19,7 @@ df -h |grep /dev/md5 && echo "raid5挂载成功,挂载路径是/storage/nfs"
#mdadm -As /dev/md5 # assemble md5 #mdadm -As /dev/md5 # assemble md5
##################部署nfs#################### ##################部署nfs####################
apt install nfs-kernel-server nfs-common apt install nfs-kernel-server nfs-common
echo "$nfs_path *(rw,sync,no_root_squash)" >>/etc/exports echo "$nfs_path *(rw,async,no_root_squash)" >>/etc/exports
/etc/init.d/nfs-kernel-server restart /etc/init.d/nfs-kernel-server restart
#apt install nfs-common #apt install nfs-common
#sudo mount -t nfs 192.168.1.242:/mnt/md5 [NFS_MNT_CLIENT_LOC] #sudo mount -t nfs 192.168.1.242:/mnt/md5 [NFS_MNT_CLIENT_LOC]
...@@ -49,7 +49,8 @@ ansible new_node -m shell -a "service docker status" ...@@ -49,7 +49,8 @@ ansible new_node -m shell -a "service docker status"
ansible new_node -m shell -a "cat /etc/docker/daemon.json" ansible new_node -m shell -a "cat /etc/docker/daemon.json"
echo "还原daemon.json模板文件" echo "还原daemon.json模板文件"
sed -i s/$harbor_host/harbor_host/g /root/k8s/config/daemon.json sed -i s/$harbor_host/harbor_host/g /root/k8s/config/daemon.json
###################################################################################
ansible new_node -m shell -a "apt install nfs-common --allow-unauthenticated"
########################################################################################### ###########################################################################################
ansible new_node -m copy -a "src=/root/k8s/bin/kube-proxy dest=/opt/kubernetes/bin/ mode=777" ansible new_node -m copy -a "src=/root/k8s/bin/kube-proxy dest=/opt/kubernetes/bin/ mode=777"
ansible new_node -m copy -a "src=/root/k8s/bin/kubelet dest=/opt/kubernetes/bin/ mode=777" ansible new_node -m copy -a "src=/root/k8s/bin/kubelet dest=/opt/kubernetes/bin/ mode=777"
......
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUR2akNDQXFhZ0F3SUJBZ0lVRHZSbjF6MnVBU291NnZxcGYyb3N1YUVLcjljd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1pURUxNQWtHQTFVRUJoTUNRMDR4RURBT0JnTlZCQWdUQjBKbGFVcHBibWN4RURBT0JnTlZCQWNUQjBKbAphVXBwYm1jeEREQUtCZ05WQkFvVEEyczRjekVQTUEwR0ExVUVDeE1HVTNsemRHVnRNUk13RVFZRFZRUURFd3ByCmRXSmxjbTVsZEdWek1CNFhEVEU1TURReU5qQTFNVE13TUZvWERUSTBNRFF5TkRBMU1UTXdNRm93WlRFTE1Ba0cKQTFVRUJoTUNRMDR4RURBT0JnTlZCQWdUQjBKbGFVcHBibWN4RURBT0JnTlZCQWNUQjBKbGFVcHBibWN4RERBSwpCZ05WQkFvVEEyczRjekVQTUEwR0ExVUVDeE1HVTNsemRHVnRNUk13RVFZRFZRUURFd3ByZFdKbGNtNWxkR1Z6Ck1JSUJJakFOQmdrc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XBjdW91WVlycTc4MytwU1hMcVY0b2tuWlA1aHk4TktBdVFxbkEKZTNmekoyMm94VGN3VTY0eUQwQXU5Z3hXYW5INFFpbmpObGx5WCtrK2FmYmxiMURSdFFxalF0TmdBdGZ3a1M4ZQpxV3c9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
server: https://192.168.1.32:6443
name: kubernetes
contexts:
- context:
cluster: kubernetes
user: kubelet-bootstrap
name: default
current-context: default
kind: Config
preferences: {}
users:
- name: kubelet-bootstrap
user:
token: c5d5a11e13492748800f4fba7b687623
...@@ -13,7 +13,7 @@ interface=eno1 #本机IP的物理网卡名称,用于flannel的配置。 ...@@ -13,7 +13,7 @@ interface=eno1 #本机IP的物理网卡名称,用于flannel的配置。
######################################################################################## ########################################################################################
echo "开始安装ansbile" echo "开始安装ansbile"
apt update --allow-insecure-repositories apt update --allow-insecure-repositories
apt install sshpass ansible -y --allow-unauthenticated apt install nfs-common sshpass ansible -y --allow-unauthenticated
echo "拷贝ansible-hosts文件" echo "拷贝ansible-hosts文件"
cp -a /root/k8s/config/ansible-hosts /etc/ansible/hosts cp -a /root/k8s/config/ansible-hosts /etc/ansible/hosts
echo "渲染修改ansible hosts" echo "渲染修改ansible hosts"
......
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUR2akNDQXFhZ0F3SUJBZ0lVRHZSbjF6MnVBU291NnZxcGYyb3N1YUVLcjljd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1pURUxNQWtHQTFVRUJoTUNRMDR4RURBT0JnTlZCQWdUQjBKbGFVcHBibWN4RURBT0JnTlZCQWNUQjBKbAphVXBwYm1jeEREQUtCZ05WQkFvVEEyczRjekVQTUEwR0ExVUVDeE1HVTNsemRHVnRNUk13RVFZRFZRUURFd3ByCmRXSmxjbTVsZEdWek1CNFhEVEU1TURReU5qQTFNVE13TUZvWERUSTBNRFF5TkRBMU1UTXdNRm93WlR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UdBQTY3Q3diQzhhQy9vYlhTNkJBZnliZWdJbUpJcGNrNEd6RExqaUF4WTBnaml2aE5adzhwdQp2N0lXT2FKcUM0ZUxoOG4wQzZ6MXhaMENWV1dLRjFRT2o4VmUvcmptSzkvUUdta3I1MHpJUzV5RDRrL2hpdzE3CklMWUJmZFRHQWtxOFk2R01XcEtRMGxDdTJ6NXBjdW91WVlycTc4MytwU1hMcVY0b2tuWlA1aHk4TktBdVFxbkEKZTNmekoyMm94VGN3VTY0eUQwQXU5Z3hXYW5INFFpbmpObGx5WCtrK2FmYmxiMURSdFFxalF0TmdBdGZ3a1M4ZQpxV3c9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
server: https://192.168.1.32:6443
name: kubernetes
contexts:
- context:
cluster: kubernetes
user: kube-proxy
name: default
current-context: default
kind: Config
preferences: {}
users:
- name: kube-proxy
user:
client-certificate-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQzakNDQXNhZ0F3SUJBZ0lVZDYrWnU4MENkMGQ4Z2dJcTZqR3hwbXp1VjhBd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1pURUxNQWtHQTFVRUJoTUNRMDR4RURBT0JnTlZCQWdUQjBKbGFVcHBibWN4RURBT0JnTlZCQWNUQjBKbAphVXBwYm1jeEREQUtCZ05WQkFvVEEyczRjekVQTUEwR0ExVUVDeE1HVTNsemRHVnRNUk13RVFZRFZRUURFd3ByCmRXSmxjbTVsZEdWek1CNFhEVEU1TURVd056QTNOVEV3TUZvWERUSTVNRFV3TkRBM05URXdNRm93YkRFTE1Ba0cKQTFVRUJoTUNRMDR4RURBT0JnTlZCQWdUQjBKbGFVcHBibWN4RURBT0JnTlZCQWNUQjBKbGFVcHBibWN4RERBSwpCZ05WQkFvVEEyczRjekVQTUEwR0ExVUVDeE1HVTNsemRHVnRNUm93R0FZRFZRUURFeEZ6ZVhOMFpXMDZhM1ZpClpTMXdjbTk0ZVRDQ0FTSXdEUVlKS29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BGdGprSERNYlBjK09Na01ETUpOQ1RScjFuYmhZaVA1UkNRWVo0U080LzRoVmw4enJRY1JCY3RTCk5pTkRnUUtCZ0JTS1Z3VDdINUxMWS9qVnE4Sk5HTFZRNXZ4WWxTdVRYQzhYSkhPUDQ5dzV5dlY1eERORDdhUE0KV1hjOGR6aDdQNE5PTG1yL1UwL0xYQzhrdGx4UU1Xai94N3J5ZitFQk0rNVJhK2pab0ViN0xhUHQ2d2MwSGM0UApMWEY1dHo1dENRbVo5V1FXL1pGZGUwMXNYYlJSWFFRdkVvdE1QNVhMd1dDN1FpRlA2TDZpCi0tLS0tRU5EIFJTQSBQUklWQVRFIEtFWS0tLS0tCg==
...@@ -14,15 +14,31 @@ function autodl_sed() { ...@@ -14,15 +14,31 @@ function autodl_sed() {
sed -i s/PUBLIC_IP/$PUBLIC_IP/g autodl/2-replace-file.sh sed -i s/PUBLIC_IP/$PUBLIC_IP/g autodl/2-replace-file.sh
sed -i s/INTRANET_IP/$INTRANET_IP/g autodl/2-replace-file.sh sed -i s/INTRANET_IP/$INTRANET_IP/g autodl/2-replace-file.sh
} }
function seetaas_recover() {
sed -i s/$PUBLIC_IP/PUBLIC_IP/g seetaas/2-replace-file.sh
sed -i s/$INTRANET_IP/INTRANET_IP/g seetaas/2-replace-file.sh
}
function autodl_recover() {
sed -i s/$PUBLIC_IP/PUBLIC_IP/g autodl/2-replace-file.sh
sed -i s/$INTRANET_IP/INTRANET_IP/g autodl/2-replace-file.sh
}
case $1 in case $1 in
seetaas) seetaas_sed)
seetaas_sed seetaas_sed
;; ;;
autodl) autodl_sed)
autodl_sed autodl_sed
;; ;;
seetaas_recover)
seetaas_recover
;;
autodl_recover)
autodl_recover
;;
*) *)
echo "please input (seetaas|autodl)" echo "please input (seetaas_sed|autodl_sed|seetaas_recover|autodl_recover)"
esac esac
...@@ -21,7 +21,7 @@ redis_host=INTRANET_IP:6379 ...@@ -21,7 +21,7 @@ redis_host=INTRANET_IP:6379
redis_password=seetatech redis_password=seetatech
mongo_host='mongodb://admin:admin@INTRANET_IP:27017/seetaas?authSource=admin' #&号前记得加转义 mongo_host='mongodb://admin:admin@INTRANET_IP:27017/seetaas?authSource=admin' #&号前记得加转义
harbor_host=INTRANET_IP:5000 harbor_host=INTRANET_IP:5000
hb_host=INTRANET_IP:5000 hb_host=INTRANET_IP:5000 #如果是私有部署则共用一个私有harbor,如果是 公用部署则改成hb.seetatech.com
###############################修改后端app.yaml################################ ###############################修改后端app.yaml################################
sudo sed -i s/redis_host/$redis_host/g `find $workspace -type f -name app.yaml` sudo sed -i s/redis_host/$redis_host/g `find $workspace -type f -name app.yaml`
sudo sed -i s/mysql_host/$mysql_host/g `find $workspace -type f -name app.yaml` sudo sed -i s/mysql_host/$mysql_host/g `find $workspace -type f -name app.yaml`
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!