Merge "Use right no proxy settings for swarm master and agent"
This commit is contained in:
commit
dc7f5aba3f
@ -16,6 +16,10 @@ if [ $TLS_DISABLED = 'True' ]; then
|
||||
ETCDCTL_OPTIONS=""
|
||||
fi
|
||||
|
||||
if [ -z "$NO_PROXY" ]; then
|
||||
NO_PROXY=$SWARM_API_IP,$ETCD_SERVER_IP,$SWARM_NODE_IP
|
||||
fi
|
||||
|
||||
cat > $CONF_FILE << EOF
|
||||
[Unit]
|
||||
Description=Swarm Agent
|
||||
|
@ -2,6 +2,10 @@
|
||||
|
||||
CERT_DIR=/etc/docker
|
||||
|
||||
if [ -z "$NO_PROXY" ]; then
|
||||
NO_PROXY=$SWARM_API_IP,$ETCD_SERVER_IP,$SWARM_NODE_IP
|
||||
fi
|
||||
|
||||
cat > /etc/systemd/system/swarm-manager.service << END_SERVICE_TOP
|
||||
[Unit]
|
||||
Description=Swarm Manager
|
||||
|
Loading…
Reference in New Issue
Block a user