A Comprehensive Resource for Microsoft Technologies

Welcome, your go-to destination for everything related to .NET and Microsoft technologies. With over 10 years of experience in the IT industry, I am excited to share my knowledge and insights on this platform. This blog is dedicated to providing valuable information, tips, and tutorials that are not only relevant to the rapidly evolving IT industry but also essential for individuals working on real-time projects and preparing for interviews

Azure Containers and Kubernetes

Course: Microsoft Azure: From Zero to Hero - The Complete Guide | Udemy Business

 

Video= 82 = Working with Containers


download azure cli

command => 

az


open cart app - vs code

add docker extension by microsoft


opern dockerfile


azure portal

open Container registries

create =>  give name and SKU = basic


click access keys=> Enable admin user for VS code


vs code => docker extension=> click on

azure => azure subscription 1=> name of container registrey => 


reight clikc to dockerfile => click buid Image in azure  =>name = latest => OS Linux


if any error => open terminal => az login


go to portal => open container registri => Repository => you can see cart/'latest' 

==========================================================


Video => 83=>working with azure Kubernetes => AKS


open azure portal => search => Kubernetes services


create => Kubernetes cluster

cluster preset config= dev/test

name = cart-aks , tier =free

intergation tab- container registry- select name - review create = done


open cart porject in vs- terminal

dowmload aks cli  => az aks install cli

restart vs code

run command => az login


run command =>

az aks get-credentials --resource-group readit-app-rg --name cart-aks


run command =>

kubectl get nodes

this will show running nodes


deployment.yaml file => use to kubernatics to deploy cluster

change image section =>name with registry name


run command = to create sevice

kubctl apply -f deployment.yaml



go to portal

search kubernetes service => open created cart-aks

=> services and ingresses

=> list=> readit-cart = with type = load balancer

click on readit-cart

ports and pods

click on pods

click on external IP => which is deployed URL