Skip to content

Commit

Permalink
Publish the ingress-nginx service address if manual address not defin…
Browse files Browse the repository at this point in the history
…ed and not using host network
  • Loading branch information
ThisIsQasim committed Jan 10, 2025
1 parent 1f186ed commit 7f9e0fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ingress_nginx_service_nodeport_http: ""
ingress_nginx_service_nodeport_https: ""
ingress_nginx_service_annotations: {}
ingress_publish_status_address: ""
ingress_publish_service: "ingress-nginx/ingress-nginx"
ingress_nginx_nodeselector:
kubernetes.io/os: "linux"
ingress_nginx_tolerations: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,12 @@ spec:
{% if ingress_nginx_without_class %}
- --watch-ingress-without-class=true
{% endif %}
{% if ingress_nginx_host_network %}
- --report-node-internal-ip-address
{% endif %}
{% if ingress_publish_status_address != "" %}
- --publish-status-address={{ ingress_publish_status_address }}
{% elif ingress_nginx_host_network %}
- --report-node-internal-ip-address
{% else %}
- --publish-service={{ ingress_publish_service }}
{% endif %}
{% for extra_arg in ingress_nginx_extra_args %}
- {{ extra_arg }}
Expand Down

0 comments on commit 7f9e0fc

Please sign in to comment.