From 70cc12d49e25327665e09feb5ecd71790d15832e Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Wed, 20 Dec 2023 12:57:00 +0100
Subject: [PATCH] OZG-4453 enable spring health checks

---
 .../src/main/resources/application.yml        | 25 ++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)

diff --git a/ozgcloud-elasticsearch-operator/src/main/resources/application.yml b/ozgcloud-elasticsearch-operator/src/main/resources/application.yml
index 345aceb..a77683f 100644
--- a/ozgcloud-elasticsearch-operator/src/main/resources/application.yml
+++ b/ozgcloud-elasticsearch-operator/src/main/resources/application.yml
@@ -6,4 +6,27 @@ ozgcloud:
     secretCredentialsName: elasticsearch-credentials
     host: https://ozg-search-cluster-es-http
     address: ozg-search-cluster-es-http.elastic-system
-    port: 9200
\ No newline at end of file
+    port: 9200
+
+management:
+  server:
+    port: 8081
+  health:
+    livenessState:
+      enabled: true
+    readinessState:
+      enabled: true
+  endpoint:
+    health:
+      group:
+        exploratory:
+          include: livenessState,readinessState,ping
+          show-details: always
+      probes:
+        enabled: true
+    prometheus:
+      enabled: true
+  endpoints:
+    web:
+      exposure:
+        include: "*"
\ No newline at end of file
-- 
GitLab