mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
Introduces the ability to pass annotations to the Kubernetes Ingress Controllers
This commit is contained in:
@@ -26,6 +26,12 @@ dockerhub_base=ansible
|
|||||||
# pg_cpu_limit=1000
|
# pg_cpu_limit=1000
|
||||||
# pg_mem_limit=2
|
# pg_mem_limit=2
|
||||||
|
|
||||||
|
# Kubernetes Ingress Annotations
|
||||||
|
# You can use the variables below to pass annotations to Kubernetes Ingress
|
||||||
|
# The example below shows an annotation to be used with Traefik but other Ingress controllers are also supported.
|
||||||
|
#kubernetes_ingress_hostname=awx.example.org
|
||||||
|
#kubernetes_ingress_annotations={'kubernetes.io/ingress.class': 'traefik', 'traefik.ingress.kubernetes.io/redirect-entry-point': 'https'}
|
||||||
|
|
||||||
# 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.
|
||||||
# The total amount of requested resources for a pod is the sum of all
|
# The total amount of requested resources for a pod is the sum of all
|
||||||
|
|||||||
@@ -373,11 +373,28 @@ kind: Ingress
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ kubernetes_deployment_name }}-web-svc
|
name: {{ kubernetes_deployment_name }}-web-svc
|
||||||
namespace: {{ kubernetes_namespace }}
|
namespace: {{ kubernetes_namespace }}
|
||||||
|
{% if kubernetes_ingress_annotations is defined %}
|
||||||
|
annotations:
|
||||||
|
{% for key, value in kubernetes_ingress_annotations.items() %}
|
||||||
|
{{ key }}: {{ value }}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: {{ kubernetes_ingress_hostname }}
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
backend:
|
||||||
|
serviceName: {{ kubernetes_deployment_name }}-web-svc
|
||||||
|
servicePort: 80
|
||||||
|
{% else %}
|
||||||
spec:
|
spec:
|
||||||
backend:
|
backend:
|
||||||
serviceName: {{ kubernetes_deployment_name }}-web-svc
|
serviceName: {{ kubernetes_deployment_name }}-web-svc
|
||||||
servicePort: 80
|
servicePort: 80
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
{% if openshift_host is defined %}
|
{% if openshift_host is defined %}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
|||||||
Reference in New Issue
Block a user