From 48324a6602cfcacbc260e6cc2c61ff22116cbeec Mon Sep 17 00:00:00 2001 From: Dimitri Mazmanov Date: Mon, 13 Mar 2017 18:48:02 +0100 Subject: Add haproxy and iptables configuration for Kingbird Host binding was missing for kingbird Firewall rule that opens 8118 port was missing. NOTE: This is necessary but may not be enough, as curl on 172 and 192 network was refused. Change-Id: If950154012ee7b290a42a0774d5fdb782d6b065d Signed-off-by: Dimitri Mazmanov (cherry picked from commit 8c3744ff8b80f9aede71af8938cd7732b117f8cb) --- tools/kingbird/install_kingbird.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tools/kingbird/install_kingbird.sh b/tools/kingbird/install_kingbird.sh index 4cec1e1..dd166e9 100755 --- a/tools/kingbird/install_kingbird.sh +++ b/tools/kingbird/install_kingbird.sh @@ -171,6 +171,26 @@ iniset ${KINGBIRD_CONF_FILE} database connection "mysql://$mysql_user:$mysql_pas iniset ${KINGBIRD_CONF_FILE} database max_overflow -1 iniset ${KINGBIRD_CONF_FILE} database max_pool_size 1000 +# Configure haproxy + +cat > /etc/haproxy/conf.d/180-kingbird-api.cfg <