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: adding crucial informations regarding Azure CNI usage with CAPZ #4238

Merged
merged 1 commit into from
Dec 13, 2023
Merged

docs: adding crucial informations regarding Azure CNI usage with CAPZ #4238

merged 1 commit into from
Dec 13, 2023

Conversation

MadJlzz
Copy link
Contributor

@MadJlzz MadJlzz commented Nov 6, 2023

What type of PR is this?

/kind documentation

What this PR does / why we need it:

Adding some information regarding the usage of Azure CNI with custom images.

  • squashed commits
  • includes documentation
  • adds unit tests
NONE

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/documentation Categorizes issue or PR as related to documentation. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Nov 6, 2023
@k8s-ci-robot
Copy link
Contributor

Welcome @MadJlzz!

It looks like this is your first PR to kubernetes-sigs/cluster-api-provider-azure 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/cluster-api-provider-azure has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Nov 6, 2023
@k8s-ci-robot
Copy link
Contributor

Hi @MadJlzz. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Nov 6, 2023
@mboersma
Copy link
Contributor

mboersma commented Nov 6, 2023

@MadJlzz do we still need to document this since kubernetes-sigs/image-builder#1090 merged? That should mean all recently published CAPZ reference images already have this 15-azure-vnet.cfg, unless I'm mistaken, and users should hopefully be building custom images from a recent version of image-builder.

@MadJlzz
Copy link
Contributor Author

MadJlzz commented Nov 6, 2023

From what I understood ; yes, the change is now included when using image-builder but we are not using it.


By default, Azure's images are coming with a `cloud-init` configuration that enables automatic network discovery mechanism that interferes with the Azure CNI.

In fact, it assigns secondary IP Configurations to the host os, which we do not want. The Azure CNI needs those free to allocate them to pod netns's/veth's)
Copy link
Contributor

Choose a reason for hiding this comment

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

It assigns secondary IP Configurations to the host OS, which causes problems because the Azure CNI needs those free to allocate them to pod netns's/veth's.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@@ -279,6 +279,22 @@ The following resources need to be updated when using `capi-quickstart.yaml` (th
.
```

### Disable Azure network discovery (if using custom images)

By default, Azure's images are coming with a `cloud-init` configuration that enables automatic network discovery mechanism that interferes with the Azure CNI.
Copy link
Contributor

Choose a reason for hiding this comment

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

Please more clarity on what is custom image versus what is provided since the fix is baked into the default ones.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@@ -279,6 +279,22 @@ The following resources need to be updated when using `capi-quickstart.yaml` (th
.
```

### Disable Azure network discovery (if using custom images)
Copy link
Member

Choose a reason for hiding this comment

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

If this block of section (### Disable Azure network discovery (if using custom images)) is for users not using image-builder to build their custom images (as per your comment #4238 (comment)), would it be better to specify that in the title?

Would you be able to add something like the one below? @MadJlzz

### Disable Azure network discovery (if using custom images without image-builder)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@MadJlzz
Copy link
Contributor Author

MadJlzz commented Dec 6, 2023

I am a bit short in time atm, I am gonna tackle all reviews point this week end, after working hours. Sorry about the delay 😅

Copy link
Contributor

@mboersma mboersma left a comment

Choose a reason for hiding this comment

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

/lgtm

@MadJlzz please squash the commits, and thanks!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 12, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: c2b188ab456582901a3c65156a363b1b84af7ca7

@mboersma
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Dec 12, 2023
Copy link

codecov bot commented Dec 12, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a2d6d45) 60.90% compared to head (1dcfdc9) 60.89%.
Report is 2 commits behind head on main.

❗ Current head 1dcfdc9 differs from pull request most recent head 849d35d. Consider uploading reports for the commit 849d35d to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4238      +/-   ##
==========================================
- Coverage   60.90%   60.89%   -0.02%     
==========================================
  Files         190      190              
  Lines       18991    18983       -8     
==========================================
- Hits        11567    11559       -8     
  Misses       6787     6787              
  Partials      637      637              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 13, 2023
@MadJlzz
Copy link
Contributor Author

MadJlzz commented Dec 13, 2023

@mboersma done!

Copy link
Contributor

@mboersma mboersma left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 13, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 7c3bf1165d46e678bfa494aaf3f3527a75f7b9dc

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mboersma

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 13, 2023
@k8s-ci-robot k8s-ci-robot merged commit 9f9ba35 into kubernetes-sigs:main Dec 13, 2023
10 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.13 milestone Dec 13, 2023
@RenatoDinis
Copy link

latm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/documentation Categorizes issue or PR as related to documentation. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

6 participants