增加升级k8s时服务文件的更新

pull/883/head
gjmzj 2018-05-17 23:07:01 +08:00
parent 83bdcfd41a
commit a0d3ac6ec9
2 changed files with 5 additions and 0 deletions

View File

@ -32,12 +32,15 @@
- name: 创建kube-apiserver的systemd unit文件 - name: 创建kube-apiserver的systemd unit文件
template: src=kube-apiserver.service.j2 dest=/etc/systemd/system/kube-apiserver.service template: src=kube-apiserver.service.j2 dest=/etc/systemd/system/kube-apiserver.service
tags: upgrade_k8s
- name: 创建kube-controller-manager的systemd unit文件 - name: 创建kube-controller-manager的systemd unit文件
template: src=kube-controller-manager.service.j2 dest=/etc/systemd/system/kube-controller-manager.service template: src=kube-controller-manager.service.j2 dest=/etc/systemd/system/kube-controller-manager.service
tags: upgrade_k8s
- name: 创建kube-scheduler的systemd unit文件 - name: 创建kube-scheduler的systemd unit文件
template: src=kube-scheduler.service.j2 dest=/etc/systemd/system/kube-scheduler.service template: src=kube-scheduler.service.j2 dest=/etc/systemd/system/kube-scheduler.service
tags: upgrade_k8s
- name: enable master 服务 - name: enable master 服务
shell: systemctl enable kube-apiserver kube-controller-manager kube-scheduler shell: systemctl enable kube-apiserver kube-controller-manager kube-scheduler

View File

@ -38,6 +38,7 @@
- name: 创建kubelet的systemd unit文件 - name: 创建kubelet的systemd unit文件
template: src=kubelet.service.j2 dest=/etc/systemd/system/kubelet.service template: src=kubelet.service.j2 dest=/etc/systemd/system/kubelet.service
tags: upgrade_k8s
- name: 开机启用kubelet 服务 - name: 开机启用kubelet 服务
shell: systemctl enable kubelet shell: systemctl enable kubelet
@ -54,6 +55,7 @@
- name: 创建kube-proxy 服务文件 - name: 创建kube-proxy 服务文件
tags: reload-kube-proxy tags: reload-kube-proxy
template: src=kube-proxy.service.j2 dest=/etc/systemd/system/kube-proxy.service template: src=kube-proxy.service.j2 dest=/etc/systemd/system/kube-proxy.service
tags: upgrade_k8s
- name: 开机启用kube-proxy 服务 - name: 开机启用kube-proxy 服务
shell: systemctl enable kube-proxy shell: systemctl enable kube-proxy