Skip to content

Commit

Permalink
setter periodSeconds lavt
Browse files Browse the repository at this point in the history
etter litt eksperimentering har jeg observert at k8s ikke registrerer at en pod er "not ready" mens den holder på å skru seg av. For apper med http apier er jo dette litt dumt, for da vil appen kunne få trafikk mens den skal skrus av.

ved å sette periodSeconds til 1 så observerte jeg at appen ble registrert som "not ready" i god tid før den avsluttet.
  • Loading branch information
davidsteinsland committed Nov 23, 2024
1 parent 960952e commit 1c1b938
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions deploy/dev-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ spec:
readiness:
path: /isready
initialDelay: 5
periodSeconds: 1
resources:
limits:
memory: 512Mi
Expand Down
1 change: 1 addition & 0 deletions deploy/prod-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ spec:
readiness:
path: /isready
initialDelay: 5
periodSeconds: 1
resources:
limits:
memory: 5Gi
Expand Down

0 comments on commit 1c1b938

Please sign in to comment.