Skip to content

Commit

Permalink
Merge pull request #36090 from wojtek-t/fix_migration_collisions
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue

Fix collisions between different etcds during migration.

Ref #20504
  • Loading branch information
Kubernetes Submit Queue committed Nov 3, 2016
2 parents e817594 + 5b03899 commit 606a2dd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cluster/images/etcd/migrate-if-needed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ start_etcd() {
# Use random ports, so that apiserver cannot connect to etcd.
ETCD_PORT=18629
ETCD_PEER_PORT=18630
# Avoid collisions between etcd and event-etcd.
case "${DATA_DIRECTORY}" in
*event*)
ETCD_PORT=18631
ETCD_PEER_PORT=18632
;;
esac
local ETCD_CMD="${ETCD:-/usr/local/bin/etcd-${START_VERSION}}"
local ETCDCTL_CMD="${ETCDCTL:-/usr/local/bin/etcdctl-${START_VERSION}}"
local API_VERSION="$(echo ${START_STORAGE} | cut -c5-5)"
Expand Down

0 comments on commit 606a2dd

Please sign in to comment.