mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
Only install kube-master on the master and node on the nodes
This commit is contained in:
parent
f274881b94
commit
c4ba90337c
@ -2,15 +2,6 @@
|
|||||||
- include: fedora.yml
|
- include: fedora.yml
|
||||||
when: ansible_distribution == "Fedora"
|
when: ansible_distribution == "Fedora"
|
||||||
|
|
||||||
- name: Install kubernetes
|
|
||||||
action: "{{ ansible_pkg_mgr }}"
|
|
||||||
args:
|
|
||||||
name: kubernetes
|
|
||||||
state: latest
|
|
||||||
notify:
|
|
||||||
- restart daemons
|
|
||||||
when: not is_atomic
|
|
||||||
|
|
||||||
- name: write the global config file
|
- name: write the global config file
|
||||||
template: src=config.j2 dest=/etc/kubernetes/config
|
template: src=config.j2 dest=/etc/kubernetes/config
|
||||||
notify:
|
notify:
|
||||||
|
@ -1,4 +1,13 @@
|
|||||||
---
|
---
|
||||||
|
- name: Install kubernetes
|
||||||
|
action: "{{ ansible_pkg_mgr }}"
|
||||||
|
args:
|
||||||
|
name: kubernetes-master
|
||||||
|
state: latest
|
||||||
|
notify:
|
||||||
|
- restart daemons
|
||||||
|
when: not is_atomic
|
||||||
|
|
||||||
- name: write the config file for the api server
|
- name: write the config file for the api server
|
||||||
template: src=apiserver.j2 dest=/etc/kubernetes/apiserver
|
template: src=apiserver.j2 dest=/etc/kubernetes/apiserver
|
||||||
notify:
|
notify:
|
||||||
|
@ -1,4 +1,13 @@
|
|||||||
---
|
---
|
||||||
|
- name: Install kubernetes
|
||||||
|
action: "{{ ansible_pkg_mgr }}"
|
||||||
|
args:
|
||||||
|
name: kubernetes-node
|
||||||
|
state: latest
|
||||||
|
notify:
|
||||||
|
- restart daemons
|
||||||
|
when: not is_atomic
|
||||||
|
|
||||||
- name: write the config files for kubelet
|
- name: write the config files for kubelet
|
||||||
template: src=kubelet.j2 dest=/etc/kubernetes/kubelet
|
template: src=kubelet.j2 dest=/etc/kubernetes/kubelet
|
||||||
notify:
|
notify:
|
||||||
|
Loading…
Reference in New Issue
Block a user