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

feat: support disable nat gateway and use public subnet #132

Merged
merged 7 commits into from
May 21, 2024
Merged

Conversation

maxsxu
Copy link
Member

@maxsxu maxsxu commented May 9, 2024

Motivation

For save nat gateway costs

Modifications

  • Add disable_nat_gateway variable to vpc tf module for support disable NAT Gateway when provisioning VPC.
    • this will disable create the EIP, NAT Gateway, RouteTable and Route for private subnet (it will use the main default rtb)
    • this will enable auto assign public ip for public subnet
  • Add enable_nodes_use_public_subnet variable to terraform-aws-cloud module for support use public ip nodes when provisioning EKS
  • Update tf docs

Verifying this change

  • Make sure that the change passes the CI checks.

This change has been verified by provisioning an AWS env.

Documentation

  • doc

    (If this PR contains doc changes)

@maxsxu maxsxu self-assigned this May 9, 2024
Copy link
Contributor

github-actions bot commented May 9, 2024

@maxsxu:Thanks for your contribution. For this PR, do we need to update docs?
(The PR template contains info about doc, which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)

@github-actions github-actions bot added the doc-info-missing This pr needs to mark a document option in description label May 9, 2024
@maxsxu maxsxu changed the title feat: support disable private subnet for save nat gateway costs feat: support disable nat gateway May 11, 2024
@github-actions github-actions bot removed the doc-info-missing This pr needs to mark a document option in description label May 11, 2024
Copy link
Contributor

@maxsxu:Thanks for providing doc info!

@github-actions github-actions bot added the doc This pr contains a document label May 11, 2024
@maxsxu maxsxu changed the title feat: support disable nat gateway feat: support disable nat gateway and use public subnet May 14, 2024
@maxsxu maxsxu marked this pull request as ready for review May 14, 2024 06:37
@maxsxu maxsxu requested a review from a team as a code owner May 14, 2024 06:37
@maxsxu maxsxu requested a review from ciiiii May 20, 2024 10:48
@maxsxu maxsxu merged commit 4c1b508 into master May 21, 2024
5 checks passed
@maxsxu maxsxu deleted the max/vpc branch May 21, 2024 01:46
ciiiii pushed a commit that referenced this pull request May 21, 2024
🤖 I have created a release *beep* *boop*
---


##
[3.0.0](v2.8.0...v3.0.0)
(2024-05-21)


### ⚠ BREAKING CHANGES

* use shared route table for public subnet
([#125](#125))

### Features

* add new output eks which contains all outputs of module.eks
([#131](#131))
([6f7739e](6f7739e))
* add output eks for provide convenient approach to access eks module's
all outputs
([6f7739e](6f7739e))
* **cluster_autoscaler:** removed old k8s versions, added new ones
([#120](#120))
([853aba8](853aba8))
* Disable nodepool logging to cloudwatch by default
([#126](#126))
([c9be3c1](c9be3c1))
* support disable nat gateway and use public subnet
([#132](#132))
([4c1b508](4c1b508))
* Support single zone node_group
([#133](#133))
([8038bdf](8038bdf))
* use shared route table for public subnet
([#125](#125))
([12e5ff0](12e5ff0))


### Bug Fixes

* Correct default value
([#128](#128))
([25d8171](25d8171))
* Optimize external-dns args to reduce api calls
([#124](#124))
([5aa0166](5aa0166))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc This pr contains a document
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants