This commit is contained in:
jprdonnelly
2019-09-23 14:31:24 -04:00
2 changed files with 12 additions and 11 deletions

View File

@@ -3,8 +3,9 @@ A [Vagrant](https://www.vagrantup.com/) script for setting up a barebones [Kuber
### Pre-requisites
* **[Vagrant 2.1.4+](https://www.vagrantup.com)**
* **[Virtualbox 5.2.18+](https://www.virtualbox.org)**
* **[Vagrant 2.2.4+](https://www.vagrantup.com)**
* **[Virtualbox 6+](https://www.virtualbox.org)**
* **[Virtualbox Proprietary Extension Pack](https://download.virtualbox.org/virtualbox/6.0.12/Oracle_VM_VirtualBox_Extension_Pack-6.0.12.vbox-extpack)**
### Start the Base Cluster

18
Vagrantfile vendored
View File

@@ -10,6 +10,14 @@ servers = [
:mem => "3200",
:cpu => "2"
},
{
:name => "k8s-nfs",
:type => "nfs",
:box => "jprdonnelly/ubuntu-1804",
:eth1 => "192.168.205.14",
:mem => "2176",
:cpu => "2"
},
{
:name => "k8s-node1",
:type => "node",
@@ -26,14 +34,6 @@ servers = [
:mem => "4224",
:cpu => "2",
},
{
:name => "k8s-nfs",
:type => "nfs",
:box => "jprdonnelly/ubuntu-1804",
:eth1 => "192.168.205.14",
:mem => "2176",
:cpu => "2"
},
# Uncomment section below to enable a 3rd worker node.
# {
# :name => "k8s-node3",
@@ -173,7 +173,7 @@ $configureNode = <<-SCRIPT
echo "This is a worker node"
sshpass -p "vagrant" scp -o StrictHostKeyChecking=no vagrant@192.168.205.10:/etc/kubeadm_join_cmd.sh .
sudo sh ./kubeadm_join_cmd.sh
# kubectl taint nodes k8s-nfs key=value:NoSchedule
kubectl taint nodes k8s-nfs key=value:NoSchedule
SCRIPT
$configureNFS = <<-SCRIPT