Commit 87e2cdda by tingweiwang

fix

2 parents 57340aa7 a8cccf4a
......@@ -9,7 +9,7 @@ master_ip=192.168.1.32
harbor_host=192.168.1.32:5000
harbor_passwd=admin #写死的不能改,harbor配置文件中password写死了,当前只能是admin
image_path=/root/k8s/images #写死的不能改
interface=eno1 #本机IP的物理网卡名称,用于flannel的配置。
interface=eno1 #本机内网IP的物理网卡名称,用于flannel的配置。
image_list=`cat $image_path/image_list.txt`
image_list_ksy=`cat $image_path/image_list_ksy.txt`
host_name=`hostname`
......@@ -450,7 +450,7 @@ echo "请手动在master节点 设置命令自动补全,命令在脚本最后
#source <(kubectl completion bash) && echo "source <(kubectl completion bash)" >> ~/.bashrc"
##############################################################################
echo "为gpu节点打标签"
kubectl label node $host_name autodl=true kpl=true gpu=true user_job_node=true internal_service_node=true
kubectl label node $host_name autodl=true kpl=true gpu=true cpu=true user_job_node=true internal_service_node=true
echo "###################创建pv pvc#############"
echo "########################修改pv模板#######################" && sleep 3
sed -i s@NFS_PATH@$NFS_PATH@g /root/k8s/autodl_kpl_base/autodl-nfs/4-pv_pvc.yaml
......
......@@ -26,6 +26,10 @@ 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
}
<<<<<<< HEAD
=======
>>>>>>> a8cccf4aa6ac7b50eae0ee6df4268fb97fa677c5
case $1 in
seetaas_sed)
seetaas_sed
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!