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