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

fix missing spec again #100

Merged
merged 1 commit into from
Feb 29, 2024
Merged

fix missing spec again #100

merged 1 commit into from
Feb 29, 2024

Conversation

jgilfoil
Copy link
Owner

copypasta'd it out

copypasta'd it out
Copy link

--- HelmRelease: media/prowlarr Deployment: media/prowlarr

+++ HelmRelease: media/prowlarr Deployment: media/prowlarr

@@ -55,18 +55,40 @@

         - name: PROWLARR__THEME
           value: dark
         - name: TZ
           value: America/Denver
         image: ghcr.io/onedr0p/prowlarr-nightly:1.11.1.4146@sha256:d1df9f9528a64994a1d49fdad3f340fe76496777b496f1cbb0b71a718dbc4d88
         livenessProbe:
+          exec:
+            command:
+            - sh
+            - -c
+            - |
+              response=$(wget -q -O- http://localhost/ping | jq -r '.status')
+              if [ "$response" = "OK" ]; then
+                exit 0
+              else
+                exit 1
+              fi
           failureThreshold: 3
           initialDelaySeconds: 0
           periodSeconds: 10
           timeoutSeconds: 1
         name: main
         readinessProbe:
+          exec:
+            command:
+            - sh
+            - -c
+            - |
+              response=$(wget -q -O- http://localhost/ping | jq -r '.status')
+              if [ "$response" = "OK" ]; then
+                exit 0
+              else
+                exit 1
+              fi
           failureThreshold: 3
           initialDelaySeconds: 0
           periodSeconds: 10
           timeoutSeconds: 1
         resources:
           limits:

Copy link

--- kubernetes/apps/media/prowlarr/app Kustomization: flux-system/prowlarr HelmRelease: media/prowlarr

+++ kubernetes/apps/media/prowlarr/app Kustomization: flux-system/prowlarr HelmRelease: media/prowlarr

@@ -52,41 +52,43 @@

               repository: ghcr.io/onedr0p/prowlarr-nightly
               tag: 1.11.1.4146@sha256:d1df9f9528a64994a1d49fdad3f340fe76496777b496f1cbb0b71a718dbc4d88
             probes:
               liveness:
                 custom: true
                 enabled: true
-                exec:
-                  command:
-                  - sh
-                  - -c
-                  - |
-                    response=$(wget -q -O- http://localhost/ping | jq -r '.status')
-                    if [ "$response" = "OK" ]; then
-                      exit 0
-                    else
-                      exit 1
-                    fi
+                spec:
+                  exec:
+                    command:
+                    - sh
+                    - -c
+                    - |
+                      response=$(wget -q -O- http://localhost/ping | jq -r '.status')
+                      if [ "$response" = "OK" ]; then
+                        exit 0
+                      else
+                        exit 1
+                      fi
                   failureThreshold: 3
                   initialDelaySeconds: 0
                   periodSeconds: 10
                   timeoutSeconds: 1
               readiness:
                 custom: true
                 enabled: true
-                exec:
-                  command:
-                  - sh
-                  - -c
-                  - |
-                    response=$(wget -q -O- http://localhost/ping | jq -r '.status')
-                    if [ "$response" = "OK" ]; then
-                      exit 0
-                    else
-                      exit 1
-                    fi
+                spec:
+                  exec:
+                    command:
+                    - sh
+                    - -c
+                    - |
+                      response=$(wget -q -O- http://localhost/ping | jq -r '.status')
+                      if [ "$response" = "OK" ]; then
+                        exit 0
+                      else
+                        exit 1
+                      fi
                   failureThreshold: 3
                   initialDelaySeconds: 0
                   periodSeconds: 10
                   timeoutSeconds: 1
               startup:
                 enabled: false

@jgilfoil jgilfoil merged commit 22954bb into main Feb 29, 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