Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tingweiwang
/
k8s
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 27416575
authored
Aug 11, 2020
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改kubelet数据目录为/data/kubelet
1 parent
325ae927
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
script/k8s/add_node.sh
script/k8s/deploy-gpu-k8s.sh
script/seetaas/3-set-mysql.sh
script/k8s/add_node.sh
View file @
2741657
...
...
@@ -90,6 +90,7 @@ do
cat >>/opt/kubernetes/cfg/kubelet.
$new_node_ip
<<EOF
KUBELET_OPTS="--logtostderr=false \
--v=2 \
--root-dir=/data/kubelet \
--log-dir=/opt/kubernetes/log \
--kubeconfig=/opt/kubernetes/cfg/kubelet.kubeconfig \
--bootstrap-kubeconfig=/opt/kubernetes/cfg/bootstrap.kubeconfig \
...
...
script/k8s/deploy-gpu-k8s.sh
View file @
2741657
...
...
@@ -341,6 +341,7 @@ do
cat >>/opt/kubernetes/cfg/kubelet.
$node_ip
<<EOF
KUBELET_OPTS="--logtostderr=false \
--v=2 \
--root-dir=/data/kubelet \
--log-dir=/opt/kubernetes/log \
--kubeconfig=/opt/kubernetes/cfg/kubelet.kubeconfig \
--bootstrap-kubeconfig=/opt/kubernetes/cfg/bootstrap.kubeconfig \
...
...
script/seetaas/3-set-mysql.sh
View file @
2741657
...
...
@@ -28,9 +28,9 @@ echo "为autodl-core设置service记录"
#seetaas3是service_id,需要保证configmap与初始化sql里的service_id一致,内部和私有部署为seetaas3,金山云为kpl
mysql -u
$mysql_user
-p
$mysql_password
-e
'INSERT INTO `autodl-core`.`service` (`service_id`, `noti_api`) VALUES ("seetaas3", "http://kpl--monitor.kpl.svc.cluster.local:8920/status");'
#######################设置user-center数据库相关########################
echo
"加载user-center所需sql"
mysql -u
$mysql_user
-p
$mysql_password
user-center <
$workspace
/src/user-center/sql/20190411.sql
mysql -u
$mysql_user
-p
$mysql_password
user-center <
$workspace
/src/user-center/sql/20190425.sql
#
echo "加载user-center所需sql"
#
mysql -u $mysql_user -p$mysql_password user-center <$workspace/src/user-center/sql/20190411.sql
#
mysql -u $mysql_user -p$mysql_password user-center <$workspace/src/user-center/sql/20190425.sql
echo
"为user-center 设置service记录,记录为
$seetaas_frontend
"
mysql -u
$mysql_user
-p
$mysql_password
-e
'INSERT INTO `user-center`.`app_info` (`app_name`, `host`) VALUES ("kpl","http://106.38.203.204:30188");'
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment