Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjust liveness probe #40

Merged
merged 1 commit into from
Feb 26, 2024
Merged

adjust liveness probe #40

merged 1 commit into from
Feb 26, 2024

Conversation

jgilfoil
Copy link
Owner

No description provided.

Copy link

--- HelmRelease: network/vpn-gateway Deployment: network/vpn-gateway-pod-gateway

+++ HelmRelease: network/vpn-gateway Deployment: network/vpn-gateway-pod-gateway

@@ -73,14 +73,14 @@

         imagePullPolicy: null
         livenessProbe:
           exec:
             command:
             - sh
             - -c
-            - if [ $(wget -q -O- https://ipinfo.io/country) == 'NO' ]; then exit 0;
-              else exit $?; fi
+            - if [ "$(wget -q -O- https://ipinfo.io/country)" == "NO" ]; then echo
+              "NO"; else echo "not NO"; fi
           failureThreshold: 3
           initialDelaySeconds: 30
           periodSeconds: 60
         name: gluetun
         securityContext:
           capabilities:

Copy link

--- kubernetes/apps/network/vpn-gateway/app Kustomization: flux-system/vpn-gateway HelmRelease: network/vpn-gateway

+++ kubernetes/apps/network/vpn-gateway/app Kustomization: flux-system/vpn-gateway HelmRelease: network/vpn-gateway

@@ -41,14 +41,14 @@

             tag: v3.37.0
         livenessProbe:
           exec:
             command:
             - sh
             - -c
-            - if [ $(wget -q -O- https://ipinfo.io/country) == 'NO' ]; then exit 0;
-              else exit $?; fi
+            - if [ "$(wget -q -O- https://ipinfo.io/country)" == "NO" ]; then echo
+              "NO"; else echo "not NO"; fi
           failureThreshold: 3
           initialDelaySeconds: 30
           periodSeconds: 60
         networkPolicy:
           egress:
           - ports:

@jgilfoil jgilfoil merged commit fb67cd1 into main Feb 26, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant