-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathdeployment.yaml
More file actions
84 lines (83 loc) · 2.47 KB
/
deployment.yaml
File metadata and controls
84 lines (83 loc) · 2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
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 }}