浏览代码

add probes

Stavros kois 2 年之前
父节点
当前提交
1e3f8196a7
共有 1 个文件被更改,包括 19 次插入0 次删除
  1. 19 0
      test/wg-easy/1.0.0/templates/deployment.yaml

+ 19 - 0
test/wg-easy/1.0.0/templates/deployment.yaml

@@ -57,6 +57,25 @@ spec:
             {{ $envList = mustAppend $envList (dict "name" "WG_ALLOWED_IPS" "value" ("0.0.0.0/0,::/0")) }}
             {{ end }}
             {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }}
+          readinessProbe:
+            httpGet:
+              path: /
+              port: 51821
+            failureThreshold: 5
+            periodSeconds: 15
+          livenessProbe:
+            httpGet:
+              path: /
+              port: 51821
+            failureThreshold: 5
+            periodSeconds: 15
+          startupProbe:
+            httpGet:
+              path: /
+              port: 51821
+            initialDelaySeconds: 5
+            failureThreshold: 40
+            periodSeconds: 15
 {{ include "common.networking.dnsConfiguration" .Values | nindent 6 }}
       volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }}
       {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}