From fad80d85955bb7e12ea3b3c93ec47c286067182d Mon Sep 17 00:00:00 2001 From: Aleksandr Didenko Date: Tue, 5 Jul 2016 14:51:01 +0200 Subject: [PATCH] Add another workaround for hostnetwork pods --- playbooks/ipro_for_cluster_ips.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/playbooks/ipro_for_cluster_ips.yaml b/playbooks/ipro_for_cluster_ips.yaml index 9f2b2fb22..82453e7d7 100644 --- a/playbooks/ipro_for_cluster_ips.yaml +++ b/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 +