# 关停

## 关停Nginx
1. 移动 /etc/nginx/conf.d/real-proxy.conf /etc/nginx/conf.d/real-proxy.conf_back
2. 移动 /etc/nginx/conf.d/offline.conf_back /etc/nginx/conf.d/offline.conf
3. 重启nginx  systemctl restart nginx


## 执行harbor关停
docker-compose -f /root/wdd/harbor/docker-compose.yml down -v

## 执行关停暴露面
kubectl delete -f /root/wdd/install/k8s-ingress-nginx.yaml

## 执行关停脚本
bash /root/wdd/ccc.sh


# 恢复

## 恢复nginx
1. 移动 /etc/nginx/conf.d/real-proxy.conf_back /etc/nginx/conf.d/real-proxy.conf
2. 移动 /etc/nginx/conf.d/offline.conf /etc/nginx/conf.d/offline.conf_back
3. 重启nginx  systemctl restart nginx


## 启动Harbor
docker-compose -f /root/wdd/harbor/docker-compose.yml up -d
等待30秒

## 开启ingress暴露面
kubectl apply -f /root/wdd/install/k8s-ingress-nginx.yaml

## 恢复业务
kubectl apply -f /root/wdd/all-deployment-xakny.yaml