Skip to content

Commit

Permalink
fix: Allow ALB time to register new pod ip for the wandb app and cons…
Browse files Browse the repository at this point in the history
…ole pod (#76)

Co-authored-by: Justin Brooks <jsbroks@gmail.com>
Co-authored-by: Aditya Choudhari <48932219+adityachoudhari26@users.noreply.github.com>
Co-authored-by: Aditya Choudhari <aditya.choudhari@wandb.com>
  • Loading branch information
4 people authored Apr 3, 2024
1 parent 8c2bf26 commit 2500829
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/operator-wandb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: operator-wandb
description: A Helm chart for deploying W&B to Kubernetes
type: application
version: 0.12.1
version: 0.12.2
appVersion: 1.0.0
icon: https://wandb.ai/logo.svg

Expand Down
12 changes: 12 additions & 0 deletions charts/operator-wandb/charts/app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ spec:
{{- include "wandb.nodeSelector" . | nindent 6 }}
{{- include "wandb.priorityClassName" . | nindent 6 }}
{{- include "wandb.podSecurityContext" .Values.pod.securityContext | nindent 6 }}
# Extend the pods shutdown grace period from the default of 30s to 60s.
# This goes in the pod template spec.
terminationGracePeriodSeconds: 60
initContainers:
- name: init-db
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down Expand Up @@ -217,11 +220,20 @@ spec:
httpGet:
path: /ready
port: http
initialDelaySeconds: 20
periodSeconds: 5
startupProbe:
httpGet:
path: /ready
port: http
initialDelaySeconds: 20
periodSeconds: 5
failureThreshold: 120
# Increase the sleep before SIGTERM to 25s. I had this as 5s previously and it wasn't enough.
lifecycle:
preStop:
exec:
command: ["sleep", "25"]

resources:
{{- toYaml .Values.resources | nindent 12 }}
Expand Down
12 changes: 12 additions & 0 deletions charts/operator-wandb/charts/console/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ spec:
{{- include "wandb.nodeSelector" . | nindent 6 }}
{{- include "wandb.priorityClassName" . | nindent 6 }}
{{- include "wandb.podSecurityContext" .Values.pod.securityContext | nindent 6 }}
# Extend the pods shutdown grace period from the default of 30s to 60s.
# This goes in the pod template spec.
terminationGracePeriodSeconds: 60
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down Expand Up @@ -76,11 +79,20 @@ spec:
httpGet:
path: /console/api/ready
port: http
initialDelaySeconds: 20
periodSeconds: 5
startupProbe:
httpGet:
path: /console/api/ready
port: http
initialDelaySeconds: 20
periodSeconds: 5
failureThreshold: 120
# Increase the sleep before SIGTERM to 25s. I had this as 5s previously and it wasn't enough.
lifecycle:
preStop:
exec:
command: ["sleep", "25"]

resources:
{{- toYaml .Values.resources | nindent 12 }}
Expand Down

0 comments on commit 2500829

Please sign in to comment.