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

Change to AKS NAT gateway #734

Open
NissesSenap opened this issue Jul 5, 2022 · 3 comments
Open

Change to AKS NAT gateway #734

NissesSenap opened this issue Jul 5, 2022 · 3 comments

Comments

@NissesSenap
Copy link
Contributor

Currently we are use SNAT for egress traffic in AKS.

Recently AKS NAT Gateway https://docs.microsoft.com/en-us/azure/aks/nat-gateway was released.
and we should look in to changing to this.

This will force recreation of the cluster but it should be fine with a standard blue green migration.

@NissesSenap
Copy link
Contributor Author

NissesSenap commented Nov 10, 2022

We need to be able to define existing ip prefix.
How to:
https://www.thorsten-hans.com/provision-aks-and-nat-gateway-with-terraform/

@NissesSenap NissesSenap self-assigned this Nov 15, 2022
@NissesSenap
Copy link
Contributor Author

For now it seems like NAT gateway can't be made zone redundant.
Instead we have to rewrite our network stack to use 3 subnets, 3 public ip prefixes and 3 nat gateways.
https://learn.microsoft.com/en-us/azure/virtual-network/nat-gateway/nat-availability-zones#zonal-nat-gateway-resource-for-each-zone-in-a-region-to-create-zone-resiliency

It would increase the cost by allot and it also creates allot more work then we appreciated.

Started to work on a PR but I have closed it.
#858

@NissesSenap
Copy link
Contributor Author

We hope that Azure will solve this for us in the feature so for now I put it to waitning-for-thirdparty. Lets see if we can find some information about future solutions.
We might reconsider this in the future.

@NissesSenap NissesSenap removed their assignment Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant