Files
2026-10-29 16:53:11 -04:00

32 lines
947 B
Django/Jinja
Executable File

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ discourse_name }}
namespace: {{ discourse_namespace }}
annotations:
{% for key, value in discourse_ingress_annotations.items() %}
{{ key }}: {{ value | string | to_json }}
{% endfor %}
{% if discourse_cluster_issuer | length > 0 %}
cert-manager.io/cluster-issuer: {{ discourse_cluster_issuer | to_json }}
{% endif %}
spec:
{% if discourse_ingress_class | length > 0 %}
ingressClassName: {{ discourse_ingress_class | to_json }}
{% endif %}
tls:
- hosts:
- {{ discourse_hostname | to_json }}
secretName: {{ discourse_tls_secret_name | to_json }}
rules:
- host: {{ discourse_hostname | to_json }}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ discourse_name }}
port:
name: http