chart/templates/services/rows/ingress-internal.yaml (23 lines of code) (raw):
{{- if and .Values.global.huggingface.ingress.enabled .Values.ingress.enabled .Values.rows.ingressInternal.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
{{- $annotations := fromYaml (include "datasetsServer.instance.ingressInternal.annotations" (dict "instance" .Values.rows "context" $ )) }}
annotations: {{ toYaml $annotations | nindent 4}}
labels: {{ include "labels.rows" . | nindent 4 }}
name: "{{ include "name" . }}-rows-internal"
namespace: {{ .Release.Namespace }}
spec:
rules:
- host: internal.{{ include "datasetsServer.ingress.hostname" . }}
http:
paths:
- backend:
service:
name: "{{ include "name" . }}-rows"
port:
name: http
path: /rows
pathType: Prefix
{{- include "ingress.tls" (merge (dict "annotations" $annotations) $ ) | indent 2}}
{{- end }}