Skip to content

Commit

Permalink
fix(jackett): readiness probe
Browse files Browse the repository at this point in the history
  • Loading branch information
kubealex committed Jan 3, 2024
1 parent 93df77f commit 5583ecb
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 12 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
cp k8s-mediaserver.yml k8s-mediaserver-operator.yml tests/
sed -i 's/accessMode: ""/accessMode: ReadWriteOnce/g' tests/k8s-mediaserver.yml
sed -i 's/pvcStorageClass: ""/pvcStorageClass: standard/g' tests/k8s-mediaserver.yml
sed 's|quay.io\/kubealex.*|${{ env.image_name }}:${{ github.sha }}|g' tests/k8s-mediaserver-operator.yml
sed -i 's|quay.io\/kubealex.*|${{ env.image_name }}:${{ github.sha }}|g' tests/k8s-mediaserver-operator.yml
- name: Kind Cluster
uses: helm/[email protected]
Expand Down Expand Up @@ -76,15 +76,12 @@ jobs:
kubectl apply -f tests/k8s-mediaserver.yml -n mediaserver
sleep 15
for pod in $(kubectl get pods -n mediaserver | awk 'NR>1{ print $1 }'); do while [[ $(kubectl get pods $pod -n mediaserver -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True" ]]; do echo "Waiting for mediaserver pods to be ready" && sleep 10; done ; done
sleep 15
- name: Edit hosts file and test apps
run: |
sudo echo "127.0.0.1 ${{ env.plex_ingress_host }} ${{ env.ingress_host }}" | sudo tee -a /etc/hosts
sudo echo "127.0.0.1 ${{ env.jellyfin_ingress_host }} ${{ env.ingress_host }}" | sudo tee -a /etc/hosts
wget ${{ env.ingress_host }}/jackett
wget ${{ env.ingress_host }}/sonarr
wget ${{ env.ingress_host }}/radarr
wget ${{ env.ingress_host }}/sabnzbd
wget ${{ env.ingress_host }}/prowlarr
curl ${{ env.plex_ingress_host }}
curl ${{ env.jellyfin_ingress_host }}
5 changes: 2 additions & 3 deletions helm-charts/k8s-mediaserver/templates/jackett-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,9 @@ spec:
image: "{{ .Values.jackett.container.image }}:{{ .Values.jackett.container.tag | default .Values.general.image_tag }}"
imagePullPolicy: Always
readinessProbe:
httpGet:
tcpSocket:
port: {{ .Values.jackett.container.port }}
path: /{{ .Values.radarr.ingress.path }}/UI/Dashboard
initialDelaySeconds: 5
initialDelaySeconds: 15
periodSeconds: 10
ports:
- name: jackett-port
Expand Down
1 change: 1 addition & 0 deletions helm-charts/k8s-mediaserver/templates/plex-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ spec:
path: "/"
initialDelaySeconds: 20
periodSeconds: 15
timeoutSeconds: 20
ports:
- name: plex-port
containerPort: {{ .Values.plex.container.port }}
Expand Down
3 changes: 2 additions & 1 deletion helm-charts/k8s-mediaserver/templates/prowlarr-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,11 @@ spec:
imagePullPolicy: Always
readinessProbe:
httpGet:
path: "/{{ .Values.prowlarr.ingress.path }}/ping"
path: "{{ .Values.prowlarr.ingress.path }}/ping"
port: {{ .Values.prowlarr.container.port }}
initialDelaySeconds: 10
periodSeconds: 20
timeoutSeconds: 20
ports:
- name: prowlarr-port
containerPort: {{ .Values.prowlarr.container.port }}
Expand Down
3 changes: 2 additions & 1 deletion helm-charts/k8s-mediaserver/templates/radarr-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,11 @@ spec:
imagePullPolicy: Always
readinessProbe:
httpGet:
path: "/{{ .Values.radarr.ingress.path }}/ping"
path: "{{ .Values.radarr.ingress.path }}/ping"
port: {{ .Values.radarr.container.port }}
initialDelaySeconds: 10
periodSeconds: 20
timeoutSeconds: 20
ports:
- name: radarr-port
containerPort: {{ .Values.radarr.container.port }}
Expand Down
3 changes: 2 additions & 1 deletion helm-charts/k8s-mediaserver/templates/sabnzbd-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -378,10 +378,11 @@ spec:
imagePullPolicy: Always
readinessProbe:
httpGet:
path: /{{ .Values.sabnzbd.ingress.path }}/wizard/
path: "{{ .Values.sabnzbd.ingress.path }}/wizard/"
port: {{ .Values.sabnzbd.container.port.http }}
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 20
ports:
- name: sabnzbd-http
containerPort: {{ .Values.sabnzbd.container.port.http }}
Expand Down
3 changes: 2 additions & 1 deletion helm-charts/k8s-mediaserver/templates/sonarr-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,11 @@ spec:
imagePullPolicy: Always
readinessProbe:
httpGet:
path: "/{{ .Values.sonarr.ingress.path }}/ping"
path: "{{ .Values.sonarr.ingress.path }}/ping"
port: {{ .Values.sonarr.container.port }}
initialDelaySeconds: 10
periodSeconds: 20
timeoutSeconds: 20
ports:
- name: sonarr-port
containerPort: {{ .Values.sonarr.container.port }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,11 @@ spec:
imagePullPolicy: Always
readinessProbe:
httpGet:
path: /{{ .Values.transmission.ingress.path }}/
path: "{{ .Values.transmission.ingress.path }}/"
port: {{ .Values.transmission.container.port.utp }}
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 20
ports:
- name: trans-port
containerPort: {{ .Values.transmission.container.port.utp }}
Expand Down

0 comments on commit 5583ecb

Please sign in to comment.