Skip to content

Commit

Permalink
Fix probes
Browse files Browse the repository at this point in the history
  • Loading branch information
meezaan committed Apr 24, 2021
1 parent f0f5058 commit 26919a8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .k8s/manifest-europe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ spec:
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
maxSurge: 2
maxUnavailable: 0
selector:
matchLabels:
app: alquran-cloud-app
Expand Down Expand Up @@ -41,19 +41,17 @@ spec:
value: http://alquran-cloud-api/
livenessProbe:
httpGet:
path: /about
path: /liveness
port: 8080
initialDelaySeconds: 15
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 3
readinessProbe:
startupProbe:
httpGet:
path: /about
path: /liveness
port: 8080
initialDelaySeconds: 7
periodSeconds: 15
timeoutSeconds: 3
periodSeconds: 7
failureThreshold: 3
resources:
requests:
Expand Down
5 changes: 5 additions & 0 deletions routes/other.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@
]);
});

$app->get('/liveness', function (Request $request, Response $response) {
return $response->withJson('OK', 200);
});

$app->get('/arabic-font-edition-tester', function ($request, $response, $args) {
if ($request->getQueryParam('reference') !== null && $request->getQueryParam('reference') != '') {
$reference = urldecode($request->getQueryParam('reference'));
Expand All @@ -111,4 +115,5 @@
],
'view' => 'api'
]);

});

0 comments on commit 26919a8

Please sign in to comment.