k8s-basic/helm-chart/templates/ingress.yaml
Waylon S. Walker f8b377c347 init
2025-02-22 16:48:19 -06:00

26 lines
643 B
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
labels:
service: {{ .Values.name }}
name: {{ .Values.name }}
namespace: {{ .Values.namespace }}
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
rules:
- host: {{ .Values.name }}.{{ .Values.domain }}
http:
paths:
- backend:
service:
name: {{ .Values.name }}
port:
number: {{ .Values.port }}
path: /
pathType: Prefix
tls:
- hosts:
- {{ .Values.name }}.{{ .Values.domain }}
secretName: {{ .Values.name }}-cert-tls