Do not set default hostname for ingress

This commit is contained in:
Shane McDonald
2021-09-29 18:36:03 -04:00
parent 91d17eabef
commit ccff76dec5
2 changed files with 5 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ route_tls_secret: ''
#
route_host: ''
hostname: '{{ ansible_operator_meta.name }}.example.com'
hostname: ''
# Add a nodeSelector for the AWX pods. It must match a node's labels for the pod
# to be scheduled on that node. Specify as literal block. E.g.:

View File

@@ -17,8 +17,7 @@ metadata:
{% endif %}
spec:
rules:
- host: '{{ hostname }}'
http:
- http:
paths:
- path: '{{ ingress_path }}'
pathType: Prefix
@@ -27,6 +26,9 @@ spec:
name: '{{ ansible_operator_meta.name }}-service'
port:
number: 80
{% if hostname %}
host: {{ hostname }}
{% endif %}
{% if ingress_tls_secret %}
tls:
- hosts: