瀏覽代碼

add probes to logsearchapi

Stavros kois 2 年之前
父節點
當前提交
7bd6b30316
共有 1 個文件被更改,包括 21 次插入0 次删除
  1. 21 0
      charts/minio/1.6.58/templates/logsearchapi-deployment.yaml

+ 21 - 0
charts/minio/1.6.58/templates/logsearchapi-deployment.yaml

@@ -15,4 +15,25 @@ spec: {{ include "common.deployment.common_spec" $values | nindent 2 }}
         - name: logsearchapi
           containerPort: 8080
           protocol: TCP
+        readinessProbe:
+          httpGet:
+            path: /status
+            port: 8080
+          failureThreshold: 5
+          periodSeconds: 15
+          initialDelaySeconds: 15
+        livenessProbe:
+          httpGet:
+            path: /status
+            port: 8080
+          failureThreshold: 5
+          periodSeconds: 15
+          initialDelaySeconds: 15
+        startupProbe:
+          httpGet:
+            path: /status
+            port: 8080
+          failureThreshold: 5
+          periodSeconds: 15
+          initialDelaySeconds: 15
 {{ end }}