mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 08:18:44 -03:30
Add new virtual drive for /var/lib/docker
Otherwise 10G is not enough to host all the CCP images and it leads to deployment failures.
This commit is contained in:
1
Vagrantfile
vendored
1
Vagrantfile
vendored
@@ -67,6 +67,7 @@ Vagrant.configure("2") do |config|
|
|||||||
domain.cpu_mode = "host-passthrough"
|
domain.cpu_mode = "host-passthrough"
|
||||||
domain.volume_cache = "unsafe"
|
domain.volume_cache = "unsafe"
|
||||||
domain.disk_bus = "virtio"
|
domain.disk_bus = "virtio"
|
||||||
|
domain.storage :file, :type => 'qcow2', :bus => 'virtio', :size => '20G', :device => 'vdb'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Networks and interfaces
|
# Networks and interfaces
|
||||||
|
|||||||
@@ -15,3 +15,9 @@ sudo mv ~vagrant/ssh /root/.ssh
|
|||||||
sudo rm -f /root/.ssh/id_rsa*
|
sudo rm -f /root/.ssh/id_rsa*
|
||||||
sudo chown -R root: /root/.ssh
|
sudo chown -R root: /root/.ssh
|
||||||
|
|
||||||
|
# Setup new drive for docker
|
||||||
|
sudo mkfs.ext4 /dev/vdb
|
||||||
|
sudo mkdir -p /var/lib/docker
|
||||||
|
sudo echo '/dev/vdb /var/lib/docker ext4 defaults,noatime,nodiratime 0 0' >> /etc/fstab
|
||||||
|
sudo mount -a
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user