Commit eae1bfba authored by Krishna Nikhil Vedurumudi's avatar Krishna Nikhil Vedurumudi
Browse files

Added health probes

parent 9ab5a58d
Pipeline #71604 passed with stages
in 17 minutes and 12 seconds
......@@ -47,8 +47,14 @@ spec:
- containerPort: 80
readinessProbe:
httpGet:
path: /api/schema-service/v1/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"
......@@ -113,5 +119,6 @@ spec:
value: "false"
- name: event_grid_topic
value: "schemachangedtopic"
- name: SPRING_CONFIG_NAME
value: "common,application"
......@@ -30,7 +30,7 @@
<properties>
<azure.version>2.1.7</azure.version>
<osdu.corelibazure.version>0.11.0</osdu.corelibazure.version>
<osdu.corelibazure.version>0.12.0-rc7</osdu.corelibazure.version>
<osdu.oscorecommon.version>0.11.0</osdu.oscorecommon.version>
<osdu.os-schema-core.version>0.11.0</osdu.os-schema-core.version>
<mockito.version>1.10.19</mockito.version>
......@@ -59,6 +59,11 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
<version>2.4.5</version>
</dependency>
</dependencies>
</dependencyManagement>
......
......@@ -39,8 +39,11 @@ azure.storage.enable-https=true
#Azure App Insights configuration
azure.application-insights.instrumentation-key=${appinsights_key}
management.endpoints.web.exposure.include=mappings
# Configuration for health checks
management.server.port=8081
management.health.elasticsearch.enabled=false
management.health.azure-key-vault.enabled=false
# Azure KeyVault configuration
azure.keyvault.url=${KEYVAULT_URI}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment