You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
985 B

  1. ## Kubernetes on AWS with Terraform
  2. **Overview:**
  3. - This will create nodes in a VPC inside of AWS
  4. - A dynamic number of masters, etcd, and nodes can be created
  5. - These scripts currently expect Private IP connectivity with the nodes that are created. This means that you may need a tunnel to your VPC or to run these scripts from a VM inside the VPC. Will be looking into how to work around this later.
  6. **How to Use:**
  7. - Export the variables for your Amazon credentials:
  8. ```
  9. export AWS_ACCESS_KEY_ID="xxx"
  10. export AWS_SECRET_ACCESS_KEY="yyy"
  11. ```
  12. - Update contrib/terraform/aws/terraform.tfvars with your data
  13. - Run with `terraform apply`
  14. - Once the infrastructure is created, you can run the kubespray playbooks and supply contrib/terraform/aws/inventory with the `-i` flag.
  15. **Future Work:**
  16. - Update the inventory creation file to be something a little more reasonable. It's just a local-exec from Terraform now, using terraform.py or something may make sense in the future.