hashicorp / hashicorp/consul

Ingress gateway not working with IP

Open
#10,592 2 comments 0 reactions 0 assignees View on GitHub
type/question
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
1d 18h
Merged PRs (30d)
39

Description

I am trying to configure ingress gateway for consul deployed in aks.

As per their [documentation ](https://www.consul.io/docs/k8s/connect/ingress-gateways), I have created a sample deployment and ingress gateway to it.

yaml files: [github](https://github.com/thunderbirds-2021/consul-testing/tree/main/static-app)

kubectl apply -f static-app/
I changed the static app service from CluserIP to LoadBalancer and can get the page using http://

But, with ingress gateway, I can access only by adding the header as below. curl -H "Host: static-server.ingress.consul" "http://:8080"

if I try without header, it is not getting the page.

Any suggestion on how to make it work without header, so that I can utilize the same for my main application.

Once, it is deployed, I am able to see in the consul window and got the ip address of the ingress-gateway using

Contributor guide

Open the contributing guide

Research direction

Start with the Consul ingress-gateway documentation and the YAML files in the linked static-app directory. Reproduce the deployment with kubectl apply -f static-app/ and compare requests sent with and without the Host header; completion would require a documented or verified way to reach the service by IP without that header.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, kubernetes
Domain
cloud, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.