Requires Terraform v0.13.7. Use tfenv[https://github.com/tfutils/tfenv] for installation.
Edit the terraform.tfvars
file and adjust the instance_type values.
Create a github certificate
Edit the config-vars.sh
file and complete with your info:
GITHUB_CERT_PATH=~/.ssh/<name_of_my_cert>
# << no.pub
here[email protected]:<path-to-my-repo>.git
- ...etc.
Put the config-vars.sh
file on your desktop
# installing dependencies and cloning repository
./main.sh
# the above plus deploying a kommander cluster
./main.sh deploy-kommander
# the above plus installing kaptain
./main.sh install-kaptain
# retrieve credentials for the SSH connection, Kommander UI, and Kaptain UI
./retrieve-credentials.sh
# connect via SSH
./connect.sh
You can create multiple machines this way:
$ terraform workspace new dev-machine2
$ terraform init
$ terraform apply