If its possible to add hostAliases on the job pod

Dear friends,
For Kubernetes provided us the ability to add additional entries to
/ect/hosts file, https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/#adding-additional-entries-with-hostaliases .
I want to utilize this way to solve the github.com resolve problem on China Mainland like this.

      hostAliases:
      - hostnames:
        - github.com
        ip: 192.30.253.112
      - hostnames:
        - assets-cdn.github.com
        ip: 185.199.108.153
      - hostnames:
        - github.global.ssl.fastly.net
        ip: 151.101.185.194
1 Like

I also want this feature now. It will be very convenient when use a local git server as provider!