chart/templates/services/sse-api/_container.tpl (42 lines of code) (raw):

# SPDX-License-Identifier: Apache-2.0 # Copyright 2023 The HuggingFace Authors. {{- define "containerSseApi" -}} - name: "{{ include "name" . }}-sse-api" image: {{ include "services.sseApi.image" . }} imagePullPolicy: {{ .Values.images.pullPolicy }} env: {{ include "envCache" . | nindent 2 }} {{ include "envCommon" . | nindent 2 }} {{ include "envHf" . | nindent 2 }} {{ include "envLog" . | nindent 2 }} # prometheus - name: PROMETHEUS_MULTIPROC_DIR value: {{ .Values.sseApi.prometheusMultiprocDirectory | quote }} # uvicorn - name: API_UVICORN_HOSTNAME value: {{ .Values.sseApi.uvicornHostname | quote }} - name: API_UVICORN_NUM_WORKERS value: {{ .Values.sseApi.uvicornNumWorkers | quote }} - name: API_UVICORN_PORT value: {{ .Values.sseApi.uvicornPort | quote }} securityContext: allowPrivilegeEscalation: false readinessProbe: failureThreshold: 30 periodSeconds: 5 httpGet: path: /sse/healthcheck port: {{ .Values.sseApi.uvicornPort }} livenessProbe: failureThreshold: 30 periodSeconds: 5 httpGet: path: /sse/healthcheck port: {{ .Values.sseApi.uvicornPort }} ports: - containerPort: {{ .Values.sseApi.uvicornPort }} name: http protocol: TCP resources: {{ toYaml .Values.sseApi.resources | nindent 4 }} {{- end -}}