mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 09:39:12 +03:00
Remove non-kubeadm deployment (#3811)
* Remove non-kubeadm deployment * More cleanup * More cleanup * More cleanup * More cleanup * Fix gitlab * Try stop gce first before absent to make the delete process work * More cleanup * Fix bug with checking if kubeadm has already run * Fix bug with checking if kubeadm has already run * More fixes * Fix test * fix * Fix gitlab checkout untill kubespray 2.8 is on quay * Fixed * Add upgrade path from non-kubeadm to kubeadm. Revert ssl path * Readd secret checking * Do gitlab checks from v2.7.0 test upgrade path to 2.8.0 * fix typo * Fix CI jobs to kubeadm again. Fix broken hyperkube path * Fix gitlab * Fix rotate tokens * More fixes * More fixes * Fix tokens
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
0d1be39a97
commit
ddffdb63bf
@@ -10,25 +10,6 @@
|
||||
tags:
|
||||
- facts
|
||||
|
||||
- name: Gather certs for admin kubeconfig
|
||||
slurp:
|
||||
src: "{{ item }}"
|
||||
register: admin_certs
|
||||
with_items:
|
||||
- "{{ kube_cert_dir }}/ca.pem"
|
||||
- "{{ kube_cert_dir }}/admin-{{ inventory_hostname }}.pem"
|
||||
- "{{ kube_cert_dir }}/admin-{{ inventory_hostname }}-key.pem"
|
||||
when: not kubeadm_enabled|d(false)|bool
|
||||
|
||||
- name: Write admin kubeconfig
|
||||
template:
|
||||
src: admin.conf.j2
|
||||
dest: "{{ kube_config_dir }}/admin.conf"
|
||||
owner: root
|
||||
group: "{{ kube_cert_group }}"
|
||||
mode: 0640
|
||||
when: not kubeadm_enabled|d(false)|bool
|
||||
|
||||
- name: Create kube config dir
|
||||
file:
|
||||
path: "/root/.kube"
|
||||
|
||||
Reference in New Issue
Block a user