Commit 57340aa7 by tingweiwang

fix

1 parent cbf905d0
......@@ -26,7 +26,6 @@ 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
seetaas_sed)
seetaas_sed
......
......@@ -2,29 +2,29 @@
workspace=/workspace/seetaas
config_workspace=/root/configmap-kpl
################kpl组件变量信息##########################
kpl_frontend=http://106.38.203.205:30180 #30180
kpl_backend=http://106.38.203.205:30200 #30200
kpl_back_socket=ws://106.38.203.205:30200 # 30200 https对应wss
kpl_imageproxy=http://106.38.203.205:30202 #30202
kpl_deploy=http://106.38.203.205:30201 #30201
usercenter_frontend=http://106.38.203.205:30302 #30302
usercenter_backend=http://106.38.203.205:30300 #30300
core_nginx=http://106.38.203.205:30099 #30099
visit_uc_frontend=106.38.203.205 #user-center前端的主机ip 或域名
mobile_frontend=http://106.38.203.205:30181 #30181
kpl_stream=106.38.203.205:30205
kpl_admin_frontend=http://106.38.203.205:30182
#kpl_frontend=http://PUBLIC_IP:30180 #30180
kpl_backend=http://PUBLIC_IP:30180
kpl_back_socket=ws://PUBLIC_IP:30180 # 30200 https对应wss
#kpl_imageproxy=http://PUBLIC_IP:30202 #30202
#kpl_deploy=http://PUBLIC_IP:30201 #30201
#usercenter_frontend=http://PUBLIC_IP:30302 #30302
#usercenter_backend=http://PUBLIC_IP:30300 #30300
#core_nginx=http://PUBLIC_IP:30099 #30099
#visit_uc_frontend=PUBLIC_IP #user-center前端的主机ip 或域名
#mobile_frontend=http://PUBLIC_IP:30181 #30181
kpl_stream=PUBLIC_IP:30205
#kpl_admin_frontend=http://PUBLIC_IP:30182
###############其他依赖服务变量信息#########################################
mysql_host=192.168.1.32:3306
mysql_host=INTRANET_IP:3306
mysql_user=root
mysql_password=seetatech
kpl_db_name=seetaas #kpl服务数据库名字
quota_db_name=quota #新增quota 数据库
redis_host=192.168.1.32:6379
redis_host=INTRANET_IP:6379
redis_password=seetatech
mongo_host='mongodb://admin:admin@192.168.1.32:27017/seetaas?authSource=admin' #&号前记得加转义
harbor_host=192.168.1.32:5000
hb_host=192.168.1.32:5000 #如果是私有部署则共用一个私有harbor,如果是 公用部署则改成hub.kce.ksyun.com
mongo_host='mongodb://admin:admin@INTRANET_IP:27017/seetaas?authSource=admin' #&号前记得加转义
harbor_host=INTRANET_IP:5000
hb_host=INTRANET_IP:5000 #如果是私有部署则共用一个私有harbor,如果是 公用部署则改成hub.kce.ksyun.com
############################kpl关键字整改#################################################
kpl_service_id=seetaas3
kpl_realy_path=seetaas
......@@ -41,18 +41,18 @@ sudo sed -i s/mysql_password/$mysql_password/g `find $config_workspace -type f -
sudo sed -i s/kpl_db_name/$kpl_db_name/g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s/quota_db_name/$quota_db_name/g `find $config_workspace -type f -name "*.yaml"`
#####################################kpl修改后端##############################################
sudo sed -i s#kpl_deploy#$kpl_deploy#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#core_nginx#$core_nginx#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#kpl_frontend#$kpl_frontend#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#visit_uc_frontend#$visit_uc_frontend#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#kpl_admin_frontend#$kpl_admin_frontend#g `find $config_workspace -type f -name "*.yaml"`
#sudo sed -i s#kpl_deploy#$kpl_deploy#g `find $config_workspace -type f -name "*.yaml"`
#sudo sed -i s#core_nginx#$core_nginx#g `find $config_workspace -type f -name "*.yaml"`
#sudo sed -i s#kpl_frontend#$kpl_frontend#g `find $config_workspace -type f -name "*.yaml"`
#sudo sed -i s#visit_uc_frontend#$visit_uc_frontend#g `find $config_workspace -type f -name "*.yaml"`
#sudo sed -i s#kpl_admin_frontend#$kpl_admin_frontend#g `find $config_workspace -type f -name "*.yaml"`
#############################kpl修改前端app.yaml#######################################
sudo sed -i s#kpl_backend#$kpl_backend#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#usercenter_frontend#$usercenter_frontend#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#usercenter_backend#$usercenter_backend#g `find $config_workspace -type f -name "*.yaml"`
#sudo sed -i s#usercenter_frontend#$usercenter_frontend#g `find $config_workspace -type f -name "*.yaml"`
#sudo sed -i s#usercenter_backend#$usercenter_backend#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#kpl_back_socket#$kpl_back_socket#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#kpl_imageproxy#$kpl_imageproxy#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#mobile_frontend#$mobile_frontend#g `find $config_workspace -type f -name "*.yaml"`
#sudo sed -i s#kpl_imageproxy#$kpl_imageproxy#g `find $config_workspace -type f -name "*.yaml"`
#sudo sed -i s#mobile_frontend#$mobile_frontend#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#kpl_stream#$kpl_stream#g `find $config_workspace -type f -name "*.yaml"`
###################################################################################################
sudo sed -i s#kpl_service_id#$kpl_service_id#g `find $config_workspace -type f -name "*.yaml"`
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!