File tree 1 file changed +4
-3
lines changed 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 101
101
start_etcd () {
102
102
# Use random ports, so that apiserver cannot connect to etcd.
103
103
ETCD_PORT=18629
104
- ETCD_PEER_PORT=18630
104
+ ETCD_PEER_PORT=2380
105
105
# Avoid collisions between etcd and event-etcd.
106
106
case " ${DATA_DIRECTORY} " in
107
107
* event* )
108
108
ETCD_PORT=18631
109
- ETCD_PEER_PORT=18632
109
+ ETCD_PEER_PORT=2381
110
110
;;
111
111
esac
112
112
local ETCD_CMD=" ${ETCD:-/ usr/ local/ bin/ etcd-${START_VERSION} } "
@@ -117,7 +117,8 @@ start_etcd() {
117
117
else
118
118
ETCDCTL_CMD=" ${ETCDCTL_CMD} --endpoints=http://127.0.0.1:${ETCD_PORT} put"
119
119
fi
120
- ${ETCD_CMD} --data-dir=${DATA_DIRECTORY} \
120
+ ${ETCD_CMD} --name=" etcd-$( hostname) " \
121
+ --data-dir=${DATA_DIRECTORY} \
121
122
--listen-client-urls http://127.0.0.1:${ETCD_PORT} \
122
123
--advertise-client-urls http://127.0.0.1:${ETCD_PORT} \
123
124
--listen-peer-urls http://127.0.0.1:${ETCD_PEER_PORT} \
You can’t perform that action at this time.
0 commit comments