Comments (4)
/assign
from cluster-api-provider-azure.
@dkoshkin I have two proposals for you:
-
We change the defaulting to not update existing subnets: eac62d2
This is a bit of a hack because it relies on theID
field to determine that the defaulting is happening on an existing subnet vs a new subnet. Ideally, NAT Gateway would be a pointer so we could differentiate between disable NAT Gateway and new cluster, and we could have simply switch the default from empty string to default name, but that is not the case :( -
We update existing subnets to "attach" the new NAT Gateway: b18f008
I'm leaning towards 2) because it's a better long-term solution. I agree with you that ideally we shouldn't touch existing cluster infra on upgrade. However, NAT Gateways are the recommended approach for outbound connectivity on Azure and we should provide a path forward for existing clusters. 1) is a hack and may work for now but we've talked about getting rid of ID
altogether because it's an anti-pattern (we're setting the spec from the controller, there's a comment here about it).
Thoughts? I still need to run some tests to validate that these approaches work and write unit tests but wanted to get your input on these options.
from cluster-api-provider-azure.
Thanks for the suggestions @CecileRobertMichon!
What do you think about a combination of both of these approaches? Use 1 to fix this issue without making an infra change and then use 2 and allow users to opt in to this change by changing the spec
(is this even possible?)
from cluster-api-provider-azure.
from cluster-api-provider-azure.
Related Issues (20)
- ASO service: privateendpoints HOT 1
- ASO service: privatedns HOT 2
- ASO service: networkinterfaces HOT 3
- ASO service: loadbalancers HOT 1
- ASO service: inboundnatrules HOT 4
- ASO service: disks HOT 5
- ASO service: bastionhosts HOT 1
- Switch to Kubernetes Community-Owned Package Repositories HOT 2
- URL redirection to improper location
- Public supported helm chart for managed clusters HOT 2
- Can't create cluster with Azure CNI Overlay and NetworkPolicy HOT 2
- USMI is specified in the azuremachine template, but get auth failure on the VM HOT 4
- Support OOT credential provider for all templates HOT 15
- Allow omitting the k8s patch version in `azuremanagedcontrolplanes` HOT 5
- [AzureManagedCluster][Spot] `AzureManagedMachinePool` fluctuating between `Running` and `Provisioned` states HOT 13
- CAPZ with ASO doesn't work for AzureUSGovernment HOT 7
- Increase code coverage for azurecluster_controller.go HOT 3
- Support for AKS upgrade channels HOT 3
- AzureManagedMachinePool oscillates, when trying to reconcile, between running and provisioned when removing nodeLabel or taints fields. HOT 4
- Support for AKS cluster deployment with Major.Minor version. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cluster-api-provider-azure.