# deployment-kubernetes

Binoy Shah

06/12/2023, 7:31 PM
We have discovered one gap in Migrate functionality: Pod annotations cannot be added and are not inherited from the main deployment. Lot of Kubernetes functionality can be tweaked via Pod/Job annotations. Vault based Pod mutation being one. if we are unable to add annotations, we cannot have credentials extracted via Vault Pod mutation. Please recommend any suggestion


06/12/2023, 7:38 PM
Hi Binoy - another option would be to 'kubectl exec' into the dagit pod and run 'dagster instance migrate' on that pod, or create a pod from scratch using kubectl apply that runs
dagster instance migrate
or alternately - what the migrate command does is create this job and run the
dagster instance migrate
command, you could also create your own pod based on that template
It won't help for older versions, but adds the annotations to the migrate job/pod

Binoy Shah

06/12/2023, 10:21 PM
Thank you for the response and quick turnaround. Unfortunately this is production so we won't be able to push new chart but we'll take help from our Ops team