Skip to content

Commit

Permalink
AWS kube-up: Build kubeconfig asap
Browse files Browse the repository at this point in the history
Once we've built the master, we can build kubeconfig.  By doing so, if
we time out waiting for the nodes, the system is still configured
correctly.

In particular, spot instances can be slow to launch.

Related to issue kubernetes#21200
  • Loading branch information
justinsb committed Feb 22, 2016
1 parent d089fa8 commit 050863c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cluster/aws/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -937,15 +937,15 @@ function kube-up {
# Create the master
start-master

# Build ~/.kube/config
build-config

# Start minions
start-minions
wait-minions

# Wait for the master to be ready
wait-master

# Build ~/.kube/config
build-config
fi

# Check the cluster is OK
Expand Down

0 comments on commit 050863c

Please sign in to comment.