Files
2026-08-26 03:39:42 +05:30

30 lines
879 B
YAML

{{- if .Values.ingress.enable }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "deepfence-console.fullname" . }}-ingress
{{- 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: {{ include "deepfence-console.fullname" . }}-router
port:
{{- if .Values.router.forceHttpsRedirect }}
number: {{ .Values.router.service.httpsPort }}
{{- else }}
number: {{ .Values.router.service.httpPort }}
{{- end }}
{{- with .Values.ingress.host }}
host: {{ . }}
{{- end }}
{{- end }}