-
Notifications
You must be signed in to change notification settings - Fork 38
ITEP-81092: Added mapping service to helm deployment #589
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
1896605
fdb3a46
d5c5743
7407625
dd9d3b1
043cb84
7265250
cdfdeca
ceb0dab
923e5d1
84122ba
aa078ce
c5c52fa
c928098
5bf15c1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # SPDX-FileCopyrightText: (C) 2025 Intel Corporation | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| --- | ||
| apiVersion: cert-manager.io/v1 | ||
| kind: Certificate | ||
| metadata: | ||
| name: {{ .Release.Name }}-mapping-cert | ||
|
Comment on lines
+5
to
+8
|
||
| spec: | ||
| secretName: {{ .Release.Name }}-mapping-tls | ||
| issuerRef: | ||
| name: {{ .Release.Name }}-ca-issuer | ||
| kind: Issuer | ||
| commonName: "mapping.scenescape.intel.com" | ||
| dnsNames: | ||
| - "mapping.scenescape.intel.com" | ||
| - "mapping" | ||
| - "mapping.{{ .Release.Namespace }}" | ||
| - "mapping.{{ .Release.Namespace }}.svc.cluster.local" | ||
| duration: 8760h | ||
| renewBefore: 720h | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| # SPDX-FileCopyrightText: (C) 2025 Intel Corporation | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| --- | ||
| {{- if .Values.mapping.enabled }} | ||
| apiVersion: apps/v1 | ||
| kind: Deployment | ||
| metadata: | ||
| name: {{ .Release.Name }}-mapping | ||
| labels: | ||
| app: {{ .Release.Name }}-mapping | ||
| spec: | ||
| replicas: 1 | ||
| selector: | ||
| matchLabels: | ||
| app: {{ .Release.Name }}-mapping | ||
| template: | ||
| metadata: | ||
| labels: | ||
| app: {{ .Release.Name }}-mapping | ||
| spec: | ||
| securityContext: | ||
| runAsUser: 1000 | ||
| runAsGroup: 1000 | ||
| containers: | ||
| - name: mapping | ||
| image: {{ .Values.repository }}/{{ .Values.mapping.image }}:{{ .Chart.AppVersion }} | ||
| imagePullPolicy: {{ .Values.mapping.pullPolicy }} | ||
| env: | ||
| - name: PYTHONDONTWRITEBYTECODE | ||
| value: "1" | ||
| {{ include "proxy_envs" . | indent 10 }} | ||
| ports: | ||
| - containerPort: 8444 | ||
| securityContext: | ||
| {{ include "defaultContainerSecurityContext" . | indent 12 }} | ||
| runAsUser: 1000 | ||
| runAsGroup: 1000 | ||
| readinessProbe: | ||
| exec: | ||
| command: | ||
| - sh | ||
| - -c | ||
| - curl -k -s https://localhost:8444/health | ||
| periodSeconds: 10 | ||
| timeoutSeconds: 60 | ||
| failureThreshold: 5 | ||
| initialDelaySeconds: 10 | ||
| volumeMounts: | ||
| - mountPath: /run/secrets/certs/scenescape-ca.pem | ||
| subPath: scenescape-ca.pem | ||
| name: certs | ||
| readOnly: true | ||
| - mountPath: /run/secrets/certs/scenescape-mapping.crt | ||
| subPath: scenescape-mapping.crt | ||
| name: certs | ||
| readOnly: true | ||
| - mountPath: /run/secrets/certs/scenescape-mapping.key | ||
| subPath: scenescape-mapping.key | ||
| name: certs | ||
| readOnly: true | ||
| - mountPath: /tmp | ||
| name: model-storage | ||
| - mountPath: /workspace/.cache/huggingface | ||
| name: huggingface-cache | ||
| - mountPath: /workspace/.cache/torch | ||
| name: torch-cache | ||
| - mountPath: /workspace/model_weights | ||
| name: model-weights | ||
| volumes: | ||
| {{- include "certs_volume" . | nindent 8 }} | ||
| - name: model-storage | ||
| emptyDir: | ||
| sizeLimit: "1Gi" | ||
| - name: huggingface-cache | ||
| emptyDir: | ||
| sizeLimit: "5Gi" | ||
| - name: torch-cache | ||
| emptyDir: | ||
| sizeLimit: "2Gi" | ||
| - name: model-weights | ||
| emptyDir: | ||
| sizeLimit: "1Gi" | ||
| {{- end }} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # SPDX-FileCopyrightText: (C) 2025 Intel Corporation | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| --- | ||
| {{- if .Values.mapping.enabled }} | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: mapping | ||
| annotations: {{- toYaml .Values.service.annotations | nindent 4 }} | ||
| spec: | ||
| selector: | ||
| app: {{ .Release.Name }}-mapping | ||
| ports: | ||
| - name: "8444" | ||
| protocol: TCP | ||
| port: 8444 | ||
| targetPort: 8444 | ||
| {{- if .Values.loadBalancer.enabled }} | ||
| --- | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: mapping-lb | ||
| annotations: {{- toYaml .Values.loadBalancer.annotations | nindent 4 }} | ||
| spec: | ||
| type: LoadBalancer | ||
| selector: | ||
| app: {{ .Release.Name }}-mapping | ||
| ports: | ||
| - name: "8444" | ||
| protocol: TCP | ||
| port: 8444 | ||
| targetPort: 8444 | ||
| externalTrafficPolicy: {{ .Values.loadBalancer.externalTrafficPolicy }} | ||
| {{- if (default .Values.loadBalancer.loadBalancerIP false) }} | ||
| loadBalancerIP: {{ .Values.loadBalancer.loadBalancerIP }} | ||
| {{- end }} | ||
| {{- end }} | ||
| {{- end }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The mapping certificate secret is unconditionally added to the shared certs volume, but the certificate itself may not exist when mapping is disabled. This will cause volume mount failures. Wrap this secret reference in a conditional check:
{{- if .Values.mapping.enabled }}.