feat(configuration): 增加yarn集群的相关配置

This commit is contained in:
2024-02-26 18:31:47 +08:00
parent 8dfc797dfa
commit 834980f880
17 changed files with 254 additions and 60 deletions

18
bin/upload-config.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
root_path=$(dirname $(cd $(dirname $0); pwd))
clusters=(
b2b12
b9b9
)
for cluster in ${clusters[*]};
do
cd ${root_path}/config/${cluster}
echo Upload config ${cluster}
tar_path=/tmp/${cluster}.tar.gz
tar -czvf ${tar_path} *
ytp-transfer ${tar_path}
rm -rf ${tar_path}
done