You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fus-device-plugin deployed, and then I tried running it without a shared volume mount, but seems to need host path, which needs to be limited via some type of policy.
podman run ubi8 echo hello
WARN[0000] "/" is not a shared mount, this could cause issues or missing mounts with rootless containers
cannot clone: Operation not permitted
Error: cannot re-exec process
This is basically the following:
rootless-no-priv.yaml
apiVersion: v1kind: Podmetadata:
name: no-privspec:
containers:
- name: no-privimage: quay.io/podman/stableargs:
- sleep
- "1000000"securityContext:
runAsUser: 1000resources:
limits:
github.com/fuse: 1##### above here only, Podman complains about missing mount with rootless containers##### Adding below here is going to require some changes to the security policyvolumeMounts:
- mountPath: /home/podman/.local/share/containersname: podman-localvolumes:
- name: podman-localhostPath:
path: /home/umohnani/.local/share/containers
Exploring Rootless Podman w/o the privileged flag: https://www.redhat.com/sysadmin/podman-inside-kubernetes
Which will require we use a fuse-device-plugin similar to this one:
https://github.com/kuberenetes-learning-group/fuse-device-plugin/tree/master (is two years old...)
The fus-device-plugin deployed, and then I tried running it without a shared volume mount, but seems to need host path, which needs to be limited via some type of policy.
This is basically the following:
rootless-no-priv.yaml
Here is an old way with PodSecurityPolicy: https://dev.to/mxglt/kubernetes-give-rights-for-hostpath-volumes-to-services-121f
However PSP seems to have been deprecated / removed by 1.25: https://kubernetes.io/docs/concepts/security/pod-security-policy/
There is a migration path: https://kubernetes.io/docs/tasks/configure-pod-container/migrate-from-psp/
And it seems
allowedHostPaths
will need to be covered by an admission web hook: https://kubernetes.io/docs/tasks/configure-pod-container/migrate-from-psp/#eliminate-non-standard-optionsMay need to loop back around.
The text was updated successfully, but these errors were encountered: