Skip to content

Commit

Permalink
Merge pull request #4133 from thesse1/patch-1
Browse files Browse the repository at this point in the history
doc(azure): shows how to use userAssignedIdentityID with clientId in azure.json
  • Loading branch information
k8s-ci-robot committed Dec 30, 2023
2 parents 99ef39e + df122b0 commit 2446baa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/tutorials/azure.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ For the managed identity, the contents of `azure.json` should be similar to this
"tenantId": "01234abc-de56-ff78-abc1-234567890def",
"subscriptionId": "01234abc-de56-ff78-abc1-234567890def",
"resourceGroup": "MyDnsResourceGroup",
"useManagedIdentityExtension": true
"useManagedIdentityExtension": true,
"userAssignedIdentityID": "01234abc-de56-ff78-abc1-234567890def"
}
```

Expand All @@ -151,6 +152,8 @@ For this process, you will need to get the kubelet identity:
```bash
$ PRINCIPAL_ID=$(az aks show --resource-group $CLUSTER_GROUP --name $CLUSTERNAME \
--query "identityProfile.kubeletidentity.objectId" --output tsv)
$ IDENTITY_CLIENT_ID=$(az aks show --resource-group $CLUSTER_GROUP --name $CLUSTERNAME \
--query "identityProfile.kubeletidentity.clientId" --output tsv)
```

#### Assign rights for the Kubelet identity
Expand Down Expand Up @@ -178,7 +181,8 @@ cat <<-EOF > /local/path/to/azure.json
"tenantId": "$(az account show --query tenantId -o tsv)",
"subscriptionId": "$(az account show --query id -o tsv)",
"resourceGroup": "$AZURE_DNS_ZONE_RESOURCE_GROUP",
"useManagedIdentityExtension": true
"useManagedIdentityExtension": true,
"userAssignedIdentityID": "$IDENTITY_CLIENT_ID"
}
EOF
```
Expand Down

0 comments on commit 2446baa

Please sign in to comment.