Skip to content

Commit

Permalink
vagrant: Increase default Virtualbox memory to 2GB
Browse files Browse the repository at this point in the history
Without this change, we would end up with a non-functional k8s cluster set up because of memory exhaustion.
Also made it configurable via a constant defined at top of Vagrantfile according to coreos#311 (comment)

Fixes coreos#311
  • Loading branch information
mumoshu committed Apr 26, 2016
1 parent e541a59 commit b643046
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions single-node/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Vagrant.require_version ">= 1.6.0"

CLUSTER_IP="10.3.0.1"
NODE_IP = "172.17.4.99"
NODE_MEMORY_SIZE = 2048
USER_DATA_PATH = File.expand_path("user-data")
SSL_TARBALL_PATH = File.expand_path("ssl/controller.tar")

Expand All @@ -28,7 +29,7 @@ Vagrant.configure("2") do |config|
["vmware_fusion", "vmware_workstation"].each do |vmware|
config.vm.provider vmware do |v, override|
v.vmx['numvcpus'] = 1
v.vmx['memsize'] = 1024
v.vmx['memsize'] = NODE_MEMORY_SIZE
v.gui = false

override.vm.box_url = "http://alpha.release.core-os.net/amd64-usr/current/coreos_production_vagrant_vmware_fusion.json"
Expand All @@ -38,7 +39,7 @@ Vagrant.configure("2") do |config|
config.vm.provider :virtualbox do |v|
v.cpus = 1
v.gui = false
v.memory = 1024
v.memory = NODE_MEMORY_SIZE

# On VirtualBox, we don't have guest additions or a functional vboxsf
# in CoreOS, so tell Vagrant that so it can be smarter.
Expand Down

0 comments on commit b643046

Please sign in to comment.