You've already forked DataMate
* feat(chart): add Helm chart for deploying Label Studio with PostgreSQL * feat(milvus): update Milvus configuration to use URI and remove deprecated host/port settings
24 lines
750 B
YAML
24 lines
750 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "label-studio.fullname" . }}
|
|
labels:
|
|
app.kubernetes.io/name: {{ include "label-studio.name" . }}
|
|
helm.sh/chart: {{ include "label-studio.chart" . }}
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
spec:
|
|
type: {{ .Values.service.type }}
|
|
ports:
|
|
- port: {{ .Values.service.port }}
|
|
targetPort: http
|
|
protocol: TCP
|
|
name: http
|
|
{{- if and (eq .Values.service.type "NodePort") .Values.service.nodePort }}
|
|
nodePort: {{ .Values.service.nodePort }}
|
|
{{- end }}
|
|
selector:
|
|
app.kubernetes.io/name: {{ include "label-studio.name" . }}
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|