mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-08 22:33:35 +00:00
Merge pull request #153 from billett83/devel
Handling HTTP loadbalancer
This commit is contained in:
@@ -175,6 +175,9 @@ The following variables are customizable to specify the TLS termination procedur
|
|||||||
| tower_loadbalancer_protocol | Protocol to use for Loadbalancer ingress | http |
|
| tower_loadbalancer_protocol | Protocol to use for Loadbalancer ingress | http |
|
||||||
| tower_loadbalancer_port | Port used for Loadbalancer ingress | 80 |
|
| tower_loadbalancer_port | Port used for Loadbalancer ingress | 80 |
|
||||||
|
|
||||||
|
When setting up a Load Balancer for HTTPS you will be required to set the `tower_loadbalancer_port` to move the port away from `80`.
|
||||||
|
|
||||||
|
The HTTPS Load Balancer also uses SSL termination at the Load Balancer level and will offload traffic to AWX over HTTP.
|
||||||
|
|
||||||
### Database Configuration
|
### Database Configuration
|
||||||
|
|
||||||
|
|||||||
@@ -25,10 +25,15 @@ spec:
|
|||||||
name: https
|
name: https
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if tower_ingress_type | lower == 'loadbalancer' and tower_loadbalancer_protocol | lower == 'https' %}
|
{% if tower_ingress_type | lower == 'loadbalancer' and tower_loadbalancer_protocol | lower == 'https' %}
|
||||||
- port: 443
|
- port: {{ tower_loadbalancer_port }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: 8052
|
targetPort: 8052
|
||||||
name: https
|
name: https
|
||||||
|
{% elif tower_ingress_type | lower == 'loadbalancer' and tower_loadbalancer_protocol | lower != 'https' %}
|
||||||
|
- port: {{ tower_loadbalancer_port }}
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 8052
|
||||||
|
name: http
|
||||||
{% endif %}
|
{% endif %}
|
||||||
selector:
|
selector:
|
||||||
app: '{{ deployment_type }}'
|
app: '{{ deployment_type }}'
|
||||||
|
|||||||
Reference in New Issue
Block a user