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

Document config for AKS whith api-server-authorized-ip-ranges #54753

Open
ezYakaEagle442 opened this issue May 13, 2020 — with docs.microsoft.com · 4 comments
Open

Comments

Copy link

ezYakaEagle442 commented May 13, 2020

as described per https://docs.microsoft.com/en-us/azure/aks/api-server-authorized-ip-ranges
could you please explain on this page how to setup an Azure DevOps agent / Jenkins Slave / Ansible ToolBox

see also :


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@MonikaReddy-MSFT
Copy link
Contributor

@ezYakaEagle442 , Thanks for brining this to our attention. We will investigate it further and update you shortly.

@MonikaReddy-MSFT
Copy link
Contributor

@ezYakaEagle442 , I'm going to assign this to the document author so they can update the document accordingly.

@mlearned
Copy link
Contributor

@pulkitaggarwl can you comment on this one please?

@MonikaReddy-MSFT MonikaReddy-MSFT removed their assignment May 27, 2020
@abarqawi
Copy link
Contributor

abarqawi commented Jul 5, 2023

i faced similar issue today with AKS+Azure DevOps pipeline that AzureDevOps cannot connect to AKS with Authorized Ips even with correct IP regions ,, and we were able to solve by adding following Azure CLI task
i added the outbound IPs also the regions Ips for india central and south india incase
but most important is the agent Ip

in the Azure Dev Ops :

Task 1: add the MS hosted Ips
IP=($(curl -s http://ipinfo.io/json | jq '.ip' | sed -e 's/^"//' -e 's/"$//'))
echo "This Microsoft hosted agent public IP is: $IP"
echo "##vso[task.setvariable variable=AGENT_IP;]$IP "
az aks update --resource-group myResourceGroup --name myAKSCluster --api-server-authorized-ip-ranges "13.107.6.0/24,13.107.9.0/24,13.107.42.0/24,13.107.43.0/24, 20.41.194.0/24, $IP"

Task 2: remove only the Agent Ip

az aks update
--resource-group myResourceGroup
--name myAKSCluster
--api-server-authorized-ip-ranges "13.107.6.0/24,13.107.9.0/24,13.107.42.0/24,13.107.43.0/24,20.41.194.0/24"

hope this helps

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

5 participants