This commit is contained in:
thaoduc
2025-10-08 23:37:43 +07:00
parent 610882c57d
commit 4c123eee1b
7 changed files with 443 additions and 71 deletions

View File

@@ -1,15 +1,36 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "label-studio.fullname" . }}
name: {{ include "ls-app.fullname" . }}
labels:
{{- include "label-studio.labels" . | nindent 4 }}
{{- include "ls-app.labels" . | nindent 4 }}
{{- with .Values.app.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
type: {{ .Values.app.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
- port: {{ .Values.app.service.port }}
targetPort: {{ .Values.app.service.targetPort }}
protocol: TCP
name: http
name: {{ .Values.app.service.portName }}
{{- if and .Values.metrics.enabled .Values.metrics.uwsgiExporter.enabled }}
- port: 9117
targetPort: "uwsgimetrics"
protocol: "TCP"
name: "uwsgimetrics"
{{- end }}
{{- if and .Values.metrics.enabled }}
- port: 8000
targetPort: "djangometrics"
protocol: "TCP"
name: "djangometrics"
{{- end }}
selector:
{{- include "label-studio.selectorLabels" . | nindent 4 }}
{{- include "ls-app.selectorLabels" . | nindent 4 }}
sessionAffinity: {{ .Values.app.service.sessionAffinity }}
{{- if .Values.app.service.sessionAffinityConfig }}
sessionAffinityConfig:
{{- toYaml .Values.app.service.sessionAffinityConfig | nindent 4 }}
{{- end }}