mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-09 19:58:07 +03:00
Use K8s 1.14 and add kubeadm experimental control plane mode (#4317)
* Use Kubernetes 1.14 and experimental control plane support * bump to v1.14.0
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
46ba6a4154
commit
316508626d
@@ -1,34 +0,0 @@
|
||||
---
|
||||
- name: Backup old configuration files
|
||||
copy:
|
||||
src: "{{ kube_config_dir }}/{{ item.src }}"
|
||||
dest: "{{ kube_config_dir }}/{{ item.dest }}"
|
||||
remote_src: yes
|
||||
with_items:
|
||||
- {src: admin.conf, dest: admin.conf.old}
|
||||
- {src: kubelet.conf, dest: kubelet.conf.old}
|
||||
- {src: controller-manager.conf, dest: controller-manager.conf.old}
|
||||
- {src: scheduler.conf, dest: scheduler.conf.old}
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Remove old configuration files
|
||||
file:
|
||||
path: "{{ kube_config_dir }}/{{ item }}"
|
||||
state: absent
|
||||
with_items:
|
||||
- admin.conf
|
||||
- kubelet.conf
|
||||
- controller-manager.conf
|
||||
- scheduler.conf
|
||||
|
||||
- name: Generate new configuration files
|
||||
command: "{{ bin_dir }}/kubeadm init phase kubeconfig all --config={{ kube_config_dir }}/kubeadm-config.yaml"
|
||||
environment: "{{ proxy_env }}"
|
||||
when: kubeadm_version is version('v1.13.0', '>=')
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Generate new configuration files
|
||||
command: "{{ bin_dir }}/kubeadm alpha phase kubeconfig all --config={{ kube_config_dir }}/kubeadm-config.yaml"
|
||||
environment: "{{ proxy_env }}"
|
||||
when: kubeadm_version is version('v1.13.0', '<')
|
||||
ignore_errors: yes
|
||||
Reference in New Issue
Block a user