Files
2026-10-24 18:46:35 -04:00

27 lines
923 B
Django/Jinja
Executable File

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ luanti_wasm_name | to_json }}
namespace: {{ luanti_wasm_namespace | to_json }}
{% if luanti_wasm_ingress_enabled %}
annotations: {{ (luanti_wasm_ingress_annotations | combine({'cert-manager.io/cluster-issuer': luanti_wasm_cluster_issuer} if luanti_wasm_cluster_issuer | length > 0 else {})) | to_json }}
spec:
{% if luanti_wasm_ingress_class | length > 0 %}
ingressClassName: {{ luanti_wasm_ingress_class | to_json }}
{% endif %}
tls:
- hosts: [{{ luanti_wasm_hostname | to_json }}]
secretName: {{ luanti_wasm_tls_secret_name | to_json }}
rules:
- host: {{ luanti_wasm_hostname | to_json }}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ luanti_wasm_name | to_json }}
port:
number: 8080
{% endif %}