8000 Add readiness probe · jarnovanleeuwen/laravel-dock@e77a3fb · GitHub
[go: up one dir, main page]

Skip to content

Commit e77a3fb

Browse files
Add readiness probe
1 parent 0085276 commit e77a3fb

File tree

Expand file tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

build/kubernetes.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,17 @@ spec:
8787
preStop:
8888
exec:
8989
command: ["sleep", "5"]
90+
# Start sending traffic only after the application is ready (Apache is running).
91+
readinessProbe:
92+
exec:
75AF
93+
command:
94+
- curl
95+
- http://localhost
96+
# initialDelaySeconds: 0
97+
periodSeconds: 10 # default is 10
98+
timeoutSeconds: 10 # default is 1
99+
# successThreshold: 1
100+
# failureThreshold: 3
90101
resources:
91102
requests:
92103
cpu: 1000m

0 commit comments

Comments
 (0)
0