-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
make 'podman play kube' set local volume mounts #2536
Comments
@haircommander Could you look into this. |
@haircommander how should this work? It doesn't set the selinux stuff automatically, like with :z or :Z options:
|
Yes to make this work you would need to set the SELinux label on the file chcon -t container_file_t /tmp/pgdata Is there anything in the yaml to indicate whether or not the volume should be relabeled. Usually for builtin labels we relabel to a shared label. label.Relabel(PATH, mount_label, true) |
@rhatdan see #2575 (comment) for a discussion. |
this was just discussed in irc, play kube needs a way to set selinux label to directory. It happens via
unless @haircommander just removed it. |
if so, this ticket should be reopened, as long as selinux does not get set right, either :z or :Z |
Hello, I ended up here searching for podman play kube and selinux, right now (podman 3.4.4) podman play kube creates named volumes with a shared label, it makes sense because of this: #2575 (comment) |
Yes please open a new issue for this. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
Currently, podman play kube fails to create any kind of persistent pods. Which in case of e.g. database is important. Please add handling for hostPath type of volumes, e.g:
Podman should
This is already implemented in command line options, so probably just affects the play kube parsing.
Issue is related to this one, but does not require it: #2303. It would just help moving from command line definitions to yaml.
Steps to reproduce the issue:
sudo podman play kube postgres-volume.yml
verify mounts exist:
sudo podman inspect postgres|less
Describe the results you received:
Currently it totally ignores those sections, no mounts get created.
Describe the results you expected:
Volume mounts to be in place, just like
podman run -v
would do.Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: