Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
8f350198
Commit
8f350198
authored
Sep 11, 2016
by
Kubernetes Submit Queue
Committed by
GitHub
Sep 11, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #32204 from jszczepkowski/ha-port-fix
Automatic merge from submit-queue Updated port for HA master etcd.
parents
27c5e5dc
8541ea6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
util.sh
cluster/gce/util.sh
+3
-3
No files found.
cluster/gce/util.sh
View file @
8f350198
...
@@ -603,7 +603,7 @@ function kube-up() {
...
@@ -603,7 +603,7 @@ function kube-up() {
create-loadbalancer
create-loadbalancer
# If replication of master fails, we need to ensure that the replica is removed from etcd clusters.
# If replication of master fails, we need to ensure that the replica is removed from etcd clusters.
if
!
replicate-master
;
then
if
!
replicate-master
;
then
remove-replica-from-etcd
4001
||
true
remove-replica-from-etcd
2379
||
true
remove-replica-from-etcd 4002
||
true
remove-replica-from-etcd 4002
||
true
fi
fi
else
else
...
@@ -769,7 +769,7 @@ function replicate-master() {
...
@@ -769,7 +769,7 @@ function replicate-master() {
echo
"Experimental: replicating existing master
${
EXISTING_MASTER_ZONE
}
/
${
EXISTING_MASTER_NAME
}
as
${
ZONE
}
/
${
REPLICA_NAME
}
"
echo
"Experimental: replicating existing master
${
EXISTING_MASTER_ZONE
}
/
${
EXISTING_MASTER_NAME
}
as
${
ZONE
}
/
${
REPLICA_NAME
}
"
# Before we do anything else, we should configure etcd to expect more replicas.
# Before we do anything else, we should configure etcd to expect more replicas.
if
!
add-replica-to-etcd
4001
2380
;
then
if
!
add-replica-to-etcd
2379
2380
;
then
echo
"Failed to add master replica to etcd cluster."
echo
"Failed to add master replica to etcd cluster."
return
1
return
1
fi
fi
...
@@ -1161,7 +1161,7 @@ function kube-down() {
...
@@ -1161,7 +1161,7 @@ function kube-down() {
set-existing-master
set-existing-master
# Un-register the master replica from etcd and events etcd.
# Un-register the master replica from etcd and events etcd.
remove-replica-from-etcd
4001
remove-replica-from-etcd
2379
remove-replica-from-etcd 4002
remove-replica-from-etcd 4002
# Delete the master replica (if it exists).
# Delete the master replica (if it exists).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment