Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for hostAliases #111

Open
DenisGarciaFr opened this issue Nov 23, 2021 · 0 comments
Open

Add support for hostAliases #111

DenisGarciaFr opened this issue Nov 23, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@DenisGarciaFr
Copy link

Describe the solution you'd like
We are looking at adding entries to /etc/hosts of our pods. We'd like to take advantage of the hostAliases configuration we can add to a deployment (container spec)

Describe alternatives you've considered
We have considered not using Kubernetes configuration and adding those entries to our Docker images directly, but it is much less

Additional context
Example of Kubernetes configuration

spec:
  [...]
  template:
    [...]
    spec:
      hostAliases:
        - ip: 10.1.2.3
          hostnames:
            - domain.name1.com
            - domain.name2.com

How it could look like in terraform

   hostAliases = {
      "10.1.2.3" = ["domain1.com", "domain2.com"]
      "10.1.2.4" = ["domain3.com"]
      "10.1.2.5" = ["domain4.com"]
  }
@DenisGarciaFr DenisGarciaFr added the enhancement New feature or request label Nov 23, 2021
@rhoboat rhoboat added the good first issue Good for newcomers label Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants