mirror of
https://github.com/LeNei/fullstack-helm-chart.git
synced 2026-02-13 22:56:19 +00:00
Fix chart
This commit is contained in:
@@ -1,23 +1,25 @@
|
||||
kind: Ingress
|
||||
apiVersion: networking.k8s.io/v1
|
||||
metadata:
|
||||
name: {{ .Values.nextjs.appName }}
|
||||
name: {{ .Values.frontend.appName }}
|
||||
{{ if eq .Values.environment "production" }}
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt
|
||||
traefik.ingress.kubernetes.io/router.middlewares: "{{ .Release.Namespace }}-redirect-https@kubernetescrd"
|
||||
{{ end }}
|
||||
spec:
|
||||
rules:
|
||||
- host: {{ .Values.nextjs.host }}
|
||||
- host: {{ .Values.frontend.host }}
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: {{ .Values.nextjs.appName }}
|
||||
name: {{ .Values.frontend.appName }}
|
||||
port:
|
||||
number: 80
|
||||
tls:
|
||||
- hosts:
|
||||
- {{ .Values.nextjs.host }}
|
||||
secretName: {{ .Values.nextjs.host | replace "." "-" }}
|
||||
- hosts:
|
||||
- {{ .Values.frontend.host }}
|
||||
secretName: {{ .Values.frontend.host | replace "." "-" }}
|
||||
|
||||
Reference in New Issue
Block a user