Skip to content

Commit

Permalink
Generalized startupProbe injection in all charts (#153)
Browse files Browse the repository at this point in the history
* Generalized startupProbe injection & weaker liveness condition in all charts

---------

Co-authored-by: gferey <[email protected]>
Co-authored-by: Gaspi <[email protected]>
  • Loading branch information
3 people authored Sep 16, 2024
1 parent 58a94af commit 034d940
Show file tree
Hide file tree
Showing 24 changed files with 114 additions and 38 deletions.
3 changes: 1 addition & 2 deletions charts/jupyter-pyspark/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)

version: 2.0.6
version: 2.0.7

dependencies:
- name: library-chart
Expand Down
6 changes: 5 additions & 1 deletion charts/jupyter-pyspark/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -250,15 +250,19 @@ spec:
httpGet:
path: /
port: {{ .Values.networking.service.port }}
timeoutSeconds: 2
failureThreshold: 6
readinessProbe:
httpGet:
path: /
port: {{ .Values.networking.service.port }}
{{- if hasKey .Values "startupProbe" }}
startupProbe:
httpGet:
path: /
port: {{ .Values.networking.service.port }}
{{- toYaml .Values.startupProbe | nindent 12 }}
{{- toYaml .Values.startupProbe | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
Expand Down
10 changes: 8 additions & 2 deletions charts/jupyter-pyspark/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -818,8 +818,14 @@
},
"startupProbe": {
"type": "object",
"description": "Start up probe",
"default": {},
"description": "Startup probe",
"default": {
"failureThreshold": 60,
"initialDelaySeconds": 10,
"periodSeconds": 10,
"successThreshold": 1,
"timeoutSeconds": 2
},
"x-onyxia": {
"hidden": true,
"overwriteDefaultWith": "region.startupProbe",
Expand Down
4 changes: 2 additions & 2 deletions charts/jupyter-pyspark/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,12 @@ startupProbe:
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
timeoutSeconds: 2

userPreferences:
darkMode: false
language: "en"

message:
fr: ""
en: ""
en: ""
3 changes: 1 addition & 2 deletions charts/jupyter-python/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)

version: 2.0.6
version: 2.0.7

dependencies:
- name: library-chart
Expand Down
6 changes: 5 additions & 1 deletion charts/jupyter-python/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,19 @@ spec:
httpGet:
path: /
port: {{ .Values.networking.service.port }}
timeoutSeconds: 2
failureThreshold: 6
readinessProbe:
httpGet:
path: /
port: {{ .Values.networking.service.port }}
{{- if hasKey .Values "startupProbe" }}
startupProbe:
httpGet:
path: /
port: {{ .Values.networking.service.port }}
{{- toYaml .Values.startupProbe | nindent 12 }}
{{- toYaml .Values.startupProbe | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
Expand Down
12 changes: 9 additions & 3 deletions charts/jupyter-python/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -725,14 +725,20 @@
},
"startupProbe": {
"type": "object",
"description": "Start up probe",
"default": {},
"description": "Startup probe",
"default": {
"failureThreshold": 60,
"initialDelaySeconds": 10,
"periodSeconds": 10,
"successThreshold": 1,
"timeoutSeconds": 2
},
"x-onyxia": {
"hidden": true,
"overwriteDefaultWith": "region.startupProbe",
"overwriteSchemaWith": "ide/startupProbe.json"
}
},
},
"tolerations": {
"type": "array",
"description": "Array of tolerations",
Expand Down
2 changes: 1 addition & 1 deletion charts/jupyter-python/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ startupProbe:
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
timeoutSeconds: 2

userPreferences:
darkMode: false
Expand Down
2 changes: 1 addition & 1 deletion charts/rstudio-sparkr/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.0.5
version: 2.0.6

dependencies:
- name: library-chart
Expand Down
10 changes: 5 additions & 5 deletions charts/rstudio-sparkr/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -223,19 +223,19 @@ spec:
httpGet:
path: /
port: {{ .Values.networking.service.port }}
timeoutSeconds: 2
failureThreshold: 6
readinessProbe:
httpGet:
path: /
port: {{ .Values.networking.service.port }}
{{- if hasKey .Values "startupProbe" }}
startupProbe:
httpGet:
path: /
port: {{ .Values.networking.service.port }}
failureThreshold: 60
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
{{- toYaml .Values.startupProbe | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
Expand Down
10 changes: 8 additions & 2 deletions charts/rstudio-sparkr/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -750,8 +750,14 @@
},
"startupProbe": {
"type": "object",
"description": "Start up probe",
"default": {},
"description": "Startup probe",
"default": {
"failureThreshold": 60,
"initialDelaySeconds": 10,
"periodSeconds": 10,
"successThreshold": 1,
"timeoutSeconds": 2
},
"x-onyxia": {
"hidden": true,
"overwriteDefaultWith": "region.startupProbe",
Expand Down
7 changes: 7 additions & 0 deletions charts/rstudio-sparkr/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,13 @@ tolerations: []

affinity: {}

startupProbe:
failureThreshold: 60
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 2

proxy:
enabled: false
noProxy: ""
Expand Down
2 changes: 1 addition & 1 deletion charts/rstudio/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.0.5
version: 2.0.6

dependencies:
- name: library-chart
Expand Down
10 changes: 5 additions & 5 deletions charts/rstudio/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,19 +136,19 @@ spec:
httpGet:
path: /
port: {{ .Values.networking.service.port }}
timeoutSeconds: 2
failureThreshold: 6
readinessProbe:
httpGet:
path: /
port: {{ .Values.networking.service.port }}
{{- if hasKey .Values "startupProbe" }}
startupProbe:
httpGet:
path: /
port: {{ .Values.networking.service.port }}
failureThreshold: 60
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
{{- toYaml .Values.startupProbe | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
Expand Down
10 changes: 8 additions & 2 deletions charts/rstudio/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -674,8 +674,14 @@
},
"startupProbe": {
"type": "object",
"description": "Start up probe",
"default": {},
"description": "Startup probe",
"default": {
"failureThreshold": 60,
"initialDelaySeconds": 10,
"periodSeconds": 10,
"successThreshold": 1,
"timeoutSeconds": 2
},
"x-onyxia": {
"hidden": true,
"overwriteDefaultWith": "region.startupProbe",
Expand Down
7 changes: 7 additions & 0 deletions charts/rstudio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,13 @@ tolerations: []

affinity: {}

startupProbe:
failureThreshold: 60
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 2

repository:
configMapName: ""
packageManagerUrl: ""
Expand Down
2 changes: 1 addition & 1 deletion charts/vscode-pyspark/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.0.5
version: 2.0.6

dependencies:
- name: library-chart
Expand Down
6 changes: 5 additions & 1 deletion charts/vscode-pyspark/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -247,15 +247,19 @@ spec:
httpGet:
path: /
port: {{ .Values.networking.service.port }}
timeoutSeconds: 2
failureThreshold: 6
readinessProbe:
httpGet:
path: /
port: {{ .Values.networking.service.port }}
{{- if hasKey .Values "startupProbe" }}
startupProbe:
httpGet:
path: /
port: {{ .Values.networking.service.port }}
{{- toYaml .Values.startupProbe | nindent 12 }}
{{- toYaml .Values.startupProbe | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
Expand Down
10 changes: 8 additions & 2 deletions charts/vscode-pyspark/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -787,8 +787,14 @@
},
"startupProbe": {
"type": "object",
"description": "Start up probe",
"default": {},
"description": "Startup probe",
"default": {
"failureThreshold": 60,
"initialDelaySeconds": 10,
"periodSeconds": 10,
"successThreshold": 1,
"timeoutSeconds": 2
},
"x-onyxia": {
"hidden": true,
"overwriteDefaultWith": "region.startupProbe",
Expand Down
2 changes: 1 addition & 1 deletion charts/vscode-pyspark/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ startupProbe:
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
timeoutSeconds: 2

userPreferences:
darkMode: false
Expand Down
2 changes: 1 addition & 1 deletion charts/vscode-python/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.0.5
version: 2.0.6

dependencies:
- name: library-chart
Expand Down
9 changes: 9 additions & 0 deletions charts/vscode-python/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,19 @@ spec:
httpGet:
path: /
port: {{ .Values.networking.service.port }}
timeoutSeconds: 2
failureThreshold: 6
readinessProbe:
httpGet:
path: /
port: {{ .Values.networking.service.port }}
{{- if hasKey .Values "startupProbe" }}
startupProbe:
httpGet:
path: /
port: {{ .Values.networking.service.port }}
{{- toYaml .Values.startupProbe | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
Expand Down
10 changes: 8 additions & 2 deletions charts/vscode-python/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -734,8 +734,14 @@
},
"startupProbe": {
"type": "object",
"description": "Start up probe",
"default": {},
"description": "Startup probe",
"default": {
"failureThreshold": 60,
"initialDelaySeconds": 10,
"periodSeconds": 10,
"successThreshold": 1,
"timeoutSeconds": 2
},
"x-onyxia": {
"hidden": true,
"overwriteDefaultWith": "region.startupProbe",
Expand Down
7 changes: 7 additions & 0 deletions charts/vscode-python/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,13 @@ tolerations: []

affinity: {}

startupProbe:
failureThreshold: 60
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 2

userPreferences:
darkMode: false
language: "en"
Expand Down

0 comments on commit 034d940

Please sign in to comment.