|
27 | 27 | # Conservatively, this timeout should mirror the longest grace period of the pods within the pool |
28 | 28 | terminationGracePeriodSeconds: 130 |
29 | 29 | containers: |
| 30 | + {{- if .Values.inferenceExtension.sidecar.enabled }} |
| 31 | + - name: {{ .Values.inferenceExtension.sidecar.name }} |
| 32 | + image: {{ .Values.inferenceExtension.sidecar.image }} |
| 33 | + imagePullPolicy: {{ .Values.inferenceExtension.sidecar.image.pullPolicy | default "IfNotPresent" }} |
| 34 | + {{- with .Values.inferenceExtension.sidecar.command }} |
| 35 | + command: |
| 36 | + - {{ . | quote }} |
| 37 | + {{- end }} |
| 38 | + {{- with .Values.inferenceExtension.sidecar.args }} |
| 39 | + args: |
| 40 | + {{- range . }} |
| 41 | + - {{ tpl . $ | quote }} |
| 42 | + {{- end }} |
| 43 | + {{- end }} |
| 44 | + {{- with .Values.inferenceExtension.sidecar.env }} |
| 45 | + env: |
| 46 | + {{- toYaml . | nindent 10 }} |
| 47 | + {{- end }} |
| 48 | + {{- with .Values.inferenceExtension.sidecar.ports }} |
| 49 | + ports: |
| 50 | + {{- toYaml . | nindent 10 }} |
| 51 | + {{- end }} |
| 52 | + {{- with .Values.inferenceExtension.sidecar.livenessProbe }} |
| 53 | + livenessProbe: |
| 54 | + {{- toYaml . | nindent 10 }} |
| 55 | + {{- end }} |
| 56 | + {{- with .Values.inferenceExtension.sidecar.readinessProbe }} |
| 57 | + readinessProbe: |
| 58 | + {{- toYaml . | nindent 10 }} |
| 59 | + {{- end }} |
| 60 | + {{- with .Values.inferenceExtension.sidecar.resources }} |
| 61 | + resources: |
| 62 | + {{- toYaml . | nindent 10 }} |
| 63 | + {{- end }} |
| 64 | + {{- with .Values.inferenceExtension.sidecar.volumeMounts }} |
| 65 | + volumeMounts: |
| 66 | + {{- toYaml . | nindent 10 }} |
| 67 | + {{- end }} |
| 68 | + {{- end }} |
30 | 69 | - name: epp |
31 | 70 | image: {{ .Values.inferenceExtension.image.hub }}/{{ .Values.inferenceExtension.image.name }}:{{ .Values.inferenceExtension.image.tag }} |
32 | | - imagePullPolicy: {{ .Values.inferenceExtension.image.pullPolicy | default "Always" }} |
| 71 | + imagePullPolicy: {{ .Values.inferenceExtension.image.pullPolicy | default "IfNotPresent" }} |
33 | 72 | args: |
34 | 73 | - --pool-name |
35 | 74 | - {{ .Release.Name }} |
@@ -139,6 +178,9 @@ spec: |
139 | 178 | - name: plugins-config-volume |
140 | 179 | mountPath: "/config" |
141 | 180 | volumes: |
| 181 | + {{- if .Values.inferenceExtension.sidecar.volumes }} |
| 182 | + {{- tpl (toYaml .Values.inferenceExtension.sidecar.volumes) $ | nindent 6 }} |
| 183 | + {{- end }} |
142 | 184 | - name: plugins-config-volume |
143 | 185 | configMap: |
144 | 186 | name: {{ include "gateway-api-inference-extension.name" . }} |
|
0 commit comments