hashicorp / nomad-driver-podman

A nomad task driver plugin for sandboxing workloads in podman containers
https://developer.hashicorp.com/nomad/plugins/drivers/podman
Mozilla Public License 2.0
224 stars 61 forks source link

[Podman] Support task.config.extra_hosts also for Podman Driver #244

Closed Thadir closed 1 year ago

Thadir commented 1 year ago

Proposal

We have currently a feature difference between the Docker driver and the Podman driver even tho the Docker driver does not fully support it in the right way it would be nice if we can use the --add-host=host:ip command is used when we use the config.ext

Use-cases

As a maintainer, I want to route specific URLS (often .cloud URLs) to my VPN/NAT routing because of the security of my network. fullygenerated.url.aws.service.cloud should go to IP 172.168.1.1

Attempted Solutions

We seem to be able to do this in the Docker setup but not in the Podman setup:

Docker documentation This is fully supported for the Podman https://docs.podman.io/en/latest/markdown/options/add-host.html and is simular variables see https://docs.podman.io/en/latest/markdown/options/add-host.html

tgross commented 1 year ago

Hi @Thadir I'm moving this issue to the nomad-driver-podman repo because the configuration for task drivers is entirely owned by the task driver itself and not the Nomad agent. I'll mark it for triage there.