Files
devops-infra-helm-charts-gcp/helm-templates/deepfence-router/templates/ingress.yaml
T
2026-08-26 03:39:42 +05:30

28 lines
664 B
YAML

{{- if eq .Values.service.type "Ingress" }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: deepfence-router-ingress
namespace: {{ .Release.Namespace }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ingressClassName: {{ required "ingress class name is required" .Values.ingress.class }}
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ .Values.service.name }}
port:
number: 443
{{- with .Values.ingress.host }}
host: {{ . }}
{{- end }}
{{- end }}