Deploying an ASP.NET Core 3.0 Web API on AKS

  Рет қаралды 24,712

Julio Casal

Julio Casal

Күн бұрын

Пікірлер: 91
@SohamDas78
@SohamDas78 Жыл бұрын
Thanks Julio for the amazing work! You solved a major blocker I was facing regarding ports. Thanks again!
@juliocasal
@juliocasal Жыл бұрын
You are welcome!
@musaleem2
@musaleem2 10 ай бұрын
Great Work! and really appreciate for your work, Have deploy my image within one hour, easy and clear insturction.
@juliocasal
@juliocasal 10 ай бұрын
Glad it helped!
@venky76v
@venky76v 5 жыл бұрын
This is one of the best explanations and videos that I have come across. I am looking to learn docker and kubernetes and I have not come acorss something simpler than this. Thanks a million and please keep more of such vides coming.
@juliocasal
@juliocasal 5 жыл бұрын
Thank you Venky!
@ZehraKhudaverdiyeva
@ZehraKhudaverdiyeva 2 жыл бұрын
Perfect Explanation! Thanks a lot!
@juliocasal
@juliocasal 2 жыл бұрын
You are welcome!
@eliassal1
@eliassal1 3 жыл бұрын
Really great video, 6 months back I watched an MS MVP guy in which I understood nothing and was mislead and tutorial never worked correctly which is opposite to yours. Great job and as the other said, looking forward for more videos, I am thinking of subscribing to your course, I will check my planning, so many thanks again
@juliocasal
@juliocasal 3 жыл бұрын
Thanks Salam, your words are very encouraging! Please check out the course page and let me know if you have any questions.
@juliocasal
@juliocasal 3 жыл бұрын
Salam, I just updated the entire course and I'm looking for people to give it a try and provide honest feedback. Please send me an email to julioc @ dotnetacademy dot io and I'll reply with a coupon for a great discount so you can try it out.
@eliassal1
@eliassal1 3 жыл бұрын
@@juliocasal That would be great, yes please go ahead, I will send you an email
@riteshsrivastava9281
@riteshsrivastava9281 3 жыл бұрын
Excellect video, exactly i was looking for . Thank you very much Julio
@juliocasal
@juliocasal 3 жыл бұрын
Glad to hear that!
@AnujAggarwal007
@AnujAggarwal007 2 жыл бұрын
Great session
@juliocasal
@juliocasal 2 жыл бұрын
Thanks!
@kombosh88
@kombosh88 4 жыл бұрын
Fantastic Video, great effort Julie.. looking forward to seeing more of these
@juliocasal
@juliocasal 4 жыл бұрын
Thanks Michael, appreciate it!
@amit_vocals
@amit_vocals 4 жыл бұрын
Thanks Julio 😄 wonderful and simple video for beginners. Keep it up
@juliocasal
@juliocasal 4 жыл бұрын
Glad you liked it!
@rodrigocaballerohurtado5367
@rodrigocaballerohurtado5367 4 жыл бұрын
Awesome tutorial and very simple and to the point. congrats!
@juliocasal
@juliocasal 4 жыл бұрын
Thank you Rodrigo!
@yaredalmaw6644
@yaredalmaw6644 3 жыл бұрын
Awesome tutorial. Thank you
@juliocasal
@juliocasal 3 жыл бұрын
Glad you liked it!
@DineshTawar
@DineshTawar 4 жыл бұрын
Hi Julio, Thanks for the awesome video. Could you please share how can we deploy mysql container on AKS? I have created my sql container and deployed on AKS but how API container will connect to my sql. please let know your thoughts.
@juliocasal
@juliocasal 4 жыл бұрын
Dinesh, glad to help. I would add a ClusterIP K8s service for your MySQL container, exposing the port where the MySQL container is listening (port 3306 seems to be the default). Once you do that your API container can reach the MySQL container via the name you gave the K8s service and the exposed port. Hope this helps!
@TheSiddhaartha
@TheSiddhaartha 3 жыл бұрын
Brilliant! Thank you so much for this video!
@juliocasal
@juliocasal 3 жыл бұрын
You're very welcome!
@TheSiddhaartha
@TheSiddhaartha 3 жыл бұрын
@@juliocasal Is your production code also deployed using AKS? Which logging mechanism do you use? Do you also create reports? Is it using power BI? Also may I know which industry your application belongs to? Is it Finance? Thanks!
@iyadzidan6803
@iyadzidan6803 3 жыл бұрын
Thank you so much Julio!
@juliocasal
@juliocasal 3 жыл бұрын
No prob, glad to help!
@dileepb4236
@dileepb4236 2 жыл бұрын
Hello Julio, Wonderful video. I followed all the steps but can you explain how it was deployed after creating service principal.
@juliocasal
@juliocasal Жыл бұрын
Sorry, what do you mean?
@JJSisters-kd5qe
@JJSisters-kd5qe 2 жыл бұрын
Love your videos.
@juliocasal
@juliocasal 2 жыл бұрын
So glad!
@jeremyteh8650
@jeremyteh8650 4 жыл бұрын
Thank you for the great tutorial. I was trying out with my own node rest api application and deploying to AKS, however, I was unable to query the API using the external IP.
@juliocasal
@juliocasal 4 жыл бұрын
Did it work in the end?
@jeremyteh8650
@jeremyteh8650 4 жыл бұрын
​@@juliocasal Yes, but I did so by running these commands (replacing with my docker container and acr name): kubectl run gs-spring-boot-docker --image=wingtiptoysregistry.azurecr.io/gs-spring-boot-docker:latest kubectl expose pod gs-spring-boot-docker --type=LoadBalancer --port=80 --target-port=8080 However, I am not able to access the external ip with generating and deploying the manual deployment and service yml file. Is there any other configurations that is needed on the yml files to access the external ip?
@rahulraut1921
@rahulraut1921 4 жыл бұрын
Awesome tutorial with Awesome Tutor
@juliocasal
@juliocasal 4 жыл бұрын
Thank you Rahul!
@fieryscorpion
@fieryscorpion 3 жыл бұрын
Great video. Thank you so much!
@juliocasal
@juliocasal 3 жыл бұрын
You're very welcome!
@lal_1404
@lal_1404 Жыл бұрын
thanks for this tutorial
@juliocasal
@juliocasal Жыл бұрын
You're welcome!
@nidhisht5284
@nidhisht5284 4 жыл бұрын
Thank you for the informative video!
@juliocasal
@juliocasal 4 жыл бұрын
Glad it was helpful!
@furqanahmad5973
@furqanahmad5973 4 жыл бұрын
I followed the steps but it is showing status as ImagePullBackOff while running "kubectl get pods" command. Also, my appId did not work in role assignment under container registery, it returned "No users, groups or service principal found". Any idea where I am doing wrong?
@juliocasal
@juliocasal 4 жыл бұрын
Furqan, at some point after recording the video adding the role assignment to the container registry via AppId stopped working. You can instead use the DisplayName obtained from the az ad sp command (at 4:50). The ImagePullBackOff error could be due to the missing AppId but you can confirm via the kubectl describe pod command.
@AbhinavSingh-ov7pj
@AbhinavSingh-ov7pj 3 жыл бұрын
Thanks for excellent video.i am able to deploy my application on aks.but now if i try to do any deployment in kubernetes on my local machine then that deployment happens on aks.i want to do deployment on my local.googled for solution but fond that everything needs to be delete from azure. But i do not want to delete resource
@juliocasal
@juliocasal 3 жыл бұрын
Abhinav, you can use the kubectl config use-context command to switch your local K8s context to any other cluster, including the one in your local machine, if you have one. More info here: kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters. Hope this helps!
@toochinkuzi6536
@toochinkuzi6536 2 жыл бұрын
great video I must confess. please I am having issue. I followed the tutorial end to end but I can't access external IP using postman or web browser. the service label matches with pod as you but I can't access the api on postman. it is just timing out for a reason that I don't know.
@toochinkuzi6536
@toochinkuzi6536 2 жыл бұрын
issue resolved. it was port issue. thanks
@juliocasal
@juliocasal 2 жыл бұрын
Glad you figured it out!
@DanePillayNel
@DanePillayNel 4 жыл бұрын
Hi Julio,loved the demo. But getting an imagepullback error when get pods. Any advice?
@juliocasal
@juliocasal 4 жыл бұрын
Dane, this can happen for a few reasons. Common reasons are: - You did not create the AKS cluster with the service principal (spn) you authorized in your container registry - You have not authorized your spn in your container registry - You are using the wrong container image name or tag in your deployment yaml file More info here: managedkube.com/kubernetes/k8sbot/troubleshooting/imagepullbackoff/2019/02/23/imagepullbackoff.html
@DanePillayNel
@DanePillayNel 4 жыл бұрын
@@juliocasal I appreciate the reply. I have made certain I have created the sp with the pull role and made sure to allocate it when creating the aks. And of course Authorized it in the registry. I will go through the link and revert if that's OK. And double check the yaml.
@kalaiselvank7643
@kalaiselvank7643 4 жыл бұрын
Hi , this best video to explain plain and simple . can you create the video to deploy the docker compose file into kubernetes.this will move use full to get the real time experience.
@juliocasal
@juliocasal 4 жыл бұрын
Kalai, thanks for the feedback. You don't deploy docker compose files to kubernetes (K8s). Instead create a new set of K8s deployment and service files for your containers based on what you have in docker compose and then you'll be able to deploy them to K8s.
@kalaiselvank7643
@kalaiselvank7643 4 жыл бұрын
@@juliocasal thanks for the information .but how the docker container will communicate each other
@jgabrielsousa
@jgabrielsousa 4 жыл бұрын
Great video thanks for sharing....
@juliocasal
@juliocasal 4 жыл бұрын
Hope it helps!
@rakrakesh1584
@rakrakesh1584 3 жыл бұрын
Good video. One quick help.. Even after installing Azure CLI in VS code, not working az login command. not found error. Appreciate your help in advance
@juliocasal
@juliocasal 3 жыл бұрын
Rak, try closing and reopening VS Code or restarting your computer. That should help.
@kalankaraivilakkam
@kalankaraivilakkam 4 жыл бұрын
Nice and Elegant
@juliocasal
@juliocasal 4 жыл бұрын
Thank you! Cheers!
@MrAuwoodstock
@MrAuwoodstock 3 жыл бұрын
Hi Julio. This is a great tutorial, I've followed it step by step but checking my application within a brwoser or by using Fidler I get a 502 "bad gateway error"...I don't know why is this issue.
@MrAuwoodstock
@MrAuwoodstock 3 жыл бұрын
It was an issue within the service.yml file...Thanks a lot for the clarification during the whole video
@juliocasal
@juliocasal 3 жыл бұрын
I'm glad you made it work!
@wissemzarrami1942
@wissemzarrami1942 4 жыл бұрын
Great Job and Interessting stuff. I am newer on AKS, I followed your video. Everything is ok untill the end and I am seeing my public Ip via "Kubectl get services" NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE advert-referential-api-service LoadBalancer 10.0.196.16 20.40.146.158 8080:30798/TCP 40m kubernetes ClusterIP 10.0.0.1 443/TCP 62m However when I execute the curl to 20.40.146.158 I have this message as a response "curl : Unable to connect to the remote server". Have you any idea about it please ?
@juliocasal
@juliocasal 4 жыл бұрын
Wissem, try specifying the port (8080) after the IP.
@LUONGTO
@LUONGTO 3 жыл бұрын
Hi, I just try the tutorial, but my pod get "Back-off restarting failed container", restart many times, completed with exit code 0, any advice please?
@juliocasal
@juliocasal 3 жыл бұрын
LUONG, try running this command: kubectl describe pod . The output should provide some hints at what's going on.
@LUONGTO
@LUONGTO 3 жыл бұрын
@@juliocasal yeah, I tried many tips, but got no luck (I posted my question here stackoverflow.com/questions/65802881/asp-net-core-get-back-off-restarting-failed-container-on-aks/65809859?noredirect=1#comment116361920_65809859)
@juliocasal
@juliocasal 3 жыл бұрын
@@LUONGTO Have you tried kubectl logs ? What's the output of that?
@ramasif9983
@ramasif9983 4 жыл бұрын
When trying to search for my appId under "Add role assignment", I paste in the appId I created after entering "az ad sp create-for-rbac --skip-assignment", but it says 'No users, groups, or service principals found.'
@23marnie
@23marnie 4 жыл бұрын
I was having the same issue.. Please go to Azure Active Directory, click AppRegistrations, there at OwnApplications you should find application by appId. When foud copy the application name and use it insted of ID while add role to ACR
@juliocasal
@juliocasal 4 жыл бұрын
Looks like things changed a bit since I made the video. There are two ways you can do this now: 1. To add the role via the Azure Portal you can use the displayName obtained from the az ad sp command (at 4:50) instead of the appId. 2. You can also add the role by AppId by using the Azure CLI, like this: az role assignment create --assignee 59ce6874-489a-41d1-9208-f8f04a0c3df6 --role AcrPull --scope subscriptions/9e4259988-918f-4aa2-bb8a-34d8a868a160/resourceGroups/julio01/providers/Microsoft.ContainerRegistry/registries/julio01 Where --assignee is your AppId and the --scope value you can get from the browser url after navigating to your container registry
@ramasif9983
@ramasif9983 4 жыл бұрын
@@juliocasal Thank you very much - I've used the first one and it worked perfectly.
@abhinayabalol3428
@abhinayabalol3428 4 жыл бұрын
az acr login cmd is not working. Getting please verify if docker is installed error despite docker is installed and running
@juliocasal
@juliocasal 4 жыл бұрын
abhinaya, there's a similar issue reported here: github.com/Azure/azure-cli/issues/8960. Would that help?
@venky76v
@venky76v 5 жыл бұрын
Hi Julio, I think followed the tutorial correctly, but at this step, az aks get-credentials --resource-group xxxx01 --name xxxx01, I keep getting "Resource group 'xxxx01' could not be found." Would you be able to help me out, please?
@juliocasal
@juliocasal 5 жыл бұрын
Venky, you are probably in the wrong subscription. Do this first: az account set --subscription "My Subscription”, just replace the name of your subscription. Does that help?
@venky76v
@venky76v 5 жыл бұрын
@@juliocasal now that you say it, I have two subscription and maybe az login is defaulting to the other one .. I will give it a try 🤟
@venky76v
@venky76v 5 жыл бұрын
@@juliocasal Thanks Julio. I had two subscriptions and what you told me sorted my issue out
@robertmrobo8954
@robertmrobo8954 3 жыл бұрын
The price of those services on Azure is a problem.
@juliocasal
@juliocasal 3 жыл бұрын
Thanks, do you find it more expensive than other cloud providers?
@damonwu9658
@damonwu9658 4 жыл бұрын
Hi Julio, thanks for sharing the tutorial, and would you midn to create a video for deploy a .netcore 3.1 + mysql + docker => deploy to AWS ec2 server tutorial? Icoun't find any good tutorial so far, and if you have any good resources, please share with me, many thanks in advance
@juliocasal
@juliocasal 4 жыл бұрын
Damon, apologies but I don't have experience with AWS ec2.
@damonwu9658
@damonwu9658 4 жыл бұрын
@@juliocasal Its ok, thanks Julio
ASP.NET Core Logging Crash Course
30:36
Julio Casal
Рет қаралды 7 М.
My Daughter's Dumplings Are Filled With Coins #funny #cute #comedy
00:18
Funny daughter's daily life
Рет қаралды 33 МЛН
Don't look down on anyone#devil  #lilith  #funny  #shorts
00:12
Devil Lilith
Рет қаралды 47 МЛН
didn't manage to catch the ball #tiktok
00:19
Анастасия Тарасова
Рет қаралды 33 МЛН
Deploying an ASP.NET Core 3.0 Web API on Kubernetes
18:45
Julio Casal
Рет қаралды 38 М.
Containerizing an ASP.NET Core 3.0 Web API
14:17
Julio Casal
Рет қаралды 76 М.
Deploy a .NET Core API with Docker (Step-by-Step)
36:17
Les Jackson
Рет қаралды 258 М.
NGINX Tutorial - What is Nginx
14:32
TechWorld with Nana
Рет қаралды 222 М.
18 Weird and Wonderful ways I use Docker
26:18
NetworkChuck
Рет қаралды 311 М.
How to deploy .NET apps to Kubernetes
12:02
Nick Chapsas
Рет қаралды 79 М.
Run ASP.NET Core 3.1 Apps in Docker with HTTPS.
1:01:33
Les Jackson
Рет қаралды 87 М.
My Daughter's Dumplings Are Filled With Coins #funny #cute #comedy
00:18
Funny daughter's daily life
Рет қаралды 33 МЛН