Updated readiness check to tcp 17/140717/2
authorsrinivasyanamadala <srinivas.yanamadala@techmahindra.com>
Thu, 8 May 2025 09:53:17 +0000 (11:53 +0200)
committersrinivasyanamadala <srinivas.yanamadala@techmahindra.com>
Thu, 8 May 2025 09:56:42 +0000 (11:56 +0200)
Issue-ID: POLICY-5353
Change-Id: I557f66046e6658ec084e417bddfc9869a630d8b3
Signed-off-by: srinivasyanamadala <srinivas.yanamadala@techmahindra.com>
helm/policy/components/policy-opa-pdp/templates/deployment.yaml
helm/policy/components/policy-opa-pdp/values.yaml

index ece9dc3..47cf468 100755 (executable)
@@ -59,18 +59,10 @@ spec:
             periodSeconds: {{ .Values.liveness.periodSeconds }}\r
           {{ end -}}\r
           readinessProbe:\r
-            httpGet:\r
-              path: {{ .Values.readiness.api }}\r
+            tcpSocket:\r
               port: {{ .Values.service.internalPort }}\r
-              httpHeaders:\r
-                - name: Authorization\r
-                  value: Basic {{ printf "%s:%s" .Values.restServer.user .Values.restServer.password | b64enc }}\r
-              scheme: HTTP\r
-            successThreshold: {{ .Values.readiness.successThreshold }}\r
-            failureThreshold: {{ .Values.readiness.failureThreshold }}\r
             initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}\r
             periodSeconds: {{ .Values.readiness.periodSeconds }}\r
-            timeoutSeconds: {{ .Values.readiness.timeout }}\r
           env:\r
             - name: UseSASLForKAFKA\r
               value: "{{ .Values.kafka.useSASL }}"\r
index 6c823aa..bc5dc82 100755 (executable)
@@ -72,10 +72,6 @@ liveness:
 readiness:
   initialDelaySeconds: 10
   periodSeconds: 120
-  api: /ready
-  successThreshold: 1
-  failureThreshold: 3
-  timeout: 60
 
 service:
   type: ClusterIP