Browse Source

Add another workaround for hostnetwork pods

Aleksandr Didenko 9 years ago
parent
commit
fad80d8595
1 changed files with 3 additions and 0 deletions
  1. 3
      playbooks/ipro_for_cluster_ips.yaml

3
playbooks/ipro_for_cluster_ips.yaml

@ -19,3 +19,6 @@
- name: Setup route
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
- 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
Loading…
Cancel
Save