Skip to content

Commit

Permalink
beta: test new, advanced startup
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbjoralt committed Sep 9, 2024
1 parent d73d6a1 commit aed2ba3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
4 changes: 3 additions & 1 deletion ressurser/simple-api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,6 @@
// Maybe you should use a readiness-probe?
Thread.Sleep(3000);

app.Run();
throw new Exception("OH NO I CRASHED");

// app.Run();
13 changes: 10 additions & 3 deletions ressurser/yaml-eksempler/deploy-complete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
app: simple-api
spec:
containers:
- image: "ghcr.io/varianter/k8s-101:v1.0.1"
- image: "ghcr.io/varianter/k8s-101:v1.1.0"
name: api
ports:
- containerPort: 8080
Expand All @@ -26,12 +26,19 @@ spec:
path: /health
port: 8080
periodSeconds: 3
initialDelaySeconds: 12
initialDelaySeconds: 3
readinessProbe:
httpGet:
path: /health
port: 8080
periodSeconds: 1
initialDelaySeconds: 5
initialDelaySeconds: 2
startupProbe:
httpGet:
path: /health
port: 8080
periodSeconds: 3
initialDelaySeconds: 3
failureThreshold: 30
resources: {}
status: {}

0 comments on commit aed2ba3

Please sign in to comment.