Skip to content

Commit ba95183

Browse files
author
Houssem Dellai
committed
work in progress
1 parent 23a440d commit ba95183

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

01_docker_dotnet/Readme.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,18 @@ az acr build -t "$acrName.azurecr.io/webapp:1.0" -r $acrName ../app-dotnet
284284

285285
Note that image is already pushed to ACR by viewing the ACR resource in Azure portal.
286286

287+
If you have an AKS cluster, you can connect it to ACR so that the cluster can pull images from ACR without requiring credentials.
288+
289+
```sh
290+
az aks update -n <your-aks-cluster-name> -g <your-resource-group> --attach-acr $acrName
291+
```
292+
293+
Then you can run the image in your AKS cluster without providing credentials.
294+
295+
```sh
296+
kubectl run webapp --image=$acrName.azurecr.io/webapp:1.0 --port=80
297+
```
298+
287299
## Conclusion
288300

289301
In this lab, you learned how to create a container image from an existing application source code.

0 commit comments

Comments
 (0)