Worker_setup_commands equivalent on Kubernetes yaml

Is there a way of using the same worker_setup_commands we have for ray Cluster on a Kubernetes yaml? Apply some modification to the container without having to rebuild it?

I think I could kind replicate using the Kubernetes Command, but then I would have to reapply the entrypoint. What is the recommended way?