-
Notifications
You must be signed in to change notification settings - Fork 19
docs: add how-to setup #283
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| # How-to Guide: Traffic Manager Permissions setup | ||
|
|
||
| This guide provides an overview of how to set up permissions for Azure Traffic Manager in order to use the DNS based global | ||
| load balancing feature. | ||
|
|
||
| ## Get the hub and member agents identity | ||
|
|
||
| Figure out the identity used by hub-net-controller-manager and member-net-controller-manager. | ||
| There are various ways to set up the fleet networking, and the recommended way is to use [workload-identity](https://learn.microsoft.com/en-us/azure/aks/workload-identity-deploy-cluster). | ||
|
|
||
| ```bash | ||
| export HUB_IDENTITY_PRINCIPAL_ID=$(az identity show \ | ||
| --name "${HUB_USER_ASSIGNED_IDENTITY_NAME}" \ | ||
| --resource-group "${RESOURCE_GROUP}" \ | ||
| --query principalId \ | ||
| --output tsv) | ||
| export MEMBER_IDENTITY_PRINCIPAL_ID=$(az identity show \ | ||
| --name "${MEMBER_USER_ASSIGNED_IDENTITY_NAME}" \ | ||
| --resource-group "${RESOURCE_GROUP}" \ | ||
| --query principalId \ | ||
| --output tsv) | ||
| ``` | ||
|
|
||
| ## Create the role assignment for the hub agent | ||
|
|
||
| ### Create the role assignment for the hub agent to manage the Azure Traffic Manager | ||
| Assign role “[Traffic Manager Contributor](https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles/networking#traffic-manager-contributor)” to hub cluster identity at the Azure Traffic Manager resource group scope | ||
| ```bash | ||
| az role assignment create --assignee "${HUB_IDENTITY_PRINCIPAL_ID}" --role "a4b10055-b0c7-44c2-b00f-c7b5b3550cf7" --scope "/subscriptions/mySubscriptions/resourceGroups/MyAzureTrafficManagerResourceGroup" | ||
| ``` | ||
|
|
||
| ### Create the role assignment for the hub agent to read the public IP address used by the member cluster | ||
|
|
||
| Grant Public IP address read permission to the hub cluster identity so that the hub networking agent can read the public IP address of the members (either BYO or MC_rg). | ||
|
|
||
| > Note: You can create your own customized role to restrict access or restrict the scope based on your security requirements. | ||
|
|
||
| For example, the following command grants the “[Reader](https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles/general#reader)” to the hub cluster identity at the resource group of the public ip scope for testing purpose. | ||
|
|
||
| ```bash | ||
| az role assignment create --assignee "${HUB_IDENTITY_PRINCIPAL_ID}" --role "acdd72a7-3385-48ef-bd42-f606fba81ae7" --scope "/subscriptions/mySubscriptions/resourceGroups/MyPIPResourceGroup" | ||
zhiying-lin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ``` | ||
|
|
||
| ## Create the role assignment for the member agent | ||
| Grant Public IP address read permission to the member cluster identity so that the member networking agent can read the public IP address of the members (either BYO or MC_rg). | ||
|
|
||
| > Note: You can create your own customized role to restrict access or restrict the scope based on your security requirements. | ||
|
|
||
| For example, the following command grants the “[Reader](https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles/general#reader)” to the member cluster identity at the resource group of the public ip scope for testing purpose. | ||
|
|
||
| ```bash | ||
| az role assignment create --assignee "${MEMBER_IDENTITY_PRINCIPAL_ID}" --role "acdd72a7-3385-48ef-bd42-f606fba81ae7" --scope "/subscriptions/mySubscriptions/resourceGroups/MyPIPResourceGroup" | ||
zhiying-lin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
docs/tutorials/ApplicationMigration/testfiles/nginx-service.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
docs/tutorials/BuildMultiClusterApplication/testfiles/nginx-service.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.