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: ...@@ -47,8 +47,14 @@ spec:
- containerPort: 80 - containerPort: 80
readinessProbe: readinessProbe:
httpGet: httpGet:
path: /api/schema-service/v1/swagger-ui.html path: /actuator/health
port: 80 port: 8081
livenessProbe:
httpGet:
path: /actuator/health
port: 8081
initialDelaySeconds: 250
periodSeconds: 10
volumeMounts: volumeMounts:
- name: azure-keyvault - name: azure-keyvault
mountPath: "/mnt/azure-keyvault" mountPath: "/mnt/azure-keyvault"
...@@ -113,5 +119,6 @@ spec: ...@@ -113,5 +119,6 @@ spec:
value: "false" value: "false"
- name: event_grid_topic - name: event_grid_topic
value: "schemachangedtopic" value: "schemachangedtopic"
- name: SPRING_CONFIG_NAME
value: "common,application"
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<properties> <properties>
<azure.version>2.1.7</azure.version> <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.oscorecommon.version>0.11.0</osdu.oscorecommon.version>
<osdu.os-schema-core.version>0.11.0</osdu.os-schema-core.version> <osdu.os-schema-core.version>0.11.0</osdu.os-schema-core.version>
<mockito.version>1.10.19</mockito.version> <mockito.version>1.10.19</mockito.version>
...@@ -59,6 +59,11 @@ ...@@ -59,6 +59,11 @@
</exclusion> </exclusion>
</exclusions> </exclusions>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
<version>2.4.5</version>
</dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
......
...@@ -39,8 +39,11 @@ azure.storage.enable-https=true ...@@ -39,8 +39,11 @@ azure.storage.enable-https=true
#Azure App Insights configuration #Azure App Insights configuration
azure.application-insights.instrumentation-key=${appinsights_key} 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.elasticsearch.enabled=false
management.health.azure-key-vault.enabled=false
# Azure KeyVault configuration # Azure KeyVault configuration
azure.keyvault.url=${KEYVAULT_URI} azure.keyvault.url=${KEYVAULT_URI}
......
Supports Markdown
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