This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-swck.git


The following commit(s) were added to refs/heads/master by this push:
     new 64fd5de  Add startupProbe, livenessProbe and readinessProbe for 
OAPServer. (#93)
64fd5de is described below

commit 64fd5de98c4b57663d1bcea66a7d1a52d144f215
Author: Ye Cao <[email protected]>
AuthorDate: Wed Sep 6 21:12:24 2023 +0800

    Add startupProbe, livenessProbe and readinessProbe for OAPServer. (#93)
---
 .../manifests/oapserver/templates/deployment.yaml  | 29 ++++++++++------------
 1 file changed, 13 insertions(+), 16 deletions(-)

diff --git 
a/operator/pkg/operator/manifests/oapserver/templates/deployment.yaml 
b/operator/pkg/operator/manifests/oapserver/templates/deployment.yaml
index d8ced76..4ed0c03 100644
--- a/operator/pkg/operator/manifests/oapserver/templates/deployment.yaml
+++ b/operator/pkg/operator/manifests/oapserver/templates/deployment.yaml
@@ -25,7 +25,6 @@ metadata:
     operator.skywalking.apache.org/oap-server-name: {{ .Name }}
     operator.skywalking.apache.org/application: oapserver
     operator.skywalking.apache.org/component: deployment
-
 spec:
   replicas: {{ .Spec.Instances }}
   minReadySeconds: 5
@@ -64,25 +63,23 @@ spec:
             - containerPort: 1234
               name: http-monitoring
           livenessProbe:
+            tcpSocket:
+              port: 12800
+            initialDelaySeconds: 5
+            periodSeconds: 10
+            failureThreshold: 10
+          startupProbe:
+            tcpSocket:
+              port: 12800
             initialDelaySeconds: 10
-            timeoutSeconds: 10
-            periodSeconds: 30
+            periodSeconds: 10
             failureThreshold: 10
-            successThreshold: 1
-            exec:
-              command:
-                - /skywalking/bin/swctl
-                - ch
           readinessProbe:
-            initialDelaySeconds: 10
-            timeoutSeconds: 10
-            periodSeconds: 30
+            tcpSocket:
+              port: 12800
+            initialDelaySeconds: 5
+            periodSeconds: 10
             failureThreshold: 10
-            successThreshold: 1
-            exec:
-              command:
-                - /skywalking/bin/swctl
-                - ch
           {{if .Spec.StorageConfig.Storage.Spec.Security.TLS}}
           volumeMounts:
             - name: cert

Reply via email to