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

Problem with health probes #80

Closed
Krm1t opened this issue Jan 18, 2020 · 1 comment
Closed

Problem with health probes #80

Krm1t opened this issue Jan 18, 2020 · 1 comment

Comments

@Krm1t
Copy link

Krm1t commented Jan 18, 2020

Hello

I'm trying to get this up and running but am running into problems with the live- and readyness probes. I keep getting Connection Refused on them.

I've already tried to disable the probes so i could connect to the container.
If i then run "curl localhost:32400" or "curl localhost:32400/identity" from within the container i get connection refused on both calls.

Both of my shares are nfs shares and in the config folder the following files are created.
/.bash_history
/Library/Application Support/Plex Media Server/Preferences.xml

I would have expected more than only these 2 files.
Also the xml file contains only the root element with a few attributes and no inner xml - Don't know if there should be more or not.

I use the following script to install kube-plex.
#!/bin/bash
PLEXTOKEN=${1?Error: no plex token given}

kubectl apply -f ns-plex.yaml
kubectl apply -f pvc-config-plex.yaml
kubectl apply -f pvc-shared-media.yaml

helm install plex ./kube-plex/charts/kube-plex
--namespace=plex
--set claimToken=$PLEXTOKEN
--set persistence.data.claimName=pvc-shared-media
--set persistence.config.claimName=pvc-config-plex
--set persistence.config.subPath=plex
--set ingress.enabled=false
--set timezone=Europe/Copenhagen

My kubernetes is setup as a single control plane as i only have 1 machine.
I use calico as my network plugin.
My nfs shares are located on a nas - In the unlikely event that the shares could have some influence on the issue.

I have run out of ideas for debugging this myself so i'm hoping to get some input here.
Please let me know if there is any other information needed to help diagnose this.

@Krm1t
Copy link
Author

Krm1t commented Feb 3, 2020

For anyone having the same issue I finally figured it out.
My 2 persistent volumes pointing to my NFS shares were wrong.

My nfs section was specified like this

nfs: 
  server: servername
  path: /path/to/volume

Once i changed it to the following the pod started working

nfs:
  server: servername.mydomain.local
  path: "/path/to/volume"
mountOptions:
  - rw

I'm not sure which of the 3 changes that did the trick or a combination of them all.
The funny thing is that i could see files be created in the folder so it was somehow working just not 100%

@Krm1t Krm1t closed this as completed Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant