Skip to content

Commit

Permalink
[MLRun] Tweak chart for fine-tuned deployment (#1029)
Browse files Browse the repository at this point in the history
  • Loading branch information
liranbg authored Jun 30, 2024
1 parent bf06bd2 commit 330136a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion stable/mlrun/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: mlrun
version: 0.9.24
version: 0.9.25
appVersion: 1.6.2
description: Machine Learning automation and tracking
sources:
Expand Down
5 changes: 4 additions & 1 deletion stable/mlrun/templates/api-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ spec:
port: {{ .Values.api.service.port }}
protocol: TCP
targetPort: http
{{ if (and (eq .Values.api.service.type "NodePort") (not (empty .Values.api.service.nodePort))) }}
{{- if (and (eq .Values.api.service.type "NodePort") (not (empty .Values.api.service.nodePort))) }}
nodePort: {{.Values.api.service.nodePort}}
{{ end }}
selector:
{{- include "mlrun.api.selectorLabels" . | nindent 4 }}
{{- with .Values.api.service.selectorLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
14 changes: 9 additions & 5 deletions stable/mlrun/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ api:
port: 8080
targetPort: 8080

# Additional labels for the service as addition to the default api-pods label selectors
# Can be used to direct traffic to mlrun workers
selectorLabels: {}

ingress:
enabled: false
annotations: {}
Expand Down Expand Up @@ -161,7 +165,7 @@ api:
path: /api/healthz
port: http
initialDelaySeconds: 1000
timeoutSeconds: 10
timeoutSeconds: 60
periodSeconds: 15
failureThreshold: 4

Expand Down Expand Up @@ -254,7 +258,7 @@ api:
httpGet:
port: http
initialDelaySeconds: 15
timeoutSeconds: 10
timeoutSeconds: 30
periodSeconds: 15
failureThreshold: 4

Expand Down Expand Up @@ -315,8 +319,8 @@ api:
failureThreshold: 3

livenessProbe:
timeoutSeconds: 3
periodSeconds: 10
timeoutSeconds: 10
periodSeconds: 30
failureThreshold: 3

db:
Expand Down Expand Up @@ -396,7 +400,7 @@ db:
exec:
command: ["/bin/bash", "/etc/config/mysql/health_check.sh"]
initialDelaySeconds: 30
timeoutSeconds: 5
timeoutSeconds: 15
periodSeconds: 10
failureThreshold: 3

Expand Down

0 comments on commit 330136a

Please sign in to comment.