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

aks cloudprovider to access ingress IP #12

Merged
merged 3 commits into from
Apr 17, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions config/prow/cluster/prow-cluster.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,17 @@ resource ingresspip 'Microsoft.Network/publicIPAddresses@2022-11-01' = {
}
}

resource clusteraccesspip 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid('storage-rbac', aks.id, ingresspip.id)
scope: ingresspip
properties: {
roleDefinitionId: '/subscriptions/${subscription().subscriptionId}/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c' // contributor
principalId: aks.properties.servicePrincipalProfile.clientId
principalType: 'ServicePrincipal'
description: 'Allow aks cloud-provider to manage the public IP address'
}
}

resource sa 'Microsoft.Storage/storageAccounts@2022-05-01' = {
name: '${storage_account_prefix}${uniqueString(resourceGroup().id, aks_cluster_region)}'
location: aks_cluster_region
Expand Down
Loading