Unable to browse on port 80
Opened this issue · 3 comments
Thank you for introducing me to Bamboo, I have Bamboo launched and I'm able to get to the Admin UI using the address http://IP:8000
I have deployed nginx using the marathon API
{
"container": {
"type": "DOCKER",
"docker": {
"image": "nginx",
"network": "BRIDGE",
"portMappings": [
{ "containerPort": 80, "hostPort": 0, "servicePort": 80, "protocol": "tcp" }
]
}
},
"id": "nginx",
"instances": "1",
"cpus": "0.25",
"mem": "256",
"uris": []
}
And I then scaled it to 10 containers. When I login to the docker container for bamboo and have a look at /etc/haproxy.cfg
file I can see the containers have been added to the file. However, I'm unable to browse port 80 on the Load Balancer (EC2 instance running bamboo docker container). I check the admin security group and confirmed that the port is open.
Any idea why this is?
Great, sounds like you're close. Did you set up an ACL for nginx via the Bamboo admin interface?
Something like:
hdr(host) -i nginx.mycompany.com
You should then be able to hit nginx by passing the right Host
header:
curl -H 'Host: nginx.mycompany.com' <bamboo_elb>
Ahh! Let me try that. I'm currently working without a FQDN, I have to rely on the public FQDN of the EC2 instances.
By your example the nginx.mycompany.com has to be an A
record which points to the IP of the bamboo_elb
?
CNAME
and A
records are both fine.
But for testing, you don't even need a DNS record. You just use manually set the Host
header to fake it for HAProxy:
curl -H 'Host: fakedomain' <bamboo_elb>