Swarm: add proxy for etcd service
This commit changes to using etcd as bootstrapping, but forget to add proxy when configure etcd service. Closes-Bug: #1518857 Change-Id: I09ab343c7608af9fc93df2221ea97a31d0b05cb4
This commit is contained in:
parent
abe9d4f4cd
commit
27cec826f5
|
@ -15,3 +15,7 @@ ETCD_ADVERTISE_CLIENT_URLS="http://$myip:2379"
|
|||
ETCD_INITIAL_ADVERTISE_PEER_URLS="http://$myip:2380"
|
||||
ETCD_DISCOVERY="$ETCD_DISCOVERY_URL"
|
||||
EOF
|
||||
|
||||
if [ -n "$HTTP_PROXY" ]; then
|
||||
echo "ETCD_DISCOVERY_PROXY=$HTTP_PROXY" >> /etc/etcd/etcd.conf
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue