podAnnotations for pod schema in helm-chart deployment

In my kubernetes, there is a istio sidecar that can be disabled by podAnnotations. When deploy using helm-chart, I can use podAnnotations to disabled this sidecar for all pod, except pod schema.

I guess it causes the pod schema in status NotReady instead of Completed.

I cannot see field podAnnotations in schema in charts/temporal/values.yaml:

How can I disable the sidecar for my pod schema, or at least make it Completed?

You could edit the resource after deployment with kubectl if it’s a one time thing for testing.

If you want to use the helm chart as a base, you can do “last mile” config such as this with Kustomize. This article might help you - When and How to Use Helm and Kustomize Together | Thomas Stringer

Thanks @craigd for your answer. Normally I use “kubectl edit deploy” to edit pods after deployment. But when I get deploy, there isn’t deploy for temporal-schema. I don’t know where this pod is defined?

Result of “kubectl get deploy”:

I assume that it is a k8s job used to set up the schema for the persistence layer. Is what you are talking about defined in here?

helm-charts/charts/temporal/templates/server-job.yaml at ef7ec100d8a7bdbf6ae429c618c9fd119354a9b1 · temporalio/helm-charts · GitHub.

1 Like

Thank you very much @craigd