Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qg-docker-entrypoints
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qg-docker-entrypoints
Commits
b2465910
Commit
b2465910
authored
Oct 10, 2019
by
kewei.jia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置集群的修改
parent
52d86214
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
32 deletions
+32
-32
java.sh
tke/java.sh
+17
-17
nodejs.sh
tke/nodejs.sh
+15
-15
No files found.
tke/java.sh
View file @
b2465910
...
...
@@ -12,23 +12,23 @@ package_path="${module_path}/app.jar"
config_path
=
"
${
module_path
}
/application.properties"
log_path
=
"/home/quant_group/logs"
echo
192.168.4.50 eos.quantgroups.com
>>
/etc/hosts
if
[[
$CLUSTER
==
'qke'
]]
;
then
echo
172.30.3.209 apollo-dev.quantgroups.com
>>
/etc/hosts
else
echo
172.17.1.7 apollo-dev.quantgroups.com
>>
/etc/hosts
fi
echo
172.20.3.11 sentry.quantgroups.com
>>
/etc/hosts
#
OLD_IFS="$IFS"
#
IFS="&"
#
array=($HOSTS)
#
IFS="$OLD_IFS"
#
#
for var in ${array[@]}
#
do
#
echo $var|sed "s#=># #g" >> /etc/hosts
#
done
#
echo 192.168.4.50 eos.quantgroups.com >> /etc/hosts
#
if [[ $CLUSTER == 'qke' ]]; then
#
echo 172.30.3.209 apollo-dev.quantgroups.com >> /etc/hosts
#
else
#
echo 172.17.1.7 apollo-dev.quantgroups.com >> /etc/hosts
#
fi
#
echo 172.20.3.11 sentry.quantgroups.com >> /etc/hosts
OLD_IFS
=
"
$IFS
"
IFS
=
"&"
array
=(
$HOSTS
)
IFS
=
"
$OLD_IFS
"
for
var
in
${
array
[@]
}
do
echo
$var
|sed
"s#=># #g"
>>
/etc/hosts
done
# echo 172.30.3.206 apollo-dev.quantgroups.com >> /etc/hosts
# echo 172.20.3.11 sentry.quantgroups.com >> /etc/hosts
...
...
tke/nodejs.sh
View file @
b2465910
...
...
@@ -10,25 +10,25 @@ cd ${package_path}
echo
"echo host"
#OLD_IFS="$IFS"
#IFS="&"
#array=($HOSTS)
#IFS="$OLD_IFS"
#
#for var in ${array[@]}
#do
# echo $var|sed "s#=># #g" >> /etc/hosts
#done
OLD_IFS
=
"
$IFS
"
IFS
=
"&"
array
=(
$HOSTS
)
IFS
=
"
$OLD_IFS
"
for
var
in
${
array
[@]
}
do
echo
$var
|sed
"s#=># #g"
>>
/etc/hosts
done
echo
192.168.4.50 eos.quantgroups.com
>>
/etc/hosts
#echo 192.168.4.50 eos.quantgroups.com >> /etc/hosts
# qke直连apollo服务 begin
if
[[
$CLUSTER
==
'qke'
]]
;
then
echo
172.30.3.208 apollo-dev.quantgroups.com
>>
/etc/hosts
else
echo
172.17.1.7 apollo-dev.quantgroups.com
>>
/etc/hosts
fi
#
if [[ $CLUSTER == 'qke' ]]; then
#
echo 172.30.3.208 apollo-dev.quantgroups.com >> /etc/hosts
#
else
#
echo 172.17.1.7 apollo-dev.quantgroups.com >> /etc/hosts
#
fi
# end
# echo 172.20.3.11 sentry.quantgroups.com >> /etc/hosts
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment