forked from kubernetes-sigs/kubespray
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Use K8s 1.14 and add kubeadm experimental control plane mode (k…
…ubernetes-sigs#4317)" (kubernetes-sigs#4510) This reverts commit 3165086.
- Loading branch information
1 parent
3165086
commit d39c273
Showing
37 changed files
with
400 additions
and
296 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 0 additions & 45 deletions
45
roles/kubernetes/master/tasks/kubeadm-secondary-experimental.yml
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
roles/kubernetes/master/tasks/kubeadm-secondary-legacy.yml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.