We have discovered one gap in Migrate functionali...
# deployment-kubernetes
b
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
d
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 https://github.com/dagster-io/dagster/blob/master/helm/dagster/templates/job-instance-migrate.yaml#L2-L52
It won't help for older versions, but https://github.com/dagster-io/dagster/pull/14756 adds the annotations to the migrate job/pod
b
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