Deploy a Nest.js App With Docker + Kubernetes on Google Cloud

Поділитися
Вставка
  • Опубліковано 2 гру 2024

КОМЕНТАРІ • 51

  • @mguay
    @mguay  9 місяців тому +2

    Get my highly-rated Udemy courses at a discount here: michaelguay.dev/udemy/

  • @Algo-Concept
    @Algo-Concept 8 місяців тому +2

    Awesome ! So straight forward ! I was looking for a simple, quick and advanced tutorial of k8s, you made my day :)

  • @rohit-gupta
    @rohit-gupta 2 роки тому +1

    This is crazy. Free tutorial. i’ve been looking for a tutorial like this. Thanks a ton 🙏

  • @felipechavesdeoliveira4785
    @felipechavesdeoliveira4785 Рік тому +5

    Great tutorial, I think you should have a series regarding nestjs + microservices. Something a little bit more real world-like. Anyways, you are a good communicator and make things easy to understand, thanks!

    • @mguay
      @mguay  Рік тому +4

      My new Ultimate Nest.js Microservices course will cover this! Stay tuned for its release in May.

  • @borknagarchile
    @borknagarchile Місяць тому

    Great tutorial. One question: when u copy and run the command from gcp to connect are you connected to the k8s in the cloud and all subsequent commands are ran there or local machine. Thanks!

  • @avibhatnagar2963
    @avibhatnagar2963 Рік тому +3

    Everything worked perfectly for me till the end but When I am making the postman request, I get ECONNREFUSED error. How can i fix this?

    • @maheenmalik3922
      @maheenmalik3922 Рік тому

      I am having the same error. Were you able to resolve it?

    • @labhamjain3915
      @labhamjain3915 Рік тому

      Are you sure you are typing the correct url? Try going from browser first

  • @abc_cba
    @abc_cba 2 роки тому

    11:09 Hi here is where I am getting stuck with this error :
    $ kubectl create -f deployment.yaml
    "Unable to connect to the server: dial tcp: lookup kubernetes.docker.internal: no such host" please help

  • @leejinglim5893
    @leejinglim5893 Рік тому

    Can you make a video about how to setup CICD pipeline like jenkins to automate the deploying process to kubernetes on aws/google cloud?

  • @alexshubin1
    @alexshubin1 Рік тому

    2:40 I think it is better to run 'npm ci' instead of 'npm imstall' if you want to use package-lock. Otherwise why to copy it at all?

  • @Surya-r4y9m
    @Surya-r4y9m Рік тому

    Even i have followed the same steps.
    1) I will be able to run the application locally.
    2) I will be able to create docker image with same configuration by multi stage
    3) I have started through docker swarm an its working.
    4) will be able to push to registry as well.
    5) While i am trying to get the image to cluster and applying through deployment.yaml my containers are getting restart and going to crashback.
    6) I fi use your image its working.
    Can you please explain how and what is the change.
    Below is the image which i have created and uploaded to registery.(docker pull suryarh/nestjs:2)

  • @iamsekz
    @iamsekz Рік тому

    GKE autopilot is marvelous

  • @jithinpg619
    @jithinpg619 Рік тому

    Everything works for me as above procedure, but my real question is how can i map this static ip with my purchased domain in GCP?

  • @mariosfrixou7003
    @mariosfrixou7003 2 роки тому

    I wish I could hit the like button more times. This a great tutorial thank you!

  • @sachinmishra5218
    @sachinmishra5218 2 роки тому

    Do you think we should add node_modules folder in docker container regardless running npm run build ? I think we should add .dockerfile file for node_modules because we don't need them

  • @titoffen
    @titoffen 2 роки тому +3

    Awesome tutorial Michael. I'm a Docker/Kubernetes n00b and this video has taught me so much! I love the way you guide your audience through. One thing I'd love to learn about is how to update an already-deployed container. I'm not sure about the terminology here... hot reload? Is there a way to streamline that process? Thank you! 🙏🏻

    • @mguay
      @mguay  2 роки тому +2

      We can pass a custom command to the container in a docker-compose.yml file (like running Nest in dev mode). I have a new video coming out shortly that demonstrates this.

    • @titoffen
      @titoffen 2 роки тому

      @@mguay great! Thanks!

    • @TheBrorkanin
      @TheBrorkanin 11 місяців тому

      Hey did you ever find out how to update the already-deployed container? 😅

  • @ronsearch
    @ronsearch 2 роки тому

    Great tutorial. Thanks! Which one do you think is cheaper Digital Ocean or Google Kubernetes Cloud for production?

  • @jonathanferreira-qx2eo
    @jonathanferreira-qx2eo 2 роки тому

    Hey man, do you have any material explaining how to secure HTTPS our nestJS app on GKE ?

  • @scottamolinari
    @scottamolinari 2 роки тому

    Funny, I was just about to go looking at how to do this. Thanks for the instruction.

  • @behradkazemi213
    @behradkazemi213 2 місяці тому

    can you make a same video using Helm and Terraform on azure?

  • @sz-sb1pe
    @sz-sb1pe 2 роки тому

    great content. Wondering what would be a good way to add the environment variable.

  • @praveenbhawantha
    @praveenbhawantha 2 роки тому

    I have my node.js app, can i use that to follow the next steps? Or are there any changes that i have to add?

    • @mguay
      @mguay  2 роки тому

      Everything should be about the same. Just make sure you’re using the correct port.

  • @kemekenneth
    @kemekenneth 2 роки тому

    Awesome video Michael. However, I was wondering if the multiple steps can be combined into a single step.
    Can we rm -rf the node_modules then install --only=production?
    Also, is the 2nd COPY . . necessary since all we need is /usr/src/app/dist?

  • @tntg5
    @tntg5 2 роки тому

    Thanks for your help!
    I followed your tutorial except for one step, where I made my docker repo private. That cause authentication issues and I could figure out a way to make it work. Even after configuring my docker credential in kubectl.
    Do you any recommendations on this issue?

  • @sadhakbj
    @sadhakbj Рік тому

    Awesome content, i have two questions:
    1. Locally if I want to have a completely localized docker development environment, how can I achieve that so that I can develop locally on any machine which does not have node or MySQL or any other required services installed?
    2. If I wanted to have a separate docker image for the MySQL / redis, how could I have achieved that? May be if my app on prod wants to communicate to google's cloudsql / aws rds?
    Please let me know if you have covered these things in any videos or you have premium udemy course which covers this, I am very eager to buy that if it exists.

  • @jithinpg619
    @jithinpg619 Рік тому

    how can i use this in cloud run?

  • @michaelyao9389
    @michaelyao9389 2 роки тому

    I just wondering what your ram size is? 32GB or 64GB? My 2015 16GB mbp struggles with running k8s locally.

  • @umutyalcn1914
    @umutyalcn1914 2 роки тому

    Great tutorial, i have a question how can i deploy with docker-compose file (contains Postgresql) on GCP?

    • @mguay
      @mguay  2 роки тому +1

      Thank you! Take a look here: cloud.google.com/compute/docs/containers/deploying-containers

  • @MrGenbu
    @MrGenbu 10 місяців тому

    There is no need for the last COPY . . , Like why did we build it even ?

  • @nishanthakumara8472
    @nishanthakumara8472 2 роки тому

    Great explanation. Thanks
    Small question, How can we access this service on port 80 instead of 3000?

    • @mguay
      @mguay  2 роки тому +1

      I believe we can just change the target port on the service.

  • @saurabhtalele1537
    @saurabhtalele1537 Рік тому

    Great video Nice please also teach us how to deploy database... And to store env file for security.....❤❤❤

  • @a.nk.r7209
    @a.nk.r7209 2 роки тому

    I'm just learning the K8s and it's difficult for me to understand. Thanks for your tutorial

  • @shalitha98
    @shalitha98 2 роки тому

    Thanks man, It's working perfectly :)

  • @adriandrozman3404
    @adriandrozman3404 2 роки тому

    Any plans to showcase a deployment to AWS K8S?

    • @mguay
      @mguay  2 роки тому +2

      I could definitely give this a go.

    • @paneurhythmie
      @paneurhythmie 2 роки тому

      @@mguay I'll be interessted on that too. 😊

  • @MarkusTheUnnamed
    @MarkusTheUnnamed Рік тому

    Great video man really appreciate it

  • @selub1058
    @selub1058 7 місяців тому

    Great! Thank you.

  • @monawwarabdullah7438
    @monawwarabdullah7438 Рік тому

    your video are great, i learned about nest.js microservices.
    can you make a video on deploying multiple nest.js microservices to different ports (maybe using Docker)

  • @clickclackcoder2544
    @clickclackcoder2544 2 роки тому

    Is it okay if I define a namespace?

  • @arv-ls7zw
    @arv-ls7zw 5 місяців тому

    Nice Video

  • @dailymeow3283
    @dailymeow3283 2 роки тому

    Your videos are great, just if you could zoom in your screen so we can watch on mobile