Trouble Configuring Local Storage #6372
Unanswered
larrywalters
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm having some trouble understanding and configuring my
extraMounts
and PVs. I have a directory on my local machine that I want to mount to a directory in the Talos control-plane node, and then have that be the location of alocal-storage
PersistentVolume. This worked fine in a minikube setup, where the directory was mounted into the minikube VM. I am running Talos using the local docker setup, so it's running in my Docker Desktop on macOS.When I do this in Talos, I cannot see the mount point as a directory on the node. But strangely the volume seems to work, in that I can direct my Pods to read and write to it. However, they cannot read any of the files/directories present there already, only ones that they specify to create.
Here is my applicable machine patch section (local machine path is redacted below, but I am using the absolute path in reality):
Here are my PV/PVC manifests
And then I use this PVC in a couple Pods.
When I try to find this
/demo_data
directory on my node, I cannot, but interestingly I can see an added directory that corresponds to my host machine file pathBut again, I cannot see the actual data residing on the host machine. If one of the Pods writes a file here, I can see it, but otherwise, it appears empty.
This means that when I try to have my Pod look for a file in the volume, it cannot.
Some help here would be much appreciated!
I'm also wondering how the
options
section of the machine patch should be configured. My understanding is that this specification is essentially wrapping the way docker containers are mounted (as described here), but I've noticed if I exclude thebind
option from the list, even if thetype
isvolume
, that the cluster cannot start successfully. I'm not sure why that is, and what values should be here.Thank you!
Beta Was this translation helpful? Give feedback.
All reactions