{{- if .Values.ingress.enabled }} apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: {{ include "it-cost-dashboard.fullname" . }}-server labels: {{- include "it-cost-dashboard.componentLabels" (dict "ctx" . "component" "server") | nindent 4 }} annotations: nginx.ingress.kubernetes.io/proxy-body-size: "10m" spec: ingressClassName: {{ .Values.ingress.className }} # HTTP only for now — no TLS block until certs are issued for these hosts. rules: - host: {{ required "ingress.host is required" .Values.ingress.host | quote }} http: paths: - path: / pathType: Prefix backend: service: name: {{ include "it-cost-dashboard.fullname" . }}-server port: name: http {{- end }}