{{- if .Values.server.ingress.enabled -}} apiVersion: networking.k8s.io/v1 kind: Ingress metadata: annotations: katenary.v3/compose-hash: 07a6c3341d6d1030ebf49ee3a618c3296c87ae32 katenary.v3/version: develop-628b35d {{- if .Values.server.ingress.annotations -}} {{- toYaml .Values.server.ingress.annotations | nindent 4 }} {{- end }} labels: {{- include "website.labels" . | nindent 4 }} katenary.v3/component: server name: '{{ include "website.fullname" . }}-server' spec: {{- if ne .Values.server.ingress.class "-" }} ingressClassName: '{{ tpl .Values.server.ingress.class $ }}' {{- end }} rules: - host: '{{ tpl .Values.server.ingress.host $ }}' http: paths: - backend: service: name: '{{ include "website.fullname" . }}-server' port: name: http path: '{{ tpl .Values.server.ingress.path $ }}' pathType: ImplementationSpecific {{- if .Values.server.ingress.tls.enabled }} tls: - hosts: - '{{ tpl .Values.server.ingress.host . }}' secretName: '{{ include "website.fullname" . }}-server-tls' {{ end -}} {{- end -}}