@Franko999 Apologies for the delay.
Can you explain which service are you actually running (ACS or AKS)? Also it would helpful for recommendation if you can share the template you are using to running it.
In case of AKS (Kubernetes service), you might be running pods (via deployment) in order to run bash scripts which is processing jobs.
Deployment is not the right way to do so as Kubernetes ensure you always have running pod for the deployment (by the replica count from the deployment). Moreover even after job completion, command would exit, Kubernetes will span another pod and run the command again.
In AKS, the right type would be jobs .