diff options
author | makefunstuff <[email protected]> | 2024-06-28 14:50:46 +0200 |
---|---|---|
committer | makefunstuff <[email protected]> | 2024-06-28 14:50:46 +0200 |
commit | 8c6eeb9045125aa3b0666deccc3815e78112ea16 (patch) | |
tree | c0f1453d1b093048391d7328376426270a43f6d4 /misc/nginx/templates/ingress.yaml | |
parent | 5f14386dcdd3530c79a31678a1a3bf59e3ddb6ef (diff) | |
download | k3s-lab-8c6eeb9045125aa3b0666deccc3815e78112ea16.tar.gz |
though nginx works
Diffstat (limited to 'misc/nginx/templates/ingress.yaml')
-rw-r--r-- | misc/nginx/templates/ingress.yaml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/misc/nginx/templates/ingress.yaml b/misc/nginx/templates/ingress.yaml new file mode 100644 index 0000000..bd25f23 --- /dev/null +++ b/misc/nginx/templates/ingress.yaml @@ -0,0 +1,35 @@ +{{- if .Values.ingress.enabled -}} +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: nginx + annotations: + {{- range $key, $value := .Values.ingress.annotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} +spec: + rules: + {{- range .Values.ingress.hosts }} + - host: {{ .host }} + http: + paths: + {{- range .paths }} + - path: {{ . }} + pathType: Prefix + backend: + service: + name: nginx + port: + number: 80 + {{- end }} + {{- end }} + tls: + {{- range .Values.ingress.tls }} + - hosts: + {{- range .hosts }} + - {{ . }} + {{- end }} + secretName: {{ .secretName }} + {{- end }} +{{- end }} + |