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

Support bring your own Azure Network Interface #3255

Closed
dthorsen opened this issue Mar 9, 2023 · 8 comments
Closed

Support bring your own Azure Network Interface #3255

dthorsen opened this issue Mar 9, 2023 · 8 comments
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@dthorsen
Copy link
Contributor

dthorsen commented Mar 9, 2023

/kind feature

Describe the solution you'd like
Add support for "bring your own" Azure Network Interface. In order to support applications that require IP addresses that never change, even across machine deletion/recreation, we would like to add support to create network interfaces outside of CAPZ and reference them for use by AzureMachines/AzureMachineTemplates. This way a stable network interface could be detached from one VM when it is deleted, and attached to the replacement VM when it is created.

I propose that we add the following fields to the NetworkInterface struct:

name: "<name of existing azure network interface>"
resourceGroup: "<name of the resource group containing the network interface>"

The controller would implement logic similar to the "bring your own" Virtual Network implementation. The name and resource group are optional fields, and if specified would be used to check for an existing network interface.

If the network interface exists in Azure, the controller would check for the CAPZ ownership tag, and if it is not present, it would not manage the resource, but would only use it for attachment to a virtual machine, and adding to load balancer backend pools as necessary.

If the network interface exists in Azure, and the CAPZ ownership tag is present, CAPZ would manage the lifecycle of network interface.

If the network interface specified in the optional fields does not exist in Azure, then it would be created as it is today, but with the user-specified network interface name and resource group, then attached to the virtual machine.

Anything else you would like to add:
Currently, the NetworkInterface type is also used within the AzureMachinePool spec, but this feature is not applicable there. It is not possible in the Azure VMSS API to create a VMSS with a network profile that specifies a specific network interface. The AzureMachinePool resource would be changed to use its own VMSSNetworkInterface type that does not contain these new fields.

@k8s-ci-robot k8s-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Mar 9, 2023
@dthorsen
Copy link
Contributor Author

/assign

@dtzar dtzar added this to the v1.10 milestone May 25, 2023
@dtzar dtzar moved this to Needs Review in CAPZ Planning May 25, 2023
@dtzar dtzar moved this from Needs Review to In Progress in CAPZ Planning May 25, 2023
@mboersma mboersma modified the milestones: v1.10, v1.11 Jul 13, 2023
@Jont828
Copy link
Contributor

Jont828 commented Sep 7, 2023

/milestone next

@k8s-ci-robot
Copy link
Contributor

@Jont828: You must be a member of the kubernetes-sigs/cluster-api-provider-azure-maintainers GitHub team to set the milestone. If you believe you should be able to issue the /milestone command, please contact your Cluster API Provider Azure Maintainers and have them propose you as an additional delegate for this responsibility.

In response to this:

/milestone next

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@mboersma
Copy link
Contributor

mboersma commented Sep 7, 2023

/milestone next

@k8s-ci-robot k8s-ci-robot modified the milestones: v1.11, next Sep 7, 2023
@dtzar dtzar modified the milestones: next, v1.13 Nov 16, 2023
@dtzar dtzar removed this from the v1.13 milestone Dec 14, 2023
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 13, 2024
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle rotten
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Apr 12, 2024
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

@k8s-ci-robot k8s-ci-robot closed this as not planned Won't fix, can't repro, duplicate, stale May 12, 2024
@k8s-ci-robot
Copy link
Contributor

@k8s-triage-robot: Closing this issue, marking it as "Not Planned".

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@github-project-automation github-project-automation bot moved this from In Progress to Done in CAPZ Planning May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

6 participants