Microservices in Python using Flask Framework | Dockerize and Deploy to Kubernetes with Helm

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ต.ค. 2024
  • Microservices in Python using Flask framework | Dockerize and Deploy to Kubernetes with Helm
    GitHub: github.com/kun...
    #DevOpsMadeEasy #DevOps #Programming
    ▬▬▬▬▬▬ Pre-Requisite ▬▬▬▬▬▬
    💡 Kubernetes: ► • Kubernetes Made Easy
    In this video series, I explain
    ► Istio Architecture
    ► Installing Python 3.X
    ► Creating Python Virtual Environments
    ► Installing Python VS Code Extension
    ► Sample Flask Application
    ► Jinja templating for Dynamic Web Pages
    ► Using Pip to Freeze Python Dependencies
    ► Building the docker image using Dockerfile
    ► Writing Docker Compose file
    ► Writing Kubernetes Manifest files for the application
    ► Creating Helm Chart
    ▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬
    0:00 - Start
    ▬▬▬▬▬▬ Want to learn more? 🚀 ▬▬▬▬▬▬
    Kubernetes course ► • Kubernetes Made Easy
    Docker course ► • Docker - 01: Introduct...
    ▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
    Facebook group ► / 171043094400359
    Email ► devopsmadeeasy@outlook.com
    ▬▬▬▬▬▬ GitHub Links 🚀 ▬▬▬▬▬▬
    ► github.com/kun...
    🙏 🙏 🙏 Kindly Like and Subscribe our TH-cam Channel for more videos 🙏 🙏 🙏
    Also, I post important updates on Docker, Kubernetes, Helm, Git, Python, Jenkins, Ansible, Terraform on my Facebook Page
    that are helpful in clearing many certifications😍 😍
    Don't forget to join my Facebook group
    Help me build more tutorials like this by contributing. Reach out to us on my Email address provided above🙏
    ⭐ Tags ⭐
    DevOps Made Easy
    Docker Made Easy
    Kubernetes Made Easy
    Helm Made Easy
    Istio Made Easy
    Ansible Made Easy
    Terraform made Easy
    Python Made Easy
    Git Made Easy
    Python Tutorials
    Object-Oriented Programming Python
    Python OOP
    Python Objects and Classes
    Classes Python
    GoLang Tutorials
    Objects and Classes Python
    ⭐ Hashtags ⭐
    #DevOpsMadeEasy #Python #IOT #k3s #devops #helm #docker #kubernetes #jenkins #ansible #git #k8s #rancher #Raspberrypi #raspberrypik3s

ความคิดเห็น • 109

  • @basuutube
    @basuutube ปีที่แล้ว +9

    I am from Machine Learning Background and trying to learn DevOps. Gone through many videos. To be honest, they are amazingly crisp. Can you please index the videos, like in what order should I go through to have a better understanding?

  • @akashmishra13
    @akashmishra13 2 ปีที่แล้ว +7

    Really great video...somehow this never comes on top when searching for microservices using python
    Great Work!!!

  • @ravigiri_67
    @ravigiri_67 2 ปีที่แล้ว +5

    Till 43 min everything was clear after that bouncer. Still appreciate your effort

  • @enterfonement
    @enterfonement ปีที่แล้ว +2

    Short and Sweet walk-through. Nice work.

  • @akinyemisodiq7081
    @akinyemisodiq7081 2 ปีที่แล้ว +2

    thanks for this piece, even though i'm not a flask person, this tutorial is great, thanks

  • @adrienpouemo3229
    @adrienpouemo3229 ปีที่แล้ว +2

    Thank you very much, this is what i was looking for

  • @Sound-Lord
    @Sound-Lord 8 หลายเดือนก่อน

    Good and Cool 👍 Thanks for using Flask - the best framework for real Batmans!

  • @maheshmagalage1886
    @maheshmagalage1886 2 ปีที่แล้ว +3

    Thank you for the detailed tutorial.

  • @ju_brasil
    @ju_brasil ปีที่แล้ว

    really good work! Thanks a lot! Simplified, useful, direct to the point. I learned a lot!

  • @vinayakdumbre2828
    @vinayakdumbre2828 2 ปีที่แล้ว +2

    Great work bro,this is exactly what i was searching for, thank you.

  • @chhayadongre3956
    @chhayadongre3956 ปีที่แล้ว +3

    Really my search ends here for python...Great video. May I request you to please upload 04 video in this series, as i can see uplaoded videos are 00,01,02,03,05. Thanks in advance vikram sir 🙏

    • @DevOpsMadeEasy
      @DevOpsMadeEasy  ปีที่แล้ว

      Its there already. Pls check again

  • @jaganmohan6557
    @jaganmohan6557 2 ปีที่แล้ว +2

    Great content . Keep on providing content like this

  • @harshalichopade616
    @harshalichopade616 2 ปีที่แล้ว +1

    It's really osm yarr Thank you !!! it's clearing all the doubt

  • @moinsyed195
    @moinsyed195 2 ปีที่แล้ว +2

    Bro super
    Please make some more video same like this

  • @russellandrady
    @russellandrady 2 หลายเดือนก่อน +1

    Flask tutoring part is going very slow. But the docker part is going very fast. If you are familiar with docker not with flask, this may good for you.

  • @chandu2155
    @chandu2155 2 ปีที่แล้ว +2

    Frankly speaking, this is not microservice application(as we are not seeing two services talking to each other) , it's a service based web app deployed in kubernetes. Though the content is good for service based app. Great effort!!! Keep up the good work

    • @DevOpsMadeEasy
      @DevOpsMadeEasy  2 ปีที่แล้ว +2

      True. I have not extended this application to include 2 microservices. Thanks for the feedback :)

    • @ifeanyivictor2857
      @ifeanyivictor2857 2 ปีที่แล้ว

      Hi @chandu kumar, please can you recommend a video that treated microservices very well.

  • @cskaushik11
    @cskaushik11 2 ปีที่แล้ว +1

    Very helpful video. Thanks for sharing.

  • @akashmondal299
    @akashmondal299 3 หลายเดือนก่อน

    Outstanding video.. ✌

  • @kaush7
    @kaush7 2 หลายเดือนก่อน +1

    man this is great

  • @scott5226
    @scott5226 ปีที่แล้ว +1

    Really excellent job on this video.

  • @tom.bailey
    @tom.bailey 2 ปีที่แล้ว +2

    Really great tutorial, thank you!

  • @paulcaburatan55
    @paulcaburatan55 2 ปีที่แล้ว +1

    superb content! awesome man! thanks

  • @kaush7
    @kaush7 2 หลายเดือนก่อน +1

    Thanks!

  • @ashishgudla5411
    @ashishgudla5411 2 ปีที่แล้ว +1

    5 mins into it. I was like yeh to sahi lagra yaar

  • @vijaymestry4236
    @vijaymestry4236 ปีที่แล้ว

    Really Great explanation

  • @davidleal714
    @davidleal714 2 ปีที่แล้ว +1

    thank you so much, great content

  • @interestingdatascience8057
    @interestingdatascience8057 2 ปีที่แล้ว +1

    Hi Vikram, It would be great if you take any MEAN / MERN stack application and show how to dockerize it and deploy it on Kubernetes through HELM. Because I am not able to find any solid video on TH-cam where someone shown it perfectly so that we can implement the same in our project.

    • @DevOpsMadeEasy
      @DevOpsMadeEasy  2 ปีที่แล้ว

      I will definitely try. I don't have any MERN stack apps though

  • @mrindia2574
    @mrindia2574 8 หลายเดือนก่อน +1

    Thanks boss appreciate

  • @aliyananwar7633
    @aliyananwar7633 ปีที่แล้ว

    Great video thanks for helping, when you installed mini kube ? At 44th minute you said we have mini kube already installed, this video could be alot helpful if you add sections.

  • @skydiverton
    @skydiverton 2 ปีที่แล้ว +1

    Very good mt frens

  • @shanmugaraj3539
    @shanmugaraj3539 2 ปีที่แล้ว +2

    What OS you're using bro!? It's cool 🤯

  • @a1994s
    @a1994s 2 ปีที่แล้ว +1

    thanks bro, can you please make a microservice same as this video using Django

  • @shashankbafna2867
    @shashankbafna2867 ปีที่แล้ว +1

    Great video!

  • @redemsion2
    @redemsion2 ปีที่แล้ว

    Hi -Thanks for this video. I am learning from it. I have question. Why did you install python on your local machine rather than in a docker container? What are the benefits to installing it the way you did vs in a container? Thanks in advance.

  • @ahoymatey1234
    @ahoymatey1234 ปีที่แล้ว

    Cannot connect to app when at the docker stage maybe it's something new but there seemed to be a rush through the minkube part maybe there is a special setup we need to that isn't shown

  • @melodic_tech_house
    @melodic_tech_house 2 ปีที่แล้ว +1

    Had been doing all around 2 weeks

  • @AlexandreSipauba
    @AlexandreSipauba ปีที่แล้ว +1

    Very good video! Congratulations and thank you for this content. But I got a little confused... Flask is a WSGI application. So who acts as the HTTP server for your application inside the container? In a production environment, a reverse proxy such as NGINX is required to prevent the WSGI server's built-in HTTP server from converting incoming HTTP requests to the WSGI server. So here is my query: Does kubernetes force a simpler architecture for k8s load balancing to manage everything from outside’s container? Or is the correct approach to keep an NGINX inside the docker container to handle the HTTP requests? I would really like to know.

    • @DevOpsMadeEasy
      @DevOpsMadeEasy  ปีที่แล้ว +1

      www.toptal.com/flask/flask-production-recipes

  • @Andrew_J123
    @Andrew_J123 ปีที่แล้ว +1

    Hi! I appreciate the video and followed all the steps and got it working on my laptop. I wanted to ask if you're supposed to be able to see this on other devices though as I would like for things to be accessed by employers potentially. Thanks again!

    • @DevOpsMadeEasy
      @DevOpsMadeEasy  ปีที่แล้ว +1

      Once you build the docker image, you can deploy it in managed services like AWS ECS or AWS EKS to get a public endpoint using which others can access. You can also run the same image as container in AWS EC2(after installing docker) and access it via public ip of your instance

    • @Andrew_J123
      @Andrew_J123 ปีที่แล้ว

      @@DevOpsMadeEasy do you have any videos on these steps? It would be super helpful if you did. I think you give good instructions and basically want to use your videos as a base guide and then build apps using the structure you give

    • @DevOpsMadeEasy
      @DevOpsMadeEasy  ปีที่แล้ว +1

      Follow this playlist: th-cam.com/play/PL8klaCXyIuQ4ziSFrmB-gyrEngjJ12V18.html

    • @Andrew_J123
      @Andrew_J123 ปีที่แล้ว

      @@DevOpsMadeEasy Thanks!

  • @ajinzrathod
    @ajinzrathod 6 หลายเดือนก่อน

    So where exactly is Microservices used here?

  • @TheNishi42
    @TheNishi42 2 ปีที่แล้ว +1

    Thank you :-)

  • @raghuvamsialapati585
    @raghuvamsialapati585 2 ปีที่แล้ว +2

    spot on tutorial. great work mate. could you provide the repo link. thanks

  • @atzin.0603
    @atzin.0603 2 ปีที่แล้ว +2

    can I make a web page with this and selenium? to perform webscrapping on other web pages and display them on mine

    • @DevOpsMadeEasy
      @DevOpsMadeEasy  2 ปีที่แล้ว +2

      Yes you can

    • @atzin.0603
      @atzin.0603 2 ปีที่แล้ว +1

      @@DevOpsMadeEasy it is something simple what I should do. is it necessary to use all the technologies of the video or could it only be done with django and selenium?

    • @DevOpsMadeEasy
      @DevOpsMadeEasy  2 ปีที่แล้ว +1

      Django and selenium are the dependencies. You should know how to containerize your app and rest all Kubernetes related files stays same

    • @atzin.0603
      @atzin.0603 2 ปีที่แล้ว +1

      @@DevOpsMadeEasy So what do you recommend me to do what I have in mind? with kubernetes? thank you a lot

    • @DevOpsMadeEasy
      @DevOpsMadeEasy  2 ปีที่แล้ว

      The recommended way is to first dockerize your app, test it by running a container and then deploy the same image in Kubernetes :)

  • @AbdullahMahmud-m9s
    @AbdullahMahmud-m9s 7 หลายเดือนก่อน

    Very good tutorial. I tried but I do not see my page while browsing using the port 30366 ( 80:30366/TCP ). Can you help ?.

    • @DevOpsMadeEasy
      @DevOpsMadeEasy  7 หลายเดือนก่อน

      There is some issue with minikube service. Check section 4 in this link minikube.sigs.k8s.io/docs/start/

  • @umairmughal1369
    @umairmughal1369 5 หลายเดือนก่อน

    can anybody tell me how to run this app after deploying it??

  • @jaganmohan6557
    @jaganmohan6557 2 ปีที่แล้ว +1

    Can you make vedio on django web application framework insimilar manner brother

    • @DevOpsMadeEasy
      @DevOpsMadeEasy  2 ปีที่แล้ว

      Sorry, brother never worked on Django but I like Flask and Fast API compared to Django. Just a personal opinion.

  • @futhedude4848
    @futhedude4848 ปีที่แล้ว +1

    Great video with the Flask and Kubernetes, but this is NOT a video about microservice.

  • @thegreatindiankitchen91
    @thegreatindiankitchen91 2 ปีที่แล้ว

    We were hoping one day you will release helm full course but we are losing hops sir please create a full course on helm

    • @DevOpsMadeEasy
      @DevOpsMadeEasy  2 ปีที่แล้ว

      We already have Helm complete course but a paid one. Full course is for our students

  • @moulijayanti
    @moulijayanti 2 ปีที่แล้ว

    Do you do complete devops course?

  • @partyplaylistsbyyash7540
    @partyplaylistsbyyash7540 10 หลายเดือนก่อน

    Implemented all the steps as per mentioned in video , all the containers and images are running fine , but when trying to load the minikube IP there is no result , its not loading the webpage, can u pls let know where could be the issue

    • @DevOpsMadeEasy
      @DevOpsMadeEasy  10 หลายเดือนก่อน

      Did you exec into the pod and check if the app is accessible on the localhost? like curl localhost:5000?

    • @partyplaylistsbyyash7540
      @partyplaylistsbyyash7540 10 หลายเดือนก่อน

      @@DevOpsMadeEasy got inside the pod , but none of the commands are working inside it , logged in via /bin/sh shell because when I was trying to exec into pod using /bin/bash getting OCI runtime failed error.

  • @partyplaylistsbyyash7540
    @partyplaylistsbyyash7540 10 หลายเดือนก่อน

    Hi , when i am trying to load the webpage via minikube IP , its not working , checked on port mapping part , there is no as such port occupied by any other service. where do I need to modify

    • @DevOpsMadeEasy
      @DevOpsMadeEasy  10 หลายเดือนก่อน

      Did you exec into the pod and check if the app is accessible on the localhost? like curl localhost:5000?

    • @partyplaylistsbyyash7540
      @partyplaylistsbyyash7540 10 หลายเดือนก่อน

      @@DevOpsMadeEasy still in docker build step only dint go to kubernetes setup yet (got stuck in docker build/run only) , after we did docker build and then docker run on port 80:5000 , then with that minikube IP the webpage is not loading. what could be the reason , because all the containers and images are running fine

    • @DevOpsMadeEasy
      @DevOpsMadeEasy  10 หลายเดือนก่อน

      @partyplaylistsbyyash7540 For accessing docker container, use localhost only not minikube ip. Also I checked from my end and indeed minikube ip isn't accessible and it could be due to minikube issue. Don't worry the app should work in other clusters setup with kubeadm or EKS etc

    • @partyplaylistsbyyash7540
      @partyplaylistsbyyash7540 10 หลายเดือนก่อน

      @@DevOpsMadeEasy Just found out that the pods booted after starting docker container (build and run) are going into crashloopbackoff , tried increasing timeout and period seconds , but still the docker container webapp pods are going into crashloopbackoff state

  • @brunosantos2345
    @brunosantos2345 2 ปีที่แล้ว +1

    Hi, I can't find this repo on your github. Could you send me the link please. Thanks

    • @DevOpsMadeEasy
      @DevOpsMadeEasy  2 ปีที่แล้ว

      github.com/kunchalavikram1427/microservices-in-python

    • @krishnakolachalam
      @krishnakolachalam 2 ปีที่แล้ว

      @@DevOpsMadeEasy Vikram, link not working. Getting 404 from github. Has it been moved or removed?

    • @DevOpsMadeEasy
      @DevOpsMadeEasy  2 ปีที่แล้ว

      github.com/kunchalavikram1427/microservices-in-python

    • @DevOpsMadeEasy
      @DevOpsMadeEasy  2 ปีที่แล้ว

      github.com/kunchalavikram1427/microservices-in-python

  • @chinmoypadhi
    @chinmoypadhi 2 ปีที่แล้ว

    Hi, I didn't get the step at 43:58 where you mentioned you have already deployed minikube and you are running "minikube start" from python virtual-env , the same when I'm trying to run python virtual-env , I'm getting the error
    (tutorial-env) C:\Git\microservices-in-python>minikube start
    'minikube' is not recognized as an internal or external command,
    operable program or batch file.
    could you please let me know what are the steps to deploy minikube and kubectl so that I can complete this tutorial. It's good to have any youtube video link.

    • @DevOpsMadeEasy
      @DevOpsMadeEasy  2 ปีที่แล้ว

      06(a) - Local Kubernetes Cluster Installation using Minikube | Minikube in-depth with MetalLB
      th-cam.com/video/RjPxFPKECp4/w-d-xo.html

  • @rohitvernekar
    @rohitvernekar 2 ปีที่แล้ว

    Hey thanks for this wonderfull video : ) .I was able to deploy till docker compose.But while running kubernetes deployment, I am getting ImagePullBackoff status. I assume this is expecting a image. Not sure on where u created the image for kubernetes(webapp:1.0).

    • @DevOpsMadeEasy
      @DevOpsMadeEasy  2 ปีที่แล้ว +1

      The same dockerized image is being used for kubernetes deployment as well. Check the video again and thanks for your valuable comments

  • @samtx
    @samtx 2 ปีที่แล้ว +1

    Thank you , link to repo ?

  • @jacobbardwell9195
    @jacobbardwell9195 ปีที่แล้ว

    When running the docker file @51:32 my docker ps command indicates that the status of the application is unhealthy. Is there a way to troubleshoot for an error?

  • @abdullahsaid8561
    @abdullahsaid8561 10 หลายเดือนก่อน

    we dont need wsgi?

    • @DevOpsMadeEasy
      @DevOpsMadeEasy  10 หลายเดือนก่อน

      You will need it. This is just a test app

  • @ramanshaan7566
    @ramanshaan7566 2 ปีที่แล้ว

    has anyone been able to replicate this ? i am not able to deploy and access either on minikube or master/worker 4 node cluster

  • @abhishekprasad7030
    @abhishekprasad7030 2 ปีที่แล้ว +1

    hello Bro, Good Stuff.. But I am stuck here.. th-cam.com/video/SdTzwYmsgoU/w-d-xo.html .. you mentioned, you have already installed these dependencies.. but I have not yet, can you please let me which all dependency are required.. and commands for the same.. please note: I am on mac m1.

  • @abdelaziz2788
    @abdelaziz2788 ปีที่แล้ว

    Do you call that microservices?????

  • @rishikeshkumar2073
    @rishikeshkumar2073 6 หลายเดือนก่อน

    unable to get url using minkube ip after running container

  • @kavithak1138
    @kavithak1138 2 ปีที่แล้ว +1

    Hi really helpful.am searching good tutorials for kubernetes deployment last 2 weeks.how to contact you need help on kubernetes.