Skip to content

Commit 97213b1

Browse files
vskjefstJMLindseth
andcommitted
Sett initial delay på readiness-probe
Appen starter ikke opp i dev, vi håper at det er på grunn av en K8S probe som ikke får svar, og sender shutdown Co-authored-by: John Martin Lindseth <[email protected]>
1 parent 91e92c3 commit 97213b1

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

.github/workflows/deploy.yaml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
deploy-dev:
5050
name: Deploy to dev
5151
needs: [build]
52-
if: github.ref == 'refs/heads/main'
52+
if: github.ref == 'refs/heads/sett-initial-delay-på-readiness'
5353
runs-on: ubuntu-latest
5454
permissions:
5555
contents: "read"
@@ -64,21 +64,21 @@ jobs:
6464
VARS: nais/vars.yaml
6565
VAR: image=${{ needs.build.outputs.image }}
6666
PRINT_PAYLOAD: true
67-
deploy-prod:
68-
name: Deploy to Production
69-
needs: [build, deploy-dev]
70-
if: github.ref == 'refs/heads/main'
71-
runs-on: ubuntu-latest
72-
permissions:
73-
contents: "read"
74-
id-token: "write"
75-
environment: prod-gcp
76-
steps:
77-
- uses: actions/checkout@v4
78-
- uses: nais/deploy/actions/deploy@v2
79-
env:
80-
CLUSTER: prod-gcp
81-
RESOURCE: nais/prod/nais.yaml
82-
VARS: nais/vars.yaml
83-
VAR: image=${{ needs.build.outputs.image }}
84-
PRINT_PAYLOAD: true
67+
#deploy-prod:
68+
# name: Deploy to Production
69+
# needs: [build, deploy-dev]
70+
# if: github.ref == 'refs/heads/main'
71+
# runs-on: ubuntu-latest
72+
# permissions:
73+
# contents: "read"
74+
# id-token: "write"
75+
# environment: prod-gcp
76+
# steps:
77+
# - uses: actions/checkout@v4
78+
# - uses: nais/deploy/actions/deploy@v2
79+
# env:
80+
# CLUSTER: prod-gcp
81+
# RESOURCE: nais/prod/nais.yaml
82+
# VARS: nais/vars.yaml
83+
# VAR: image=${{ needs.build.outputs.image }}
84+
# PRINT_PAYLOAD: true

nais/dev/nais.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ spec:
2020
path: /isAlive
2121
readiness:
2222
path: /isReady
23+
initialDelay: 10
2324
prometheus:
2425
enabled: true
2526
path: /metrics

0 commit comments

Comments
 (0)