From d8d2838676d944d16e031a3b27f9e0ed21d6fce8 Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Wed, 14 Jun 2023 15:19:16 +0200
Subject: [PATCH] deactivate healtch checks

---
 pom.xml                                 | 16 +++++-----
 src/main/helm/templates/deployment.yaml | 38 +++++++++++-----------
 src/main/resources/application.yml      | 42 ++++++++++++-------------
 3 files changed, 48 insertions(+), 48 deletions(-)

diff --git a/pom.xml b/pom.xml
index 3e21b1b..9b17e3e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,10 +24,10 @@
 			<groupId>org.springframework.boot</groupId>
 			<artifactId>spring-boot-starter</artifactId>
 		</dependency>
-		<dependency>
-			<groupId>org.springframework.boot</groupId>
-			<artifactId>spring-boot-starter-web-services</artifactId>
-		</dependency>
+<!--		<dependency>-->
+<!--			<groupId>org.springframework.boot</groupId>-->
+<!--			<artifactId>spring-boot-starter-web-services</artifactId>-->
+<!--		</dependency>-->
 
 
 		<dependency>
@@ -49,10 +49,10 @@
 		    <artifactId>reflections</artifactId>
 		    <version>0.10.2</version>
 		</dependency>
-		<dependency>
-			<groupId>org.springframework.boot</groupId>
-			<artifactId>spring-boot-starter-actuator</artifactId>
-		</dependency>
+<!--		<dependency>-->
+<!--			<groupId>org.springframework.boot</groupId>-->
+<!--			<artifactId>spring-boot-starter-actuator</artifactId>-->
+<!--		</dependency>-->
 
 
 <!--		<dependency>-->
diff --git a/src/main/helm/templates/deployment.yaml b/src/main/helm/templates/deployment.yaml
index 0f424a4..79e994e 100644
--- a/src/main/helm/templates/deployment.yaml
+++ b/src/main/helm/templates/deployment.yaml
@@ -53,25 +53,25 @@ spec:
 {{ toYaml . | indent 8 }}
         {{- end }}
         imagePullPolicy: Always
-        readinessProbe:
-          failureThreshold: 3
-          httpGet:
-            path: /actuator/health/readiness
-            port: 8081
-            scheme: HTTP
-          periodSeconds: 10
-          successThreshold: 1
-          timeoutSeconds: 3
-        startupProbe:
-          failureThreshold: 10
-          httpGet:
-            path: /actuator/health/readiness
-            port: 8081
-            scheme: HTTP
-          initialDelaySeconds: 30
-          periodSeconds: 5
-          successThreshold: 1
-          timeoutSeconds: 5
+#        readinessProbe:
+#          failureThreshold: 3
+#          httpGet:
+#            path: /actuator/health/readiness
+#            port: 8081
+#            scheme: HTTP
+#          periodSeconds: 10
+#          successThreshold: 1
+#          timeoutSeconds: 3
+#        startupProbe:
+#          failureThreshold: 10
+#          httpGet:
+#            path: /actuator/health/readiness
+#            port: 8081
+#            scheme: HTTP
+#          initialDelaySeconds: 30
+#          periodSeconds: 5
+#          successThreshold: 1
+#          timeoutSeconds: 5
         resources:
         {{- with .Values.resources }}
 {{ toYaml . | indent 10 }}
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index 36a955e..6ddcc31 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -1,22 +1,22 @@
 
-management:
-  server:
-    port: 8081
-  health:
-    livenessState:
-      enabled: true
-    readinessState:
-      enabled: true
-  endpoint:
-    health:
-      group:
-        readiness:
-          include:
-          - readinessState
-      probes.enabled: true
-    prometheus:
-      enabled: true
-  endpoints:
-    web:
-      exposure:
-        include: health,prometheus
+#management:
+#  server:
+#    port: 8081
+#  health:
+#    livenessState:
+#      enabled: true
+#    readinessState:
+#      enabled: true
+#  endpoint:
+#    health:
+#      group:
+#        readiness:
+#          include:
+#          - readinessState
+#      probes.enabled: true
+#    prometheus:
+#      enabled: true
+#  endpoints:
+#    web:
+#      exposure:
+#        include: health,prometheus
-- 
GitLab