Skip to content

Commit 0d40b7f

Browse files
committed
Add scripts to automate cluster bringup
Signed-off-by: Suraj Deshmukh <[email protected]>
1 parent 59681a3 commit 0d40b7f

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

Diff for: cleanup.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
set -x
4+
set -euo pipefail
5+
6+
vagrant destroy -f

Diff for: copy-kubeconfig.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
KUBECONFIG="$HOME/.kube/config"
6+
7+
vagrant ssh vagrant-master -c 'sudo cat /root/.kube/config' >"${KUBECONFIG}" 2>/dev/null
8+
echo "Copied to ${KUBECONFIG}."

Diff for: first-bringup.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
set -x
4+
set -euo pipefail
5+
6+
vagrant box update
7+
vagrant up

0 commit comments

Comments
 (0)