Skip to content

Commit

Permalink
Add kuber box location env to make it faster.
Browse files Browse the repository at this point in the history
  • Loading branch information
fate-grand-order committed Dec 15, 2014
1 parent 5ef34bf commit 7bbfec0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ $minion_ips_str = $minion_ips.join(",")
# Determine the OS platform to use
$kube_os = ENV['KUBERNETES_OS'] || "fedora"

# Check if we already have kube box
$kube_box_url = ENV['KUBERNETES_BOX_URL'] || "http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_fedora-20_chef-provisionerless.box"

# OS platform to box information
$kube_box = {
"fedora" => {
"name" => "fedora20",
"box_url" => "http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_fedora-20_chef-provisionerless.box"
"box_url" => $kube_box_url
}
}

Expand Down
4 changes: 3 additions & 1 deletion docs/getting-started-guides/vagrant.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ By default, the Vagrant setup will create a single kubernetes-master and 3 kuber

```
cd kubernetes
vagrant up
# kubernetes will download box from s3 by default (see details in Vagrantfile), unless a box url env is provided.
KUBERNETES_BOX_URL=path_of_your_kuber_box vagrant up
```

Vagrant will provision each machine in the cluster with all the necessary components to run Kubernetes. The initial setup can take a few minutes to complete on each machine.
Expand Down

0 comments on commit 7bbfec0

Please sign in to comment.