I'm running a GKE cluster and I'm trying to get write access to the host filesystem from a pod using hostPath. The pod mounts the host path using:
hostPath:
path: /lib/modules
but its not granted write access. I have also tried with securityContext using:
securityContext:
runAsUser: 0
runAsGroup: 0
and
allowPrivilegeEscalation: true
Is there some particular requirement needed to allow a pod to have write access to the host?
Thank you for your time.