Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(k8s): update terraform-gke example for Bonsai #4000

Merged
merged 5 commits into from
Apr 11, 2023

Conversation

worldofgeese
Copy link
Contributor

@worldofgeese worldofgeese commented Mar 27, 2023

What this PR does / why we need it:

This PR revs the terraform-gke example to align with Bonsai's conventions. I've also taken the opportunity to atomize and update the Terraform to align with the battle-tested and Google-supported https://github.com/terraform-google-modules/terraform-google-kubernetes-engine project. See commit message bodies for more background on decisions taken.

I've tested this module and have it running in the community-engineering project on Google Cloud.

In order to "one-shot" deploy the example a GKE cluster and our demo
services, we need a kubeconfig. Because of
#3475, a kubeconfig managed by
Garden should be generated with elevated privileges.
To improve comprehension and expose the values a user should set for a
project at the top of the file, we set the hardcoded values of the
Garden project file to variables.
The README previously assumed a cluster ready to work with. We change
the instructions to assume no pre-existing cluster.
Previously the GKE example was an all-in-one terraform file. I've chosen
to make use of battle-tested GKE modules and split the terraform for
easy comprehension.
Copy link
Contributor

@Walther Walther left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! 🚀
The example looks solid, and I like how you've simplified the readme and config.
I'll let an SRE double-check the terraform, as it has been a moment since I've written any.


And congratulations on getting the milestone of PR/Issue number 4000! That's a lot of work done to this repo 🎉

@Walther Walther requested a review from twelvemo March 27, 2023 17:03
@Walther Walther linked an issue Mar 28, 2023 that may be closed by this pull request
Copy link
Collaborator

@vvagaytsev vvagaytsev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the great improvements! 🎉 🚀

@vvagaytsev vvagaytsev merged commit d4f3ef0 into 0.13 Apr 11, 2023
@vvagaytsev vvagaytsev deleted the docs(k8s)-update-terraform-gke-bonsai branch April 11, 2023 11:53
This was referenced May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0.13 example update: terraform-gke
3 participants