From 555b9eabbd81ebb354f354b7ba42f356f36a3917 Mon Sep 17 00:00:00 2001 From: aalekhj <aaljain@microsoft.com> Date: Fri, 8 Oct 2021 11:36:57 +0530 Subject: [PATCH] Added health endpoints - indexer azure --- devops/azure/chart/templates/deployment.yaml | 10 ++++++++-- .../src/main/resources/application.properties | 2 ++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/devops/azure/chart/templates/deployment.yaml b/devops/azure/chart/templates/deployment.yaml index b7baad43d..9b1dad7ab 100644 --- a/devops/azure/chart/templates/deployment.yaml +++ b/devops/azure/chart/templates/deployment.yaml @@ -52,8 +52,14 @@ spec: cpu: "500m" readinessProbe: httpGet: - path: /api/indexer/v2/swagger-ui.html - port: 80 + path: /actuator/health + port: 8081 + livenessProbe: + httpGet: + path: /actuator/health + port: 8081 + initialDelaySeconds: 250 + periodSeconds: 10 volumeMounts: - name: azure-keyvault mountPath: "/mnt/azure-keyvault" diff --git a/provider/indexer-azure/src/main/resources/application.properties b/provider/indexer-azure/src/main/resources/application.properties index 0d27fa488..871cbdb1d 100644 --- a/provider/indexer-azure/src/main/resources/application.properties +++ b/provider/indexer-azure/src/main/resources/application.properties @@ -88,6 +88,8 @@ tenantFactoryImpl.required=true # Disable keyVault for actuator health check management.health.azure-key-vault.enabled=false +management.server.port=8081 + #Redis redis.database=${REDIS_DATABASE} \ No newline at end of file -- GitLab