2018-10-16 14:15:05 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: kube-router | Start Resources
|
|
|
|
kube:
|
|
|
|
name: "kube-router"
|
|
|
|
kubectl: "{{ bin_dir }}/kubectl"
|
|
|
|
filename: "{{ kube_config_dir }}/kube-router.yml"
|
|
|
|
resource: "ds"
|
|
|
|
namespace: "kube-system"
|
|
|
|
state: "latest"
|
2021-03-24 00:26:05 +00:00
|
|
|
delegate_to: "{{ groups['kube_control_plane'] | first }}"
|
2020-03-04 10:11:47 +00:00
|
|
|
run_once: true
|
2018-10-16 14:15:05 +00:00
|
|
|
|
|
|
|
- name: kube-router | Wait for kube-router pods to be ready
|
2021-07-12 07:00:47 +00:00
|
|
|
command: "{{ bin_dir }}/kubectl -n kube-system get pods -l k8s-app=kube-router -o jsonpath='{.items[?(@.status.containerStatuses[0].ready==false)].metadata.name}'" # noqa 601 ignore-errors
|
2018-10-16 14:15:05 +00:00
|
|
|
register: pods_not_ready
|
|
|
|
until: pods_not_ready.stdout.find("kube-router")==-1
|
|
|
|
retries: 30
|
|
|
|
delay: 10
|
2021-07-12 07:00:47 +00:00
|
|
|
ignore_errors: true
|
2021-03-24 00:26:05 +00:00
|
|
|
delegate_to: "{{ groups['kube_control_plane'] | first }}"
|
2020-03-04 10:11:47 +00:00
|
|
|
run_once: true
|
|
|
|
changed_when: false
|