-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change!: using kubespray to configure cluster
Signed-off-by: Jonatas Ferreira <[email protected]>
- Loading branch information
1 parent
ba28d4b
commit e5beb0d
Showing
17 changed files
with
47 additions
and
435 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "kubespray"] | ||
path = kubespray | ||
url = [email protected]:kubernetes-sigs/kubespray.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
SHELL := /bin/bash | ||
|
||
cluster: | ||
vagrant up && bash create_hosts.sh && ansible-playbook -i ansible/hosts.ini ansible/cluster.yml | ||
vagrant up && bash create_hosts.sh && cd kubespray && ansible-playbook -b -v -i inventory/vagrant/inventory.ini cluster.yml | ||
|
||
reset: | ||
ansible-playbook -i ansible/hosts.ini ansible/reset.yml | ||
cd kubespray && ansible-playbook -i inventory/vagrant/inventory.ini -b -v reset.yml | ||
|
||
destroy: | ||
vagrant destroy -f | ||
vagrant destroy -f && rm -rf kubespray/inventory/vagrant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.