Commit 1dd2ca12 by tingweiwang

fix bug

1 parent c5f54762
{
"registry-mirrors": ["https://hub-mirror.c.163.com","https://rrkngb5t.mirror.aliyuncs.com"],
"insecure-registries":["harbor_host"]
}
#!/bin/bash
#wangtingwei
#yum源配置
:<<!
cat > /etc/apt/sources.list << EOF
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
EOF
#dns解析配置
echo "nameserver 114.114.114.114" >>/etc/resolv.conf
!
#apt update
#apt install lrzsz vim ntpdate wget curl dstat htop lsof iotop sysstat zip unzip bzip2 -y
#apt install gcc g++ make cmake autoconf net-tools -y
##################################################################################################
#关闭防火墙
systemctl stop ufw.service
systemctl disable ufw.service
......@@ -74,8 +56,7 @@ EOF
fs.inotify.max_user_watches=1048576
EOF
modprobe br_netfilter && /sbin/sysctl -p && echo "sysctl set OK!!"
echo "make k8s dir success"
cd /root/k8s/bin/ && cp cfssl cfssl-certinfo cfssljson
#cd /root/k8s/bin/ && cp cfssl cfssl-certinfo cfssljson
########################change bash##############################
echo "+++++++++++++++++++++++++++++change bash++++++++++++++++++++++++++++++"
rm -rf /bin/sh && ln -s /bin/bash /bin/sh
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUR2akNDQXFhZ0F3SUJBZ0lVRHZSbjF6MnVBU291NnZxcGYyb3N1YUVLcjljd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1pURUxNQWtHQTFVRUJoTUNRMDR4RURBT0JnTlZCQWdUQjBKbGFVcHBibWN4RURBT0JnTlZCQWNUQjBKbAphVXBwYm1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TkFRRUxCUUFEZ2dFQkFJY0FJRUI1TDc0TjZTZU1nMW9rCkY2TGRPY2c2d1NXMGp1NGZNOUZoN3ZuVmlrVFhtK2VBQ0dCcWhySXpCOVd3bjZGWWplaTdIMCtMSUJJU2dyQmgKVXk0dFZRckczZUdBQTY3Q3diQzhhQy9vYlhTNkJBZnliZWdJbUpJcGNrNEd6RExqaUF4WTBnaml2aE5adzhwdQp2N0lXT2FKcUM0ZUxoOG4wQzZ6MXhaMENWV1dLRjFRT2o4VmUvcmptSzkvUUdta3I1MHpJUzV5RDRrL2hpdzE3CklMWUJmZFRHQWtxOFk2R01XcEtRMGxDdTJ6NXBjdW91WVlycTc4MytwU1hMcVY0b2tuWlA1aHk4TktBdVFxbkEKZTNmekoyMm94VGN3VTY0eUQwQXU5Z3hXYW5INFFpbmpObGx5WCtrK2FmYmxiMURSdFFxalF0TmdBdGZ3a1M4ZQpxV3c9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
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: 144af0917d244fd134b3136e00fe6e1c
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUR2akNDQXFhZ0F3SUJBZ0lVRHZSbjF6MnVBU291NnZxcGYyb3N1YUVLcjljd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1pURUxNQWtHQTFVRUJoTUNRMDR4RURBT0JnTlZCQWdUQjBKbGFVcHBibWN4RURBT0JnTlZCQWNUQjBKbAphVXBwYm1jeEREQUtCZ05WQkFvVEEyczRjekVQTUEwR0ExVUVDeE1HVTNsemRHVnRNUk13RVFZRFZRUURFd3ByCmRXSmxjbTVsZEdWek1CNFhEVEU1TURReU5qQTFNVE13TUZvWERUSTBNRFF5TkRBMU1UTXdNRm93WlRFTE1Ba0cKQ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QzhhQy9vYlhTNkJBZnliZWdJbUpJcGNrNEd6RExqaUF4WTBnaml2aE5adzhwdQp2N0lXT2FKcUM0ZUxoOG4wQzZ6MXhaMENWV1dLRjFRT2o4VmUvcmptSzkvUUdta3I1MHpJUzV5RDRrL2hpdzE3CklMWUJmZFRHQWtxOFk2R01XcEtRMGxDdTJ6NXBjdW91WVlycTc4MytwU1hMcVY0b2tuWlA1aHk4TktBdVFxbkEKZTNmekoyMm94VGN3VTY0eUQwQXU5Z3hXYW5INFFpbmpObGx5WCtrK2FmYmxiMURSdFFxalF0TmdBdGZ3a1M4ZQpxV3c9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
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: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQzakNDQXNhZ0F3SUJBZ0lVZDYrWnU4MENkMGQ4Z2dJcTZqR3hwbXp1VjhBd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1pURUxNQWtHQTFVRUJoTUNRMDR4RURBT0JnTlZCQWdUQjBKbGFVcHBibWN4RURBT0JnTlZCQWNUQjBKbAphVXBwYm1jeEREQUtCZ05WQkFvVEEyczRjekVQTUEwR0ExVUVDeE1HVTNsemRHVnRNUk13RVFZRFZRUURFd3ByCmRXSmxjbTVsZEdWek1CNFhEVEU1TURVd056QTNOVEV3TUZvWERUSTVNRFV3TkRBM05URXdNRm93YkRFTE1Ba0cKQTFVRUJoTUNRMDR4RURBT0JnTlZCQWdUQjBKbGFVcHBibWN4RURBT0JnTlZCQWNUQjBKbGFVcHBibWN4RERBSwpCZ05WQkFvVEEyczRjekVQTUEwR0ExVUVDeE1HVTNsemRHVnRNUm93R0FZRFZRUURFeEZ6ZVhOMFpXMDZhM1ZpClpTMXdjbTk0ZVRDQ0FTSXdEUVlKS29aSWh2Y05BUU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jK09Na01ETUpOQ1RScjFuYmhZaVA1UkNRWVo0U080LzRoVmw4enJRY1JCY3RTCk5pTkRnUUtCZ0JTS1Z3VDdINUxMWS9qVnE4Sk5HTFZRNXZ4WWxTdVRYQzhYSkhPUDQ5dzV5dlY1eERORDdhUE0KV1hjOGR6aDdQNE5PTG1yL1UwL0xYQzhrdGx4UU1Xai94N3J5ZitFQk0rNVJhK2pab0ViN0xhUHQ2d2MwSGM0UApMWEY1dHo1dENRbVo5V1FXL1pGZGUwMXNYYlJSWFFRdkVvdE1QNVhMd1dDN1FpRlA2TDZpCi0tLS0tRU5EIFJTQSBQUklWQVRFIEtFWS0tLS0tCg==
......@@ -26,22 +26,8 @@ service redis-server restart
echo "start mongo"
service mongodb restart
###################################################################
echo "===================== autodl-core ==================="
cd $workspace/src/autodl-core && make private_deploy mode=dev
sleep 5
echo "===================== user-center-frontend ==================="
cd $workspace/user-center && make private_deploy mode=dev
sleep 5
echo "===================== user-center backend ==================="
cd $workspace/src/user-center && make private_deploy mode=dev
sleep 5
echo "===================== seetaas-v3 ==================="
cd $workspace/seetaas-v3 && make private_deploy mode=dev
sleep 5
echo "===================== seetaas-backend ==================="
cd $workspace/src/seetaas-backend && make private_deploy mode=dev
echo "===================== kpl-stream ==================="
cd $workspace/src/kpl-stream && make private_deploy mode=dev
echo "重新启动业务服务"
sh /root/k8s/script/seetaas/5-seetaas-start.sh
###################################################
echo "wait 20s for start all server"
sleep 20
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!