From f1ec8420c85dbe4b1fa6d8946becf2c1d0052ab7 Mon Sep 17 00:00:00 2001
From: "Hayk Kharazyan [EPAM / GCP]" <hayk_kharazyan@epam.com>
Date: Thu, 20 Jun 2024 08:35:44 +0000
Subject: [PATCH] Update liveness/readiiness endpoints

---
 NOTICE                                         |  2 +-
 devops/gc/deploy/templates/register-deploy.yml | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/NOTICE b/NOTICE
index 5a58bc908..a0a981a0b 100644
--- a/NOTICE
+++ b/NOTICE
@@ -588,6 +588,7 @@ The following software have components provided under the terms of this license:
 - Azure Spring Boot AutoConfigure (from https://github.com/Azure/azure-sdk-for-java, https://github.com/Microsoft/azure-spring-boot)
 - Azure Spring Boot Starter for Azure AD Spring Security Integration (from https://github.com/Azure/azure-sdk-for-java)
 - Checker Qual (from https://checkerframework.org)
+- Extensions on Apache Proton-J library (from https://github.com/Azure/qpid-proton-j-extensions)
 - JUL to SLF4J bridge (from http://www.slf4j.org)
 - Jackson-core (from http://wiki.fasterxml.com/JacksonHome, https://github.com/FasterXML/jackson-core)
 - Java Client Runtime for AutoRest (from https://github.com/Azure/autorest-clientruntime-for-java)
@@ -636,7 +637,6 @@ The following software have components provided under the terms of this license:
 - mockito-junit-jupiter (from https://github.com/mockito/mockito)
 - msal4j (from https://github.com/AzureAD/microsoft-authentication-library-for-java)
 - msal4j-persistence-extension (from https://github.com/AzureAD/microsoft-authentication-extensions-for-java, https://github.com/AzureAD/microsoft-authentication-library-for-java)
-- qpid-proton-j-extensions (from https://github.com/Azure/qpid-proton-j-extensions)
 
 ========================================================================
 MPL-1.1
diff --git a/devops/gc/deploy/templates/register-deploy.yml b/devops/gc/deploy/templates/register-deploy.yml
index d201787d0..f25d9bf43 100644
--- a/devops/gc/deploy/templates/register-deploy.yml
+++ b/devops/gc/deploy/templates/register-deploy.yml
@@ -45,13 +45,13 @@ spec:
           runAsNonRoot: true
         ports:
         - containerPort: 8080
-        livenessProbe:
+        readinessProbe:
           failureThreshold: 3
           httpGet:
-            path: /api/register/v1/ah/liveness_check
-            port: 8080
-          initialDelaySeconds: 120
-          periodSeconds: 10
+            path: /health
+            port: 8081
+          initialDelaySeconds: 90
+          periodSeconds: 15
         resources:
           requests:
             cpu: {{ .Values.data.requestsCpu | quote }}
-- 
GitLab