-
Notifications
You must be signed in to change notification settings - Fork 78
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
Unable to Execute finalize.sh from ConfigMap in Jibri Pod Due to Read-Only File System in Kubernetes #139
Comments
Hello @owiil! We use As a side-track: is it possible for you to publish the |
Hello @spijet ! I’m sharing the solution I used for uploading videos to Azure Blob Storage after recordings in Jibri. Below is the
I used the following
Persistent Volume (PV) and Persistent Volume Claim (PVC) Persistent Volume:
Persistent Volume Claim:
Helm Chart
This solution works well for my environment, handling uploading writes to Azure Blob Storage and managing local storage with Kubernetes persistent volumes. but I would like to use finalize.sh directly in the Jibri Pod, Let me know if you have any questions or need more details! |
I'll come up with a solution in the coming days and will ping you here when it's ready for testing. Thank you! |
Hi,
I am encountering an issue when trying to use a
finalize.sh
script inside a Jibri pod in Kubernetes. The script is provided via a ConfigMap and mounted inside the pod, and the script path is set using the environment variableJIBRI_FINALIZE_RECORDING_SCRIPT_PATH
with the value/config/finalize.sh
. However, since ConfigMap volumes are mounted as read-only, I am unable to apply execution permissions to the script, causing it to fail during the Jibri recording workflow.Problem Details
finalize.sh
is mounted at/config/finalize.sh
.JIBRI_FINALIZE_RECORDING_SCRIPT_PATH
environment variable is correctly set to point to the script path.chmod +x /config/finalize.sh
, the following error occurs:chmod: changing permissions of '/config/finalize.sh': Read-only file system
Workarounds Attempted
1. Copying to a writable directory:
cp /config/finalize.sh /tmp/finalize.sh && chmod +x /tmp/finalize.sh
Result: The script was copied successfully, but it still failed to execute, even after pointing the
JIBRI_FINALIZE_RECORDING_SCRIPT_PATH
environment variable to the new path (/tmp/finalize.sh
).2. Using an Init Container:
Result: The chmod command failed again due to the ConfigMap being mounted as read-only.
Expected Behavior
I would appreciate an official solution or guidance on how to run scripts like
finalize.sh
that are provided via ConfigMap in Kubernetes environments. Since theJIBRI_FINALIZE_RECORDING_SCRIPT_PATH
environment variable correctly points to the script path, it would be ideal to ensure that the script can be executed without needing workarounds that do not function properly.System
Additional Context
The purpose of my
finalize.sh
script is to upload recorded video files to Azure Blob Storage. ConfigMap volumes are mounted as read-only in Kubernetes, which prevents modifications or executions from happening directly. An official solution or recommendation for handling this scenario would be very helpful, especially when dealing with scripts that are crucial to the proper functioning of Jibri, such asfinalize.sh
.The text was updated successfully, but these errors were encountered: