kubeasz/playbooks/91.start.yml

47 lines
1.0 KiB
YAML
Raw Normal View History

2019-10-01 22:32:51 +08:00
- hosts: etcd
tasks:
- name: starting etcd cluster
service: name=etcd state=started enabled=yes
- hosts:
- kube_master
- kube_node
tasks:
- name: starting kube-lb
service: name=kube-lb state=started enabled=yes
- hosts: kube_master
2019-10-01 22:32:51 +08:00
tasks:
- name: starting kube_master services
2019-10-01 22:32:51 +08:00
service: name={{ item }} state=started enabled=yes
with_items:
- kube-apiserver
- kube-controller-manager
- kube-scheduler
- hosts:
- kube_master
- kube_node
2019-10-01 22:32:51 +08:00
tasks:
- name: starting docker
service: name=docker state=started enabled=yes
when: "CONTAINER_RUNTIME == 'docker'"
- name: starting containerd
service: name=containerd state=started enabled=yes
when: "CONTAINER_RUNTIME == 'containerd'"
- name: starting kube_node services
2019-10-01 22:32:51 +08:00
service: name={{ item }} state=started enabled=yes
with_items:
- kubelet
- kube-proxy
- hosts: ex_lb
2019-10-01 22:32:51 +08:00
tasks:
- name: starting external loadbalance
service: name={{ item }} state=started enabled=yes
with_items:
2023-01-17 14:11:27 +08:00
- l4lb
2019-10-01 22:32:51 +08:00
- keepalived