From e091b32c4b18ea9fc719aaa99648bb1bcbd69063 Mon Sep 17 00:00:00 2001 From: stal Date: Mon, 12 Apr 2021 19:35:29 +0100 Subject: [PATCH] use ClusterIP service when ingress type is Ingress --- roles/installer/templates/tower_service.yaml.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/installer/templates/tower_service.yaml.j2 b/roles/installer/templates/tower_service.yaml.j2 index 321a5909..387a479d 100644 --- a/roles/installer/templates/tower_service.yaml.j2 +++ b/roles/installer/templates/tower_service.yaml.j2 @@ -44,6 +44,8 @@ spec: app.kubernetes.io/component: awx {% if tower_ingress_type | lower == "loadbalancer" %} type: LoadBalancer +{% elif tower_ingress_type | lower == "ingress" %} + type: ClusterIP {% elif tower_ingress_type != "none" %} type: NodePort {% endif %}