mirror of
https://github.com/jprdonnelly/kubernetes-cluster.git
synced 2025-12-19 18:05:19 -05:00
Merge branch 'master' of https://github.com/jprdonnelly/kubernetes-cluster
This commit is contained in:
@@ -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
18
Vagrantfile
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user