elotl / kip

Virtual-kubelet provider running pods in cloud instances
Apache License 2.0
223 stars 14 forks source link

Make sure TF configs can be used as modules #168

Closed ldx closed 4 years ago

ldx commented 4 years ago

It's never been a goal to reuse the Terraform examples, since they are pretty simplistic and intentionally ignore details that are important for a production grade setup. That being said, they are good for creating a new environment, quickly and without much hassle; so I refactored them here to ensure they can be used as modules, so the code can be used externally, via modules. The end goal is to be able to simply create a new AWS or GCP environment that we know works with Kip (I'd like to use it to set up an image test pipeline).

While testing the configs, I also bumped into an issue caused by 8ae8d723e544e3ee82a8b4d2ef6f22aca0c0ec1e, which broke terraform-vpn, so I also added a fix for that.