mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-22 11:25:11 -02:30
Add another workaround for hostnetwork pods
This commit is contained in:
@@ -19,3 +19,6 @@
|
|||||||
- name: Setup route
|
- name: Setup route
|
||||||
shell: ip ro add {{ hostvars[groups['kube-master'][0]]['kube_service_addresses']['stdout'] }} via {{ local_ip.stdout }}
|
shell: ip ro add {{ hostvars[groups['kube-master'][0]]['kube_service_addresses']['stdout'] }} via {{ local_ip.stdout }}
|
||||||
when: local_route.stdout.find('{{ local_ip.stdout }}') == -1
|
when: local_route.stdout.find('{{ local_ip.stdout }}') == -1
|
||||||
|
- name: Add openstack namespace to resolv.conf
|
||||||
|
shell: grep openstack.svc.cluster.local /etc/resolv.conf || sed '/^search / s/$/ openstack.svc.cluster.local/' /etc/resolv.conf
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user