summaryrefslogtreecommitdiffstats
path: root/roles/ands_network
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-10-11 07:26:14 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-10-11 07:26:14 +0200
commit28fc5f2f7b728b54de6a2634c746b6163ca5e991 (patch)
treee2b8b3f9573959061608c8652933b6fd83b7bbb5 /roles/ands_network
parentba144fab071258a97cf3c42a0defeb0aae41a353 (diff)
downloadands-28fc5f2f7b728b54de6a2634c746b6163ca5e991.tar.gz
ands-28fc5f2f7b728b54de6a2634c746b6163ca5e991.tar.bz2
ands-28fc5f2f7b728b54de6a2634c746b6163ca5e991.tar.xz
ands-28fc5f2f7b728b54de6a2634c746b6163ca5e991.zip
Do associate kaas.kit.edu to localhost on masters (this breaks pods access to kaas urls)
Diffstat (limited to 'roles/ands_network')
-rw-r--r--roles/ands_network/tasks/common.yml10
1 files changed, 6 insertions, 4 deletions
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"