1 Star 0 Fork 18

秋意浓_1101/kubeasz

forked from 烂泥行天下/kubeasz 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
92.stop.yml 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
jmgao 提交于 2019-10-01 22:32 . 增加临时启停集群脚本
- hosts: kube-master
tasks:
- name: stopping kube-master services
service: name={{ item }} state=stopped enabled=no
with_items:
- kube-apiserver
- kube-controller-manager
- kube-scheduler
- hosts: etcd
tasks:
- name: stopping etcd cluster
service: name=etcd state=stopped enabled=no
- hosts: ex-lb
tasks:
- name: stopping external loadbalance
service: name={{ item }} state=stopped enabled=no
with_items:
- haproxy
- keepalived
- hosts:
- kube-master
- kube-node
tasks:
- name: stopping haproxy on kube-node
service: name=haproxy state=stopped enabled=no
when:
- "inventory_hostname not in groups['kube-master']"
- "groups['kube-master']|length > 1"
- name: stopping kube-node services
service: name={{ item }} state=stopped enabled=no
with_items:
- kubelet
- kube-proxy
- name: stopping docker
service: name=docker state=stopped enabled=no
when: "CONTAINER_RUNTIME == 'docker'"
- name: stopping containerd
service: name=containerd state=stopped enabled=no
when: "CONTAINER_RUNTIME == 'containerd'"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tyltong/kubeasz.git
git@gitee.com:tyltong/kubeasz.git
tyltong
kubeasz
kubeasz
master

搜索帮助