Comments (7)
--ip=0.0.0.0
means listen on all interfaces, so this should work fine.
Works fine & tested in 3 different use cases:
standalone mode,
3 master&slaves,
and 3mater + n-slaves
from panteras.
when you play a lot with mesos and reconfigure it keep in mind to clean up /tmp/mesos/* on host docker machine.
from panteras.
Thanks again for your quick reply.
I finally decided to test again just to be sure.
- Stop container
- Remove Container
- Force remove
/tmp/mesos/*
- I took the
generate_yml.sh
from your master branch - Mesos will display on the web interface
Server:127.0.1.1:5050
and 0 slave node reached - It's a single Mesos node master, there are no redirect on every web interface
- Stop container
- Remove Container
- Force remove
/tmp/mesos/*
- I used the
${IP}
ingenerate_yml.sh
forCONSUL_PARAMS
MESOS_MASTER_PARAMS
MESOS_SLAVE_PARAMS
- I now have this :
Server:62.XXX.107.170:5050
and 3 slaves and http redirect from one master to another
from panteras.
can you paste your docker-compose.yml
which was generated
and /etc/hosts entry
?
seems like something else is a problem,
I suspect that your fqdn is not resolvable or points to 127.0.0.1 in /etc/hosts
instead to point to external IP.
from panteras.
docker-compose.yml
panteras:
dns:
image: panteras/paas-in-a-box:latest
name: panteras
net: host
privileged: true
restart: no
ports:
- "8500:8500"
- "8080:8080"
- "5050:5050"
environment:
CONSUL_IP: "195.xxx.17.74"
HOST_IP: "195.xxx.17.74"
FQDN: "preprod-02.mydomain.com"
GOMAXPROCS: "4"
SERVICE_8500_NAME: consul-ui
SERVICE_8500_TAGS: haproxy
SERVICE_8500_CHECK_HTTP: /v1/status/leader
SERVICE_8080_NAME: marathon
SERVICE_8080_TAGS: haproxy
SERVICE_8080_CHECK_HTTP: /v2/leader
SERVICE_5050_NAME: mesos
SERVICE_5050_TAGS: haproxy
SERVICE_5050_CHECK_HTTP: /master/health
START_CONSUL: "true"
START_CONSUL_TEMPLATE: "true"
START_DNSMASQ: "true"
START_MESOS_MASTER: "true"
START_MARATHON: "true"
START_MESOS_SLAVE: "true"
START_REGISTRATOR: "true"
START_ZOOKEEPER: "true"
CONSUL_APP_PARAMS: "agent -client=195.xxx.17.74 -data-dir=/opt/consul/ -ui-dir=/opt/consul/dist/ -advertise=0.0.0.0 -node=preprod-02 -dc=MYDC -server -join=prod-02.mydomain.com -join=prod-01.mydomain.com -join=preprod-02.mydomain.com "
CONSUL_TEMPLATE_APP_PARAMS: "-consul=195.xxx.17.74:8500 -template haproxy.cfg.ctmpl:/etc/haproxy/haproxy.cfg:/opt/consul-template/haproxy_reload.sh "
DNSMASQ_APP_PARAMS: "-d -u dnsmasq -r /etc/resolv.conf.orig -7 /etc/dnsmasq.d --server=/consul/195.xxx.17.74#8600 --host-record=preprod-02,195.xxx.17.74 --address=/consul/195.xxx.17.74 "
HAPROXY_ADD_DOMAIN: "mydomain.com"
MARATHON_APP_PARAMS: "--master zk://prod-02.mydomain.com:2181,prod-01.mydomain.com:2181,preprod-02.mydomain.com:2181/mesos --zk zk://prod-02.mydomain.com:2181,prod-01.mydomain.com:2181,preprod-02.mydomain.com:2181/marathon --hostname preprod-02 --no-logger "
MESOS_MASTER_APP_PARAMS: "--zk=zk://prod-02.mydomain.com:2181,prod-01.mydomain.com:2181,preprod-02.mydomain.com:2181/mesos --work_dir=/var/lib/mesos --quorum=2 --ip=0.0.0.0 --hostname=preprod-02.mydomain.com --cluster=mesoscluster "
MESOS_SLAVE_APP_PARAMS: "--master=zk://prod-02.mydomain.com:2181,prod-01.mydomain.com:2181,preprod-02.mydomain.com:2181/mesos --containerizers=docker,mesos --executor_registration_timeout=5mins --hostname=preprod-02.mydomain.com --ip=0.0.0.0 --docker_stop_timeout=5secs --gc_delay=1days --docker=/usr/local/sbin/docker "
REGISTRATOR_APP_PARAMS: "-ip=195.xxx.17.74 consul://195.xxx.17.74:8500 "
ZOOKEEPER_APP_PARAMS: "start-foreground"
ZOOKEEPER_HOSTS: "prod-02.mydomain.com:2181,prod-01.mydomain.com:2181,preprod-02.mydomain.com:2181"
ZOOKEEPER_ID: "3"
KEEPALIVED_VIP: ""
HOSTNAME: "preprod-02"
volumes:
- "/etc/resolv.conf:/etc/resolv.conf.orig"
- "/var/spool/marathon/artifacts/store:/var/spool/store"
- "/var/run/docker.sock:/tmp/docker.sock"
- "/var/lib/docker:/var/lib/docker"
- "/sys:/sys"
- "/tmp/mesos:/tmp/mesos"
- "/srv/docker/mesos-data/docker.tar.gz:/etc/docker.tar.gz"
/etc/hosts
127.0.0.1 localhost
127.0.1.1 preprod-02.mydomain.com sd-4xxxx.mydomain.fr preprod-02
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
from panteras.
Change in your /etc/hosts:
127.0.1.1 preprod-02.mydomain.com sd-4xxxx.mydomain.fr preprod-02
to
195.xxx.17.74 preprod-02.mydomain.com sd-4xxxx.mydomain.fr preprod-02
of course do similar thing for other hosts,
I suspect that this is the problem.
from panteras.
Tested and solved.
it was the default /etc/hosts
from my server provider (Online.net).
from panteras.
Related Issues (20)
- maxconn configuration HOT 2
- haproxy 100% cpu usage HOT 22
- Struggling to use HTTPS / Enable HAPROXY_SSL HOT 5
- Checkpointing not working HOT 22
- HAProxy SSL Passthrough HOT 3
- Accessing consul services inside container HOT 2
- How to use ssl proxy properly and is fabio ready for replacing haproxy ? HOT 3
- Upgrade version and impossible to build image `/bin/sh: 1: locale-gen: not found` HOT 1
- [Question] Recommendation and details on how to migrate web service into Fabio. HOT 2
- [Feature] Set env JAVA_HOME within Panteras HOT 4
- Help upgrade marathon HOT 2
- [feedback] Chronos/Netdata HOT 6
- How to use verdaccio behind the HA proxy loadbalancer
- Where is consul template file for HAproxy? HOT 2
- evaluate traefik to replace fabio HOT 1
- Marathon crash, /migration-in-progress, where is zkCli/zookeepercli in panteras ? HOT 7
- g HOT 1
- Things to consider when joing a slave into a mesosphere?
- How can I get marathon to restart all services after reboot ? HOT 2
- How to disable panteras http/80 page on Panteras v3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from panteras.