In your ingress of your deployment, add the following annotation:
ingress:
annotations:
enable-underscores-in-headers: "true"
nginx.ingress.kubernetes.io/configuration-snippet: |
proxy_set_header X-My-Custom-Header $http_my_custom_header;