To add host to /etc/hosts file inside the container, you can define the hosts aliases inside your deployment yaml file.
For example like the following yaml file:
The important part is hostAliases:
To add host to /etc/hosts file inside the container, you can define the hosts aliases inside your deployment yaml file.
For example like the following yaml file:
The important part is hostAliases: