From 1e3f8196a794261f91da54e1e2ee39a668569111 Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Mon, 7 Nov 2022 16:20:51 +0200 Subject: [PATCH] add probes --- test/wg-easy/1.0.0/templates/deployment.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/test/wg-easy/1.0.0/templates/deployment.yaml b/test/wg-easy/1.0.0/templates/deployment.yaml index 21886549ff..31f1a5160a 100644 --- a/test/wg-easy/1.0.0/templates/deployment.yaml +++ b/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 }}