-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Run.sh reflects changes from README Co-authored-by: Semyon Kolesnikov <[email protected]>
- Loading branch information
Showing
2 changed files
with
14 additions
and
3 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 |
---|---|---|
@@ -1,6 +1,16 @@ | ||
#!/usr/bin/env sh | ||
|
||
# Check if file exist terraform.tfvars | ||
if [ ! -f ./terraform.tfvars ]; then | ||
echo "File terraform.tfvars not found!" | ||
echo "Please create one from terraform.tfvars.example!" | ||
exit 2 | ||
fi | ||
terraform init | ||
terraform apply -auto-approve | ||
mv -i ./launchpad.new.yaml ./launchpad.$(date +"%Y-%m-%d_%H-%M").yaml | ||
# terraform output mke_cluster | sed '1d;$d' > ./launchpad.yaml | ||
terraform output -json | yq e -P '.mke_cluster.value' - > ./launchpad.yaml && launchpad describe config > ./launchpad.new.yaml | ||
mv -i ./launchpad.yaml ./launchpad.$(date +"%Y-%m-%d_%H-%M").yaml | ||
terraform output --raw mke_cluster > ./launchpad.yaml | ||
echo "Your launchpad.yaml sample is stored in your current directory" && ls ./launchpad.yaml | ||
echo "Apply your configuration via launchpad apply" | ||
|
||
exit 0 |
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,5 +1,6 @@ | ||
cluster_name = "my-mke-cluster" | ||
master_count = 1 | ||
msr_count = 1 | ||
worker_count = 3 | ||
windows_worker_count = 0 | ||
admin_password = "orcaorcaorca" |