486b223e01
This replaces kube-master with kube_control_plane because of [1]: The Kubernetes project is moving away from wording that is considered offensive. A new working group WG Naming was created to track this work, and the word "master" was declared as offensive. A proposal was formalized for replacing the word "master" with "control plane". This means it should be removed from source code, documentation, and user-facing configuration from Kubernetes and its sub-projects. NOTE: The reason why this changes it to kube_control_plane not kube-control-plane is for valid group names on ansible. [1]: https://github.com/kubernetes/enhancements/blob/master/keps/sig-cluster-lifecycle/kubeadm/2067-rename-master-label-taint/README.md#motivation
20 lines
796 B
YAML
20 lines
796 B
YAML
---
|
|
- name: Cilium | Start Resources
|
|
kube:
|
|
name: "{{ item.item.name }}"
|
|
namespace: "kube-system"
|
|
kubectl: "{{ bin_dir }}/kubectl"
|
|
resource: "{{ item.item.type }}"
|
|
filename: "{{ kube_config_dir }}/{{ item.item.file }}"
|
|
state: "latest"
|
|
with_items: "{{ cilium_node_manifests.results }}"
|
|
when: inventory_hostname == groups['kube_control_plane'][0] and not item is skipped
|
|
|
|
- name: Cilium | Wait for pods to run
|
|
command: "{{ bin_dir }}/kubectl -n kube-system get pods -l k8s-app=cilium -o jsonpath='{.items[?(@.status.containerStatuses[0].ready==false)].metadata.name}'" # noqa 601
|
|
register: pods_not_ready
|
|
until: pods_not_ready.stdout.find("cilium")==-1
|
|
retries: 30
|
|
delay: 10
|
|
ignore_errors: yes
|
|
when: inventory_hostname == groups['kube_control_plane'][0]
|