Skip to content

Commit

Permalink
feat: add lifecycle and startupProbe to containers
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpanzella committed Oct 24, 2024
1 parent 83900b1 commit 48bfe82
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions charts/wandb-service/templates/_containers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@
{{- toYaml .livenessProbe | nindent 4 }}
readinessProbe:
{{- toYaml .readinessProbe | nindent 4 }}
{{ if .startupProbe }}
startupProbe:
{{- toYaml .startupProbe | nindent 4 }}
{{ end }}
{{ if .lifecycle }}
lifecycle:
{{- toYaml .lifecycle | nindent 4 }}
{{ end }}
resources:
{{- toYaml .resources | nindent 4 }}
{{- with .volumeMounts }}
Expand Down
6 changes: 6 additions & 0 deletions charts/wandb-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ containers:
image: {}
ports:
- containerPort: 80
name: http
livenessProbe:
httpGet:
path: /
Expand All @@ -67,6 +68,11 @@ containers:
httpGet:
path: /
port: http
startupProbe:
httpGet:
path: /
port: http
lifecycle: {}
resources:
limits:
cpu: 100m
Expand Down

0 comments on commit 48bfe82

Please sign in to comment.