大量更新

This commit is contained in:
zeaslity
2025-01-22 09:49:04 +08:00
parent a7f691cf7d
commit 20c4f57715
46 changed files with 19954 additions and 31 deletions

View File

@@ -7,6 +7,12 @@ https://oss.demo.uavcmlc.com/cmlc-installation/downloadfile/amd/harbor-offline-i
https://oss.demo.uavcmlc.com/cmlc-installation/downloadfile/amd/docker-compose-linux-x86_64-v2.18.0
https://oss.demo.uavcmlc.com/cmlc-installation/downloadfile/amd/rke_linux-amd64
https://oss.demo.uavcmlc.com/cmlc-installation/downloadfile/amd/mysql-8.0.27-linux-glibc2.17-x86_64-minimal.zip
mc.exe get uav-demo/cmlc-installation/downloadfile/amd/docker-amd64-20.10.15.tgz "D:\CmiiDeployOffline\"
mc.exe get uav-demo/cmlc-installation/downloadfile/amd/docker-compose-linux-x86_64-v2.18.0 "D:\CmiiDeployOffline\"
@@ -16,4 +22,5 @@ chmod +x /usr/local/bin/octopus-agent
printf 'help\n' | octopus-agent --mode=bastion
file_list=(docker-amd64-20.10.15.tgz harbor-offline-installer-v2.9.0 docker-compose-linux-x86_64-v2.18.0)
file_list=(docker-amd64-20.10.15.tgz harbor-offline-installer-v2.9.0 docker-compose-linux-x86_64-v2.18.0)

View File

@@ -0,0 +1,23 @@
# 定义字符串数组
$array = @("docker-amd64-20.10.15.tgz", "docker-compose-linux-x86_64-v2.18.0", "rke_linux-amd64", "kubectl-1.20.4-amd64", "mysql-8.0.27-linux-glibc2.17-x86_64-minimal.zip")
# 使用mc.exe下载文件
# 定义下载路径
$mc_path = "C:\Users\86188\Downloads\mc.exe"
# 定义mc的前缀
$mc_prefix = "uav-demo/cmlc-installation/downloadfile/amd/"
# 函数设置mc alias
Start-Process -FilePath $mc_path alias set uav-demo https://oss.demo.uavcmlc.com cmii B#923fC7mk
# 循环遍历数组
foreach ($item in $array) {
# 拼接下载命令
Write-Output "start to download $mc_prefix$item"
$mc_path get $mc_prefix$item C:\Users\86188\Documents\cmii\
Write-Output ""
}

View File

@@ -5,4 +5,9 @@ bash <(curl -sL http://42.192.52.227:9000/octopus/init-script-wdd.sh) --url htt
# no internet
export offline_minio=103.0.180.82
bash <(curl -sL http://${offline_minio}:9000/octopus/init-script-wdd.sh) --url http://${offline_minio}:9000/octopus --agent-install --offline
bash <(curl -sL http://${offline_minio}:9000/octopus/init-script-wdd.sh) --url http://${offline_minio}:9000/octopus --agent-install --offline
mc alias set local http://localhost:9000 cmii B#923fC7mk
mc get local/octopus/nfs-client-amd64-Ubuntu-20.04.6-LTS.tar.gz ./
mc get local/octopus/nfs-server-amd64-Ubuntu-20.04.6-LTS.tar.gz ./

View File

@@ -1,7 +0,0 @@
#!/bin/bash
version_suffix="$(cat /etc/*-release | grep -E 'PRETTY_NAME(_LIKE)?=' | cut -d "=" -f2 | tr " " "-" | sed 's/["()]//g').tar.gz"
offline_folder_prefix="/root/wdd/offline/"
# 全部写在一起

View File

@@ -5,7 +5,7 @@ wget https://oss.demo.uavcmlc.com/cmlc-installation/downloadfile/amd/jq-linux-am
chmod +x /usr/local/bin/jq
export name_space=zhbf
export name_space=jxyd
kubectl delete pods -n $name_space --field-selector status.phase!=Running --force

View File

@@ -1,7 +1,7 @@
#!/bin/bash
harbor_host=192.168.0.202:8033
namespace=jsyd
harbor_host=10.40.51.5:8033
namespace=jsntejpt
app_name=""
new_tag=""

View File

@@ -1,11 +1,13 @@
#!/bin/bash
minio_local_path=/var/lib/docker/minio-pv/pv1
harbor_host=10.20.1.135:8033
inner_master_ip=10.20.1.135
minio_host_ip=110.20.1.139
harbor_host=192.168.40.42:8033
inner_master_ip=192.168.40.42
minio_host_ip=192.168.40.193
install_minio(){
docker login -u admin -p V2ryStr@ngPss ${harbor_host}
echo "start to create minio local path !"
mkdir -p ${minio_local_path}
@@ -97,7 +99,7 @@ init_minio(){
}
#install_docker_compose
install_docker_compose
install_minio

View File

@@ -1,8 +1,10 @@
upstream proxy_server {
ip_hash;
server 192.168.186.12:30500;
server 192.168.186.13:30500;
server 192.168.186.14:30500;
server 192.168.40.42:30500;
server 192.168.40.183:30500;
server 192.168.40.130:30500;
server 192.168.40.131:30500;
server 192.168.40.174:30500;
}
server {
@@ -21,7 +23,7 @@ server {
proxy_buffering off;
proxy_buffer_size 4k;
proxy_buffers 4 12k;
proxy_set_header Host fake-domain.ynydapp.io;
proxy_set_header Host fake-domain.lnydyj.io;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";

View File

@@ -52,4 +52,7 @@ kubectl apply -f k8s-backend.yaml
kubectl delete -f k8s-backend.yaml
kubectl -n kube-system get pods -o jsonpath='{.items[*].metadata.name}'
kubectl -n kube-system get pods -o jsonpath='{.items[*].metadata.name}'
kubectl apply -f k8s-srs.yaml
kubectl delete -f k8s-srs.yaml

View File

@@ -0,0 +1,12 @@
kubectl get nodes --show-labels
kubectl label nodes 192.168.40.158 uavcloud.env=lnydyj --overwrite
kubectl label nodes 192.168.40.183 uavcloud.env=lnydyj --overwrite
kubectl label nodes 192.168.40.131 uavcloud.env=lnydyj --overwrite
kubectl label nodes 192.168.40.130 uavcloud.env=lnydyj --overwrite
kubectl label nodes 192.168.40.174 uavcloud.env=lnydyj --overwrite
# 删除label
kubectl label nodes 192.168.40.193 uavcloud.env-

View File

@@ -8,8 +8,13 @@ env:
value: "eth0"
# 更加保险
kubectl set env daemonset/calico-node -n kube-system IP_AUTODETECTION_METHOD=interface=eth0
kubectl set env daemonset/calico-node -n kube-system IP_AUTODETECTION_METHOD=interface=ens3
# 删除所有的calico pod
kubectl delete pods --namespace=kube-system -l k8s-app=calico-node
node_name=192.168.40.74
kubectl cordon ${node_name}
kubectl drain --ignore-daemonsets --delete-emptydir-data ${node_name}

View File

@@ -1,3 +1,6 @@
# https://dl.min.io/client/mc/release/windows-amd64/mc.exe
#mc.exe alias set uav-demo https://oss.demo.uavcmlc.com cmii B#923fC7mk