Skip to content

Commit

Permalink
fix(ui): Change UI probes settings to scale 1 new pod (#247)
Browse files Browse the repository at this point in the history
* fix(ui): Change UI probes settings to scale 1 new pod

* Helm-Docs update

---------

Co-authored-by: Marcin Jasion <[email protected]>
  • Loading branch information
mjasion and mjasion authored Nov 28, 2023
1 parent c742dad commit 47e8f0e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/studio/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: studio
description: A Helm chart for Kubernetes
type: application
version: 0.7.16
version: 0.7.17
appVersion: "v2.57.0"
maintainers:
- name: iterative
Expand Down
4 changes: 2 additions & 2 deletions charts/studio/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# studio

![Version: 0.7.16](https://img.shields.io/badge/Version-0.7.16-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.57.0](https://img.shields.io/badge/AppVersion-v2.57.0-informational?style=flat-square)
![Version: 0.7.17](https://img.shields.io/badge/Version-0.7.17-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.57.0](https://img.shields.io/badge/AppVersion-v2.57.0-informational?style=flat-square)

A Helm chart for Kubernetes

Expand Down Expand Up @@ -183,7 +183,7 @@ A Helm chart for Kubernetes
| studioLeo.service.port | int | `8181` | Leo service port |
| studioLeo.service.type | string | `"ClusterIP"` | Leo service type |
| studioLeo.tolerations | list | `[]` | Leo tolerations configuration |
| studioUi | object | `{"affinity":{},"autoscaling":{"enabled":false,"maxReplicas":5,"minReplicas":1,"targetCPUUtilizationPercentage":80},"envFromSecret":"","envVars":{},"image":{"pullPolicy":"IfNotPresent","repository":"docker.iterative.ai/studio-frontend"},"nodeSelector":{},"podAnnotations":{},"podSecurityContext":{},"replicaCount":1,"resources":{"limits":{"cpu":"1000m","memory":"2Gi"},"requests":{"cpu":"500m","memory":"1Gi"}},"securityContext":{},"service":{"port":3000,"type":"ClusterIP"},"strategy":{"rollingUpdate":{"maxSurge":"50%","maxUnavailable":0}},"tolerations":[]}` | Studio UI settings group |
| studioUi | object | `{"affinity":{},"autoscaling":{"enabled":false,"maxReplicas":5,"minReplicas":1,"targetCPUUtilizationPercentage":80},"envFromSecret":"","envVars":{},"image":{"pullPolicy":"IfNotPresent","repository":"docker.iterative.ai/studio-frontend"},"nodeSelector":{},"podAnnotations":{},"podSecurityContext":{},"replicaCount":1,"resources":{"limits":{"cpu":"1000m","memory":"2Gi"},"requests":{"cpu":"500m","memory":"1Gi"}},"securityContext":{},"service":{"port":3000,"type":"ClusterIP"},"strategy":{"rollingUpdate":{"maxSurge":1,"maxUnavailable":0}},"tolerations":[]}` | Studio UI settings group |
| studioUi.envFromSecret | string | `""` | The name of an existing Secret that contains sensitive environment variables passed to UI pods. |
| studioUi.envVars | object | `{}` | Additional environment variables for ui pods |
| studioWorker | object | `{"affinity":{},"autoscaling":{"enabled":false,"maxReplicas":5,"minReplicas":1,"targetCPUUtilizationPercentage":80},"envFromSecret":"","envVars":{},"image":{"pullPolicy":"IfNotPresent","repository":"docker.iterative.ai/studio-backend"},"logLevel":"info","nodeSelector":{},"podAnnotations":{},"podSecurityContext":{},"replicaCount":1,"resources":{"limits":{"cpu":"1000m","memory":"1Gi"},"requests":{"cpu":"500m","memory":"512Mi"}},"securityContext":{},"serviceAccount":{"annotations":{},"create":false,"name":""},"strategy":{"rollingUpdate":{"maxSurge":"50%","maxUnavailable":0}},"tolerations":[]}` | Studio worker settings group |
Expand Down
9 changes: 5 additions & 4 deletions charts/studio/templates/deployment-studio-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
{{- if not .Values.studioUi.autoscaling.enabled }}
replicas: {{ .Values.studioUi.replicaCount }}
{{- end }}
{{- with .Values.studioBackend.strategy }}
{{- with .Values.studioUi.strategy }}
strategy:
{{- toYaml . | nindent 4 }}
{{- end }}
Expand Down Expand Up @@ -49,8 +49,8 @@ spec:
exec:
command:
- /app/bin/startup-probe.sh
initialDelaySeconds: 2
periodSeconds: 1
initialDelaySeconds: 5
periodSeconds: 2
failureThreshold: 60
livenessProbe:
tcpSocket:
Expand All @@ -66,7 +66,8 @@ spec:
{{- end }}
port: 3000
initialDelaySeconds: 5
periodSeconds: 25
periodSeconds: 10
successThreshold: 3
timeoutSeconds: 10
envFrom:
- configMapRef:
Expand Down
2 changes: 1 addition & 1 deletion charts/studio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ studioUi:
strategy:
rollingUpdate:
maxUnavailable: 0
maxSurge: 50%
maxSurge: 1

autoscaling:
enabled: false
Expand Down

0 comments on commit 47e8f0e

Please sign in to comment.