mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-06 13:22:50 +00:00
Add var for ingress type; Add var to enable/disable bubblewrap
This commit is contained in:
@@ -5,6 +5,14 @@ metadata:
|
||||
creationTimestamp: null
|
||||
name: tower-operator
|
||||
rules:
|
||||
- apiGroups:
|
||||
- route.openshift.io
|
||||
resources:
|
||||
- routes
|
||||
verbs:
|
||||
- '*'
|
||||
- apiGroups:
|
||||
- ""
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
|
||||
@@ -5,6 +5,12 @@ metadata:
|
||||
creationTimestamp: null
|
||||
name: tower-operator
|
||||
rules:
|
||||
- apiGroups:
|
||||
- route.openshift.io
|
||||
resources:
|
||||
- routes
|
||||
verbs:
|
||||
- '*'
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
---
|
||||
tower_multitenant: false
|
||||
tower_ingress_type: ingress
|
||||
|
||||
tower_hostname: example-tower.test
|
||||
tower_secret_key: aabbcc
|
||||
|
||||
|
||||
@@ -40,7 +40,11 @@ data:
|
||||
INTERNAL_API_URL = 'http://127.0.0.1:8052'
|
||||
|
||||
# Container environments don't like chroots
|
||||
{% if tower_multitenant == true %}
|
||||
AWX_PROOT_ENABLED = True
|
||||
{% else %}
|
||||
AWX_PROOT_ENABLED = False
|
||||
{% endif %}
|
||||
|
||||
# Automatically deprovision pods that go offline
|
||||
AWX_AUTO_DEPROVISION_INSTANCES = True
|
||||
|
||||
@@ -20,8 +20,10 @@ spec:
|
||||
containers:
|
||||
- image: '{{ tower_task_image }}'
|
||||
name: tower-task
|
||||
{% if tower_multitenant == true %}
|
||||
securityContext:
|
||||
privileged: true
|
||||
{% endif %}
|
||||
command:
|
||||
- /usr/bin/launch_awx_task.sh
|
||||
envFrom:
|
||||
|
||||
@@ -94,11 +94,12 @@ spec:
|
||||
- port: 80
|
||||
protocol: TCP
|
||||
targetPort: 8052
|
||||
name: http
|
||||
selector:
|
||||
app: tower
|
||||
|
||||
# Tower Ingress.
|
||||
{% if tower_hostname != '' %}
|
||||
{% if 'ingress' == tower_ingress_type %}
|
||||
---
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Ingress
|
||||
@@ -115,3 +116,23 @@ spec:
|
||||
serviceName: '{{ meta.name }}-service'
|
||||
servicePort: 80
|
||||
{% endif %}
|
||||
|
||||
{% if 'route' == tower_ingress_type %}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Route
|
||||
metadata:
|
||||
name: '{{ meta.name }}'
|
||||
namespace: '{{ meta.namespace }}'
|
||||
spec:
|
||||
port:
|
||||
targetPort: http
|
||||
tls:
|
||||
insecureEdgeTerminationPolicy: Redirect
|
||||
termination: edge
|
||||
to:
|
||||
kind: Service
|
||||
name: {{ meta.name }}-service
|
||||
weight: 100
|
||||
wildcardPolicy: None
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user