mirror of
https://github.com/LeNei/fullstack-helm-chart.git
synced 2026-02-13 14:54:47 +00:00
26 lines
696 B
YAML
26 lines
696 B
YAML
kind: Ingress
|
|
apiVersion: networking.k8s.io/v1
|
|
metadata:
|
|
name: {{ .Values.api.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.api.host }}
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: {{ .Values.api.appName }}
|
|
port:
|
|
number: 80
|
|
tls:
|
|
- hosts:
|
|
- {{ .Values.api.host }}
|
|
secretName: {{ .Values.api.host | replace "." "-" }}
|