1+ apiVersion : apps/v1 
2+ kind : Deployment 
3+ metadata :
4+   name : {{ include "llm-d-inference-sim.fullname" . }} 
5+   labels :
6+     {{- include "llm-d-inference-sim.labels" . | nindent 4 }} 
7+ spec :
8+   replicas : {{ .Values.replicaCount }} 
9+   selector :
10+     matchLabels :
11+       {{- include "llm-d-inference-sim.selectorLabels" . | nindent 6 }} 
12+   template :
13+     metadata :
14+       annotations :
15+         checksum/config : {{ include (print .Template.BasePath "/configmap.yaml") . | sha256sum }} 
16+       {{- with .Values.podAnnotations }} 
17+         {{- toYaml . | nindent 8 }} 
18+       {{- end }} 
19+       labels :
20+         {{- include "llm-d-inference-sim.labels" . | nindent 8 }} 
21+         {{- with .Values.podLabels }} 
22+         {{- toYaml . | nindent 8 }} 
23+         {{- end }} 
24+     spec :
25+       {{- with .Values.imagePullSecrets }} 
26+       imagePullSecrets :
27+         {{- toYaml . | nindent 8 }} 
28+       {{- end }} 
29+       {{- with .Values.podSecurityContext }} 
30+       securityContext :
31+         {{- toYaml . | nindent 8 }} 
32+       {{- end }} 
33+       containers :
34+         - name : {{ .Chart.Name }} 
35+           {{- with .Values.securityContext }} 
36+           securityContext :
37+             {{- toYaml . | nindent 12 }} 
38+           {{- end }} 
39+           image : " {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" 
40+           imagePullPolicy : {{ .Values.image.pullPolicy }} 
41+           args :
42+             - --config 
43+             - /config/config.yaml 
44+           env :
45+             - name : POD_NAME 
46+               valueFrom :
47+                 fieldRef :
48+                   apiVersion : v1 
49+                   fieldPath : metadata.name 
50+             - name : POD_NAMESPACE 
51+               valueFrom :
52+                 fieldRef :
53+                   apiVersion : v1 
54+                   fieldPath : metadata.namespace 
55+           ports :
56+             - name : http 
57+               containerPort : {{ .Values.service.port }} 
58+               protocol : TCP 
59+           livenessProbe :
60+             httpGet :
61+               path : /health 
62+               port : http 
63+           readinessProbe :
64+             httpGet :
65+               path : /ready 
66+               port : http 
67+           {{- with .Values.resources }} 
68+           resources :
69+             {{- toYaml . | nindent 12 }} 
70+           {{- end }} 
71+           volumeMounts :
72+             - name : config 
73+               mountPath : /config 
74+       volumes :
75+         - name : config 
76+           configMap :
77+             name : {{ include "llm-d-inference-sim.fullname" . }}-config 
78+       {{- with .Values.nodeSelector }} 
79+       nodeSelector :
80+         {{- toYaml . | nindent 8 }} 
81+       {{- end }} 
82+       {{- with .Values.affinity }} 
83+       affinity :
84+         {{- toYaml . | nindent 8 }} 
85+       {{- end }} 
86+       {{- with .Values.tolerations }} 
87+       tolerations :
88+         {{- toYaml . | nindent 8 }} 
89+       {{- end }} 
0 commit comments