Initial commit
This commit is contained in:
Executable
+26
@@ -0,0 +1,26 @@
|
||||
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 %}
|
||||
Reference in New Issue
Block a user