mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 02:47:36 -02:30
Merge pull request #5001 from khawaga/kubernetes_ingress_tls
Kubernetes Ingress TLS support Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
@@ -26,11 +26,14 @@ dockerhub_base=ansible
|
|||||||
# pg_cpu_limit=1000
|
# pg_cpu_limit=1000
|
||||||
# pg_mem_limit=2
|
# pg_mem_limit=2
|
||||||
|
|
||||||
# Kubernetes Ingress Annotations
|
# Kubernetes Ingress Configuration
|
||||||
# You can use the variables below to pass annotations to Kubernetes Ingress
|
# You can use the variables below to configure Kubernetes Ingress
|
||||||
# The example below shows an annotation to be used with Traefik but other Ingress controllers are also supported.
|
# Set hostname
|
||||||
#kubernetes_ingress_hostname=awx.example.org
|
# kubernetes_ingress_hostname=awx.example.org
|
||||||
#kubernetes_ingress_annotations={'kubernetes.io/ingress.class': 'traefik', 'traefik.ingress.kubernetes.io/redirect-entry-point': 'https'}
|
# Add annotations. The example below shows an annotation to be used with Traefik but other Ingress controllers are also supported
|
||||||
|
# kubernetes_ingress_annotations={'kubernetes.io/ingress.class': 'traefik', 'traefik.ingress.kubernetes.io/redirect-entry-point': 'https'}
|
||||||
|
# Specify a secret for TLS termination
|
||||||
|
# kubernetes_ingress_tls_secret=awx-cert
|
||||||
|
|
||||||
# Kubernetes and Openshift Install Resource Requests
|
# Kubernetes and Openshift Install Resource Requests
|
||||||
# These are the request and limit values for a pod's container for task/web/rabbitmq/memcached/management.
|
# These are the request and limit values for a pod's container for task/web/rabbitmq/memcached/management.
|
||||||
|
|||||||
@@ -526,6 +526,12 @@ metadata:
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
|
{% if kubernetes_ingress_tls_secret is defined %}
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- {{ kubernetes_ingress_hostname }}
|
||||||
|
secretName: {{ kubernetes_ingress_tls_secret }}
|
||||||
|
{% endif %}
|
||||||
rules:
|
rules:
|
||||||
- host: {{ kubernetes_ingress_hostname }}
|
- host: {{ kubernetes_ingress_hostname }}
|
||||||
http:
|
http:
|
||||||
|
|||||||
Reference in New Issue
Block a user