I have a Drupal 10 deployment running on Kubernetes/OpenShift, where image generation fails after modifying an image style also the previews images and upload failes. The web/sites/default/files directory is mounted as a PersistentVolumeClaim (PVC), and I suspect a permission issue is preventing Drupal from writing generated images.
Solutions I Tried (But Didn't Work): Set fsGroup in the SecurityContext Changed Permissions Using chmod 777 in Init Container
chmod -R 777 /app/web/sites/default/files However, Drupal still couldn't generate images after deployment. Manually Updated Permissions in the Running Pod
PS: I am using a pod of php8.2 with apache2 2.4.58, a pod of redis and a pod of mysql.