mirror of https://github.com/easzlab/kubeasz.git
移除 kube-node csr 请求批准部分
parent
c3033dc4de
commit
0a57c136a7
|
@ -95,18 +95,18 @@
|
|||
retries: 8
|
||||
delay: 2
|
||||
|
||||
- name: 获取csr 请求信息
|
||||
shell: "sleep 3 && {{ bin_dir }}/kubectl get csr"
|
||||
delegate_to: "{{ groups.deploy[0] }}"
|
||||
register: csr_info
|
||||
run_once: true
|
||||
#- name: 获取csr 请求信息
|
||||
# shell: "sleep 3 && {{ bin_dir }}/kubectl get csr"
|
||||
# delegate_to: "{{ groups.deploy[0] }}"
|
||||
# register: csr_info
|
||||
# run_once: true
|
||||
|
||||
- name: approve-kubelet-csr
|
||||
shell: "{{ bin_dir }}/kubectl get csr|grep 'Pending' | awk 'NR>0{print $1}'| \
|
||||
xargs {{ bin_dir }}/kubectl certificate approve"
|
||||
when: '"Pending" in csr_info.stdout'
|
||||
delegate_to: "{{ groups.deploy[0] }}"
|
||||
run_once: true
|
||||
#- name: approve-kubelet-csr
|
||||
# shell: "{{ bin_dir }}/kubectl get csr|grep 'Pending' | awk 'NR>0{print $1}'| \
|
||||
# xargs {{ bin_dir }}/kubectl certificate approve"
|
||||
# when: '"Pending" in csr_info.stdout'
|
||||
# delegate_to: "{{ groups.deploy[0] }}"
|
||||
# run_once: true
|
||||
|
||||
- name: 轮询等待node达到Ready状态
|
||||
shell: "{{ bin_dir }}/kubectl get node {{ inventory_hostname }}|awk 'NR>1{print $2}'"
|
||||
|
|
Loading…
Reference in New Issue