Installing Docker Swarm on 4 Raspberry Pis with Portainer Integration - Lab Series

Sdílet
Vložit
  • čas přidán 25. 08. 2024

Komentáře • 22

  • @Techdox
    @Techdox  Před rokem +1

    I hope you enjoyed the video! Make sure to subscribe to follow this series! ❤

  • @TheKingofparis148
    @TheKingofparis148 Před měsícem

    great video got it up and running in no time following these steps

  • @John.Farrar
    @John.Farrar Před rokem +1

    I have 4 RPi 4 w/8 G… and want to know how you set up in slightly more detail. You mentioned some links. Could you do a step through instruction for this part? This will give me a nice lab for sure.

    • @Techdox
      @Techdox  Před rokem +1

      Hi John, I am not sure exactly which sections you would want more detail in but I'll start from the start and then if you need any more help, let me know.
      Installing and setting up Docker - docs.docker.com/engine/install/ubuntu/
      You will need Docker on every Raspberry Pi (Node) that you want part of your Swarm.
      Enabling Swam - docs.docker.com/engine/swarm/swarm-mode/
      This link shows cases what I do in the video, so maybe using the video and referencing this guide in tandem may help to get your Swarm setup.
      And then Portainer - docs.portainer.io/start/install-ce/server/docker/linux - I have videos on this as well - czcams.com/video/2qDPx5oSr48/video.html
      These steps are what you would follow to get Swarm setup and then managed via Portainer. But please let me know what specifically I can help with.

  • @siddharthchordiya
    @siddharthchordiya Před rokem

    Hey Techdox,
    Thanks for the video it was awesome
    Needed this for a long time as I was looking for some videos for Cluster on a Raspberry Pi and I think Docker Swarm is a great starting point
    The Setup was quite easy and simple
    But now I need to see that how we can deploy apps on it like a Mysql server and how to manage all of that and connect to the different services without making a IP Address Speghetti 😂

    • @Techdox
      @Techdox  Před rokem

      That’s my next video :)

  • @philipikeme3365
    @philipikeme3365 Před 4 měsíci

    Great tutorial. I do however am stuck at adding the environments. I get connection refused when connecting the agent via portainer on the manager node. Any advice?

  • @jakke1975
    @jakke1975 Před 10 měsíci +1

    I've seen the follow-up video about the cluster fs deployment, but I was really hoping to get a bit more (advanced) information about how to operate and manage this cluster.
    Also, I'm running a cluster on my pi, but have Intel CPUs as workers (arm64 + amd64 mixed architecture). There are many more areas to cover in this area, for example load balancing services on your cluster and automatic service management when workers go down or come up again...

  • @jonyskids
    @jonyskids Před 7 měsíci +1

    Nice video. So your main Portainer is outside the swarm?

    • @Techdox
      @Techdox  Před 7 měsíci +1

      Portainer server is running on Docker standalone yeah, then I have a Swarm cluster which I added to Portainer server as a new environment

  • @user-wu9qo1bf9n
    @user-wu9qo1bf9n Před 9 měsíci

    Very useful video, I found it at about the right time for me. :) I'm migrating from an existing OMV setup to try to add a swarm for the dockers already installed on that. Should be fun. In your video, you skip over the actual installation of docker quite quickly, do you just follow the standard setup?

    • @Techdox
      @Techdox  Před 9 měsíci

      Yeah. I think nearly all of my videos I cover the install and since it’s so stock standard of following the offical documentation there’s no need to cover it every time haha

  • @dcitnetworkservices3834
    @dcitnetworkservices3834 Před 4 měsíci

    Do you have to keep both Environments ? If yes, which one to use ? I'm guessing the one what says " Agent "

    • @Techdox
      @Techdox  Před 4 měsíci

      As in the local environment and the newly added environment you added via an agent? Yeah you need both of those as the local environment is Portainer itself

  • @jxthursday
    @jxthursday Před 9 měsíci

    Hey, thanks for that very instructive video! I plan to set up a little swarm with a Pi2 and 2 Pi3s. You chose the Pi2 as manager, and I wonder why. My intuition would say, that you should use the more powerful machine as the manager. I know I'm late, but it would be great if you could elaborate on that.

    • @Techdox
      @Techdox  Před 9 měsíci +1

      Hey! Thanks for reaching out! So, about the Pi2 being the manager - it's mainly because those little guys can't handle 64-bit Docker containers, unlike the Pi4. I wanted to keep things smooth and avoid any compatibility headaches, so I stuck with the Pi2 as the manager without loading it up with containers. If you've got more questions or need help on anything else, hit me up!

    • @jxthursday
      @jxthursday Před 9 měsíci

      @@Techdox Wow, thanks so much for the quick answer! Oh yeah, that makes a lot of sense. I'm playing around with Docker on the Pi2 at the moment and had to recreate some images because of that. So I guess I'll use the Pi2 mainly as manager and Portainer server, and only use it as worker, when I have a 32-bit container. For 64-bit containers, I'll compose them on one of the Pi3s and set deployment constraint to the two Pi3s. Does this sound about right?

    • @Techdox
      @Techdox  Před 9 měsíci +1

      @@jxthursday yeah, sounds good to me, all just a matter of playing around to see what works :)

  • @Trevorquack
    @Trevorquack Před měsícem

    As much as I loved the video, it would have been better if you could have shown the commands for docker and portainer install, not just the commands that come after. Now that I have it all in though, I need to find how to install mariadb, pihole and fr24.

    • @Techdox
      @Techdox  Před měsícem +1

      I tend to not cover content I already have. I have dedicated videos on Docker setup and Portainer. If I covered this for every video it would add an extra 15 mins minimum :)

  • @shreeharimarathe6715
    @shreeharimarathe6715 Před rokem

    Can you run some services like Home assistant or jellyfin in the swarm or a database (no idea if that works/supports) just curious!!

    • @Techdox
      @Techdox  Před rokem +2

      You definitely can, then you get the redundancy of one of the nodes (raspberry pi) goes down