From 28fc5f2f7b728b54de6a2634c746b6163ca5e991 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Fri, 11 Oct 2019 07:26:14 +0200 Subject: Do associate kaas.kit.edu to localhost on masters (this breaks pods access to kaas urls) --- roles/ands_network/tasks/common.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'roles/ands_network/tasks') diff --git a/roles/ands_network/tasks/common.yml b/roles/ands_network/tasks/common.yml index 940cde7..03d9fb4 100644 --- a/roles/ands_network/tasks/common.yml +++ b/roles/ands_network/tasks/common.yml @@ -21,10 +21,12 @@ - nodes - new_nodes -- name: Provision /etc/hosts to ensure that all masters servers are accessing Master API on loopback device - lineinfile: dest="/etc/hosts" line="127.0.0.1 {{ openshift_master_cluster_hostname }}" regexp=".*{{ openshift_master_cluster_hostname }}$" state="present" - when: ('masters' in group_names or 'new_masters' in group_names) - register: result +# This brakes communication of containers with KaaS cluster (as 127.0.0.1 is not valid in container context, but resolved like that nethertheless) +# DISABLED on 2019.10.10: I guess this is not that big a deal of extra communication. Technically, in futre we can put here actual ip of the node. +#- name: Provision /etc/hosts to ensure that all masters servers are accessing Master API on loopback device +# lineinfile: dest="/etc/hosts" line="127.0.0.1 {{ openshift_master_cluster_hostname }}" regexp=".*{{ openshift_master_cluster_hostname }}$" state="present" +# when: ('masters' in group_names or 'new_masters' in group_names) +# register: result - name: Provision /etc/hosts with load-balance IP on non master servers lineinfile: dest="/etc/hosts" line="{{ ands_inner_lb_ip }} {{ openshift_master_cluster_hostname }}" regexp=".*{{ openshift_master_cluster_hostname }}$" state="present" -- cgit v1.2.3