Latest / Cables2Clouds / How Do You Build a Hybrid Home Lab? - C2C037
Transcript
- 0:00Matt Elliott: Anytime you're starting a project like this, especially if you're writing anything like code or automation in some DSM use Git from the very beginning right and check in things frequently, because it really is like a time machine, right.
- 0:13Matt Elliott: The minute you screw something up, you can just rewind it in time.
- 0:18Tim McConnaughy: Welcome to the Cables to Clouds podcast, your one-stop shop for all things hybrid and multi-cloud networking.
- 0:24Tim McConnaughy: Now here are your hosts Tim.
- 0:27Chris Miles: Chris and Alex.
- 0:29Alex Perkins: Hello and welcome back to the Cables to Clouds podcast.
- 0:33Alex Perkins: My name is Alex Perkins and I will be your host for today's episode.
- 0:37Alex Perkins: I'm at Bumps in the Wire on Twitter, or X, whatever you.
- 0:42Alex Perkins: The audience wants to call it.
- 0:44Alex Perkins: You take your pick.
- 0:45Alex Perkins: I'm joined by these two chuckleheads Tim McConaughey at JuanGolbez on Twitter he's only on Twitter and Chris Miles at BGP Main, who is also only on Twitter.
- 0:57Chris Miles: We've been demoted to chuckleheads.
- 1:00Chris Miles: That's crazy.
- 1:00Alex Perkins: Chuckleheads exactly.
- 1:01Alex Perkins: I don't know why that happens.
- 1:02Alex Perkins: No-transcript.
- 1:01Alex Perkins: I don't know why that happens.
- 1:02Alex Perkins: I think I stole that from Tim actually.
- 1:04Tim McConnaughy: Yeah, I definitely use Chuckleheads all the time.
- 1:06Tim McConnaughy: That's like my thing, I guess.
- 1:08Alex Perkins: Yeah, absolutely All right.
- 1:10Alex Perkins: So today we are joined by a special guest, Matt Elliott, and I'm going to go ahead and let you introduce yourself, Matt.
- 1:17Matt Elliott: Sure, matt Elliott, I am on Twitter under Network Brew Ha Ha, which good luck spelling that.
- 1:27Matt Elliott: But I'm out there Long time network engineer happy to be here.
- 1:29Matt Elliott: I think I met all of you all at some point as I was either studying for or just got my CCIE.
- 1:34Matt Elliott: So we're all long time network nerds and a big fan of all of you all in this show, so really happy to be here.
- 1:40Alex Perkins: Awesome, awesome, glad to have you.
- 1:42Alex Perkins: I think I know for sure that I met you in the San Diego Cisco Live, so 2019.
- 1:48Tim McConnaughy: Yeah, that's what I remember as well.
- 1:50Tim McConnaughy: Yeah, we were all hanging out at the bar eating and drinking and stuff.
- 1:54Tim McConnaughy: That's where I met you.
- 1:55Tim McConnaughy: Yeah, the legendary bar.
- 1:56Chris Miles: Yes, I think I don't remember, man.
- 1:58Chris Miles: It might have been 2018 when I met you.
- 2:00Chris Miles: I can't remember, but I remember it was funny.
- 2:03Chris Miles: We were chatting and then, all of a sudden, we both realized we were both from Kentucky.
- 2:07Chris Miles: That being said, I think Kentucky is the number one.
- 2:10Chris Miles: We've had the most guests on this, on this podcast from Kentucky, which is close to close to my heart.
- 2:14Matt Elliott: That's probably true.
- 2:15Matt Elliott: That's really bizarre because Kentucky is like a IT technology backwater.
- 2:19Chris Miles: I mean there's not a lot going on.
- 2:22Matt Elliott: There are a lot of nerds around here.
- 2:23Matt Elliott: I guess that is true, but just in terms of otherwise, it's mostly bourbon and horses.
- 2:29Alex Perkins: There you go, there you go, all right.
- 2:31Alex Perkins: Well, so we're all here today, so we're going to do an episode that's basically around building a home lab, but it's a hybrid home lab, if you will.
- 2:42Alex Perkins: Right.
- 2:42Alex Perkins: Everybody knows that cloud has taken over a lot of things.
- 2:46Alex Perkins: People aren't just building just basic home labs anymore.
- 2:52Alex Perkins: A lot of people are kind of stretching their home labs between their house and having some kind of presence in one of the public clouds or multiple public clouds, and it can be a mess, right to get everything kind of connected and figure out exactly how you want to have that portability and everything between here.
- 3:07Alex Perkins: And Matt is actually working on a project that he's been doing for a while, so we wanted him to come on and kind of talk about some of the struggles that he's had, some of the decisions he's made, some of the decisions he hasn't made, and it's still, as Matt will tell you, it's still very much a work in progress, right, but you got it pretty fleshed out so far.
- 3:29Alex Perkins: Do you want to just real quick, I guess, talk to us about what you're building and what it's for?
- 3:35Matt Elliott: Sure, it's funny, I was going back and looking at some things I wrote back in 2018.
- 3:39Matt Elliott: And around that time I was thinking about the idea of building some sort of hybrid home lab.
- 3:45Matt Elliott: You know, I'm sure we all know lots of people who have just massive racks of equipment in their basement.
- 3:50Matt Elliott: You know, and I never really went full in, I always just had, you know, a few computers sitting around that would run things on.
- 3:58Matt Elliott: But working in data centers with real labs and you know, almost every job I'm in there's a lot of space in the data center, there's place to play and build things.
- 4:09Matt Elliott: And so I was like I'm going to run a small infrastructure, connect it up with the VPN and be able to kind of burst to somewhere else if it's just work, or then maybe the cloud.
- 4:17Matt Elliott: Again, this was in 2018, so I hadn't really fleshed that out, but even back then I kind of had this idea.
- 4:22Matt Elliott: It was something that I wanted to be able to have a small footprint locally.
- 4:26Matt Elliott: That was somewhat self-contained, but as I needed to do more, I had a way to burst out to those resources, just like people talk about Cloudburst today, but on a smaller scale and just using simple technology.
- 4:37Matt Elliott: So that idea had been around for a while and I've been wanting to test some things out.
- 4:42Matt Elliott: My one trusty server, I think the motherboard died.
- 4:46Matt Elliott: It finally kicked the bucket and I sat around for a few months not doing anything and thinking, oh, I'll just fix this whenever I didn't know if the power supply died or what.
- 4:55Matt Elliott: And eventually I diagnosed it and I have a gaming PC as well, and so I just sort of run some containers on there and quickly got to the point where I was like the right way to do this, I need something that's reliable.
- 5:06Matt Elliott: Other people use this computer.
- 5:08Matt Elliott: So I went online and found a couple inexpensive components that were on sale at the time, just something that could essentially be a few Linux servers that could essentially just run containers.
- 5:23Matt Elliott: I don't need anything fancy, not running VMs, just Docker containers or Podman containers running on Linux hosts with some very basic configuration and just keeping things essentially like stateless containers, store all the config somewhere that is backed up and replicated.
- 5:39Matt Elliott: And that was just the general idea that I had.
- 5:42Matt Elliott: I just, you see, this idea repeated a lot, you know through Kubernetes, and you know people build giant solutions using this model and I was like I want to build, kind of build a home lab to do this, but I want to start by automating it from the very beginning.
- 5:56Matt Elliott: Right, build out everything with Ansible or some scripts or whatever, because I had already rebuilt this lab many times in the past, right over the years, and I did it different every time.
- 6:07Matt Elliott: And there's other frameworks out there.
- 6:09Matt Elliott: I'd even used some of these other popular home lab frameworks, but they're definitely built for the masses and I wanted something that was a little bit geekier, a little bit more flexible than what was out there, and I also wanted to just learn some new things.
- 6:22Matt Elliott: So there's a couple of technologies out there.
- 6:24Matt Elliott: I'd use Docker forever, but I wanted to learn Podman and I wanted to learn about doing it in a more secure way, running containers rootless instead of as a root user, things like that.
- 6:35Matt Elliott: I just wanted to explore some of these ideas as well.
- 6:37Matt Elliott: And then, obviously, being able to, just like I said before, have a small infrastructure in my home and then deploy essentially to the cloud, free tiers.
- 6:47Matt Elliott: That's where I'm starting out, just doing free tier deployments and connecting it all up with Tailscale for networking, all automated, everything comes up and connects once it spins up in the cloud, and then that's kind of where I'm at today, basically with built up a lot of automation, either Ansible and Terraform.
- 7:05Matt Elliott: A few other things I've only really experimented with today GCP and Oracle Cloud.
- 7:11Matt Elliott: The other all have their own free tiers that I'll kind of move into soon.
- 7:15Matt Elliott: But that was enough to kind of get started and the idea is to open sources at least and share what I've built so far so other people can tinker with it and try it.
- 7:25Tim McConnaughy: Yeah, so actually real quick, that's a good.
- 7:28Tim McConnaughy: So like, say I was going to, because I think I'm following you but there's definitely some devil in the details that I'm missing.
- 7:35Tim McConnaughy: So say I wanted to do what you're doing right.
- 7:38Tim McConnaughy: First I have to source, like you know, I guess just a box that I can run Linux on.
- 7:44Tim McConnaughy: So you're talking like just going to eBay or something and just buying a workstation or something, not like a huge rack server or anything right, just something not like a Nook, or maybe a Nook if they still sell.
- 7:56Tim McConnaughy: I don't know if they still sell Nooks, actually they had discontinued them.
- 8:00Alex Perkins: Is that what we're talking about?
- 8:01Alex Perkins: Yeah, not new ones.
- 8:02Alex Perkins: I don't think.
- 8:05Matt Elliott: Yeah, so there's a couple different ways to do it and it really what it comes down to kind of is is three is the magic number.
- 8:10Matt Elliott: So a lot of these tools that I run, uh, or they're running in my lab, um, they run in a clustered manner and they form quorum and so there needs to be an odd number.
- 8:19Matt Elliott: So three is the smallest odd number you can start with.
- 8:21Matt Elliott: That can be threes.
- 8:23Matt Elliott: That could be three little physical boxes.
- 8:25Matt Elliott: Actually, what I have running today two physical boxes and a VM.
- 8:30Matt Elliott: The third physical box is on the way.
- 8:32Matt Elliott: I just kind of spread out the cost over time so it's flexible enough that you can kind of do it however you want.
- 8:38Matt Elliott: When I was prototyping this and just building the initial automation right Like building with Packer to create a VM, like I just got that process down and ran it with very little resources attached to it because I wasn't doing anything else, so I could just kind of run all those locally.
- 8:53Matt Elliott: But then, as I started to layer on more, things grew beyond the bounds of the little machine that I was running these VMs on and I kind of did a V to P basically on those little servers I built.
- 9:05Matt Elliott: I actually just stood up the physical servers and ran all the Ansible playbooks that I'd already written.
- 9:10Matt Elliott: They ran on my VMs, they set them all up and once the physical servers came in, I just ran it all again.
- 9:16Matt Elliott: That was the whole point of doing all this tooling, mainly with Ansible, completely modular A couple of the things there.
- 9:21Matt Elliott: But as soon as I get something in that I need to set up or I need to decommission something, it's very easy to just like.
- 9:27Matt Elliott: I got to stand it up and get an IP and then the automation runs and it configures everything the way I need it to.
- 9:33Alex Perkins: Real quick.
- 9:33Alex Perkins: So you mentioned that you've played with GCP and OCI.
- 9:36Alex Perkins: Is that, I guess, my question?
- 9:39Alex Perkins: Like those aren't the typical ones that people start with, so is there like a reason that you chose them first instead of doing AWS and Azure?
- 9:50Matt Elliott: Yeah, gcp I'm very familiar with and I've just written a lot of automation around it, so it was real comfortable starting there and they have a pretty simple free tier.
- 9:56Matt Elliott: That basically what I'm doing is I'm writing a Terraform to deploy, based on the exact specs that are in the free tier of these clouds, and so GCP, it's like one VM this size, blah, blah, blah, blah, blah, and then there's a bunch of other things that can be run in the free tier.
- 10:11Matt Elliott: So it's not hard to write that Terraform and deploy it and then you just have to script the install of the tail scale and the other stuff once it comes up.
- 10:17Matt Elliott: Oci has a very generous free tier and they run a few VMs and they let you run a few VMs and they even they actually, um, when you can spin one up, because their free tier is, uh, very popular now because they they do give away some resources, they have, um, um, some arm based VMs that you can run, uh, as well.
- 10:37Matt Elliott: So you can run Intel and arm VMs and OCI and I thought that would be kind of cool to tinker with.
- 10:41Matt Elliott: And so the only reason I hadn't moved into the other ones yet is it is a time investment to write Terraform to deploy everything.
- 10:50Matt Elliott: Amazon and Azure's free tiers are a little bit less useful not useless, but just not as pertinent to the stuff I was doing to start out with.
- 11:01Matt Elliott: But I would like to have something running in all of them, right, because there's.
- 11:06Matt Elliott: Even if there's not much there, there's.
- 11:08Matt Elliott: You can run some monitoring.
- 11:09Matt Elliott: You could run, you know, little projects here and there and also the way that I have it set up, you're going to have routed connectivity into all these clouds.
- 11:18Matt Elliott: So if you don't, if you need to move past the free tier and you want to pay for a service, you know, just maybe not pay a lot, but you could go and then consume those various different cloud services, whether that be some sort of new AI thing or just you know, the standard cloud services that we all know and love.
- 11:34Matt Elliott: But instead of, you know, going through over a public IP, we've built out this network with Tailscale and so everything's private and it's also very easy to join that Tailnet from like a client PC.
- 11:47Matt Elliott: You just install Tailscale there as well and then you're connected to your hybrid home lab.
- 11:51Alex Perkins: Okay, I guess.
- 11:52Alex Perkins: So another quick one before we move on to some of the individual components.
- 11:57Alex Perkins: What exactly are you using it for Like?
- 11:59Alex Perkins: Is this just for learning?
- 12:00Alex Perkins: Is it for like specific purposes, like?
- 12:03Alex Perkins: What exactly can?
- 12:04Alex Perkins: Why are you using this for?
- 12:06Alex Perkins: And what could other people, I guess, use a solution like this for as well?
- 12:09Matt Elliott: I mean we, as we've gone through the certification process over the years and learn technologies.
- 12:13Matt Elliott: There's always a work reason for a lab, or the typically is right.
- 12:17Matt Elliott: We want to do network labbing and stuff, and so now we could run a lot of those things in containers and we could run those in a lab like this if we wanted to.
- 12:24Matt Elliott: There's Dockerized versions of all kinds of different network OSs.
- 12:28Matt Elliott: So just in terms of network engineering, having a platform that you can just spin up some containers on is cool.
- 12:33Matt Elliott: It's useful.
- 12:34Matt Elliott: You can kind of just do what you would normally be doing for work.
- 12:38Matt Elliott: What I'm using it for is to do a lot of learning.
- 12:41Matt Elliott: Right, it does have.
- 12:43Matt Elliott: I use it for some professional things and starting with some home automation.
- 12:47Matt Elliott: So I have like home assistant running in my lab, which is not really related to technology, but I wanted to learn it and it's easy to spin up there.
- 12:53Matt Elliott: So, but most of the things I'm running are the things that you hear talked about in IT all the time.
- 12:59Matt Elliott: Right, I'm running a few different data services, like Redis and Postgres are there, because everything uses one of those two things.
- 13:06Matt Elliott: I'm running some network monitoring like LibreNMS and Prometheus, and some logging solutions, and so it's sort of that basic IT infrastructure stack.
- 13:16Matt Elliott: I'm using one password for all my secrets management.
- 13:20Matt Elliott: That's not really something that's a.
- 13:23Matt Elliott: SaaS service.
- 13:24Matt Elliott: Right, I chose that just because I already had it, so you could use something else.
- 13:30Matt Elliott: You could use Vault, but I wanted this reliable container platform to run whatever I needed.
- 13:35Matt Elliott: But I've been focusing on learning a lot of the different AI and LLM tools out there.
- 13:40Matt Elliott: I mentioned I have a gaming PC with a GPU in it so I can run some small models there.
- 13:46Matt Elliott: And all of these new AI tools whether it's just a chat interface or it's a RAG solution or anything along those lines it's all released in a container format.
- 13:57Matt Elliott: So I wanted to be able to spin those up, because it's the wild west right now and there's new things coming out all the time, so I want to be able to try stuff out there the quickest way right there's some cool like diagramming things and stuff you can self-host, right.
- 14:10Matt Elliott: So I mean, as engineers, we're having to create diagrams a lot and we've used all these different tools and there's some great self-hosted options there as well.
- 14:18Matt Elliott: Um, rss readers you can self-host.
- 14:19Matt Elliott: I'm paying for an rss reader now I'm gonna self-host one.
- 14:21Matt Elliott: I'm paying for an RSS reader now I'm going to self-host one.
- 14:24Matt Elliott: There's even a tool somebody wrote that will take your RSS feeds and put them in an email and email them to you, which I pay a service to do that for me today.
- 14:32Matt Elliott: You know there's a huge community out there that's building all kinds of things you can self-host.
- 14:37Matt Elliott: So the imagination is almost, you know the limit.
- 14:40Matt Elliott: You can write your own code and package it in a container and run it too.
- 14:43Matt Elliott: I mean.
- 14:44Matt Elliott: So it's just real flexible.
- 14:46Matt Elliott: And you know, like I said, just a lot of the typical IT use cases learning, ai and LLMs, and then just some hobbyist things, and there's the sky's the limit, right?
- 14:57Matt Elliott: I mean there's so much more you could do.
- 14:59Alex Perkins: Okay, that makes sense.
- 15:00Alex Perkins: So let's pivot into some of the tooling.
- 15:04Alex Perkins: I think one of the things I wanted to bring up was, you know you mentioned all of this is kind of set up to be automated.
- 15:09Alex Perkins: So let's go through some of the like the IAC tooling I know you mentioned, like Terraform Enhanceable, but are you writing your own scripts, Like, were there any challenges with getting this set up?
- 15:19Alex Perkins: Basically, what are, what are the tools you're using for IAC and I guess what are they used for in each part of your setup?
- 15:27Matt Elliott: I started out by kind of looking at what other people had done and looking at different GitRub rebos that are out there Not doing exactly what I needed to do, but I was certainly interested in all of the Hashi tool chain.
- 15:40Matt Elliott: Right, I know Terraform well so I knew I was going to use that.
- 15:43Matt Elliott: And so they have also a container scheduler, nomad, and they have a service delivery tool called Console.
- 15:48Matt Elliott: Those two things work very closely together, right?
- 15:51Matt Elliott: I mean those would sort of be the replacement for Kubernetes in this solution.
- 15:56Matt Elliott: So instead of using Kubernetes for container scheduling and service delivery, that's Nomad and Console, and they do some other things as well.
- 16:02Matt Elliott: But really the bulk of what I've written and the bulk of the automation is Ansible and Terraform.
- 16:10Matt Elliott: Ansible I've used for a long time.
- 16:12Matt Elliott: It's really well supported to do just about anything right and its strength is things that you would do on the CLI.
- 16:20Matt Elliott: Typically, from what I've found, getting on a Linux server and doing some configuration, ansible can handle that really really well.
- 16:28Matt Elliott: And so that builds out and installs all the dependencies that in my lab.
- 16:33Matt Elliott: It installs Node-Added, installs console, it configures those, it installs Tailscale.
- 16:38Matt Elliott: So basically Ansible stands up everything after the base OS is installed.
- 16:44Matt Elliott: Once that's set up, terraform is used for more of the API-driven work deploying to the different cloud providers.
- 16:50Matt Elliott: We're more of the API driven work deploying to the different cloud providers.
- 16:53Matt Elliott: It can you know, since we're using a lot of things in the HashiCorp ecosystem right.
- 16:57Matt Elliott: Terraform understands Nomad and console really well.
- 17:00Matt Elliott: It can easily deploy jobs to Nomad.
- 17:02Matt Elliott: It knows exactly what to do.
- 17:04Matt Elliott: It's just a few lines.
- 17:05Matt Elliott: So those are the main components that I'm using there.
- 17:08Matt Elliott: I mean, there's some Python in there, there's some Bash.
- 17:18Matt Elliott: As I was building VMs, I wrote some PowerShell and I took some examples.
- 17:19Matt Elliott: I took some inspiration from people who had done this work.
- 17:20Matt Elliott: It was a little bit dated and needed to be updated.
- 17:22Matt Elliott: So I got to work, sort of taking a few different examples and getting them working in that situation, and then I also brought in what I refer to, as you know, my super genius via SaaS.
- 17:32Matt Elliott: I subscribe to Cloud AI and you know OpenAI would work as well.
- 17:37Matt Elliott: I just started using Cloud and I found it worked really well, so I subscribed there and that's basically my assistant.
- 17:43Matt Elliott: Like whenever I get stuck or I don't understand what to do or there's a weird message or I need to do something really strange and answerable.
- 17:51Matt Elliott: Then I go ask the super genius and it usually gets it right and not always.
- 17:56Matt Elliott: And so sometimes there's some back and forth and some troubleshooting.
- 17:59Matt Elliott: But boy is it good at troubleshooting and sort of what we might call test driven development.
- 18:05Matt Elliott: I guess you know you can kind of say I want to do exactly this and it'll, it'll start working at that, and you get some results back and you say these aren't exactly what I'm looking for.
- 18:14Matt Elliott: I can take that and fix it.
- 18:17Matt Elliott: So I have an assistant that helps me whenever I get stuck, and that's why I think I was able to get this actually somewhere close to a finish line.
- 18:24Matt Elliott: I think if I was doing this completely on my own I would have gotten stuck and kind of gotten demoralized, or it would have taken me months and months longer.
- 18:32Matt Elliott: I mean getting started.
- 18:34Matt Elliott: The initial work that I did in the first couple of weeks, I know on my own would have taken me a few months to do.
- 18:40Matt Elliott: So it's been an awesome enabler.
- 18:43Tim McConnaughy: Yeah, can I?
- 18:43Tim McConnaughy: Can I ask real quick because it seems like for this, like you've done a ton of work in and learned obviously a lot in building all of this.
- 18:51Tim McConnaughy: There's Python, there's Ansible, there's Terraform, and that's to say nothing of the apps that you're deploying inside the containers that are doing this.
- 19:00Tim McConnaughy: What is your vision of the reusability?
- 19:04Tim McConnaughy: You want to open source this and have other people how much of a finished product are you thinking of delivering other people like how, how much of a finished product are you thinking of delivering and how much of it is?
- 19:16Tim McConnaughy: You know something that people are going to download and have to to diy it.
- 19:18Tim McConnaughy: Uh, and and there's value in that too right, in diying it.
- 19:21Tim McConnaughy: You've obviously learned a ton doing it.
- 19:23Tim McConnaughy: So, kind of, what's your vision there?
- 19:25Matt Elliott: um more to share what I've learned than like publish something super polished that everybody will consume.
- 19:31Matt Elliott: I think for the technologists this will be something they'd be able to take, much like I took other people's work and just modified it a little bit to work for me.
- 19:41Matt Elliott: I hope that this is like that right.
- 19:44Matt Elliott: I've also put a lot of time into just sort of building out these job specifications that are a lot like a Docker Compose file, but some of them are much more complicated because Nomad does a lot of stuff, and so if you set up all your own infrastructure on your own and just wanted to run Nomad, you'd be able to take the things that I wrote to, be able to deploy these various tools and spin them up there too, so you could take the whole thing and deploy it, and hopefully, once it's sort of maybe at a version one, then it would be very easy to do.
- 20:17Matt Elliott: It'd just be like fill in all the variables that you need, deploy your servers, run your Ansible playbooks, and then the infrastructure would just come up.
- 20:24Matt Elliott: It's not quite there yet, there's just a little bit.
- 20:26Matt Elliott: It's still in a science project phase, but the more I've used it, the more I've improved it and I've definitely broken the whole damn thing a few times and just completely redeployed it, and every time I do that I fix something and I'm getting closer and closer and closer to it, to being something that's actually reliable and works all the time.
- 20:48Matt Elliott: You know, there are occasionally just times where a service stops working and I just restart it.
- 20:52Matt Elliott: I don't mean I could go investigate it.
- 20:54Matt Elliott: There's always things that could go wrong.
- 20:56Matt Elliott: There's, there's always funky little things in there, and a lot of times I'm using software that was just released the night before, sometimes Right when I'm downloading a container.
- 21:04Matt Elliott: So there's weird bugs and stuff that come up.
- 21:07Matt Elliott: And I think if you don't have you, if you're not real comfortable digging in and troubleshooting some of that stuff, then this is going to be a heavy lift.
- 21:14Matt Elliott: But if you've been in technology for a little while and you just want a container platform and there are many of them, right, so this one is very opinionated, you've got your choices.
- 21:24Matt Elliott: But this I'm trying to thread the needle between simplicity and capabilities.
- 21:28Matt Elliott: And Nomad and console are pretty easy to deploy.
- 21:34Matt Elliott: They're like one go binary versus deploying Kubernetes is quite a project on its own, and so not to say that I haven't done some very complex things once I stood those up.
- 21:44Matt Elliott: But I wanted to start simple and sort of layer complexity on top of there, so you could take this and start very simply and do some simple things.
- 21:52Matt Elliott: But, honestly, I'm here and talking to you all because I'm also trying to figure out what to do with this ultimately as well.
- 22:00Matt Elliott: I don't, honestly, totally know.
- 22:02Matt Elliott: I've spent a lot of time working on it to the point where I'm like, well, I should show this to a few people and see if anybody else is interested and would certainly eventually love to have some people collaborate on it as well, or just try it out, kick the tires and tell me what.
- 22:16Chris Miles: Yeah, I think it's, you know you've, you've sent us, I know it's, it's, it's in its infancy stages, Right, and this is definitely from what I can see.
- 22:23Chris Miles: This, this ultimately almost a platform that you're building right.
- 22:27Chris Miles: Building right is going to be for people that want to tinker and want to self-host stuff, and I think that's very cool and I like the extent that you've taken it, and I don't even think we've said this to this point, but you've even given it a name, right, you're calling it Octant.
- 22:41Chris Miles: Is that the name that you've landed on?
- 22:43Matt Elliott: You still said on that that's what I had to come up with, something right.
- 22:48Matt Elliott: And it just took an anagram of some of the component names, right?
- 22:50Matt Elliott: So 1Password, Console, Terraform, Ansible, Nomad and Tailscale, and Octant was the coolest word that came out of all the different combinations.
- 23:01Chris Miles: Yeah, so I guess you've got 1Password Console, terraform, ansible, nomad and Tailscale, which came out to Octant, which is cool.
- 23:08Chris Miles: We'll put some details about this in the show notes Came out to Octant, which is cool.
- 23:12Chris Miles: We'll put some details about this in the show notes.
- 23:14Chris Miles: One thing I want to know about is obviously the tooling that you chose for this particular project, this particular home lab.
- 23:21Chris Miles: I'm sure cost came into a lot of this.
- 23:23Chris Miles: I see you're using a lot of tools where you can at least use a free element to orchestrate a lot of this piece, but what went into some of that decision making, if I think about the audience who's not only listening to this but probably also on this call?
- 23:40Chris Miles: I've been a big zero tier fan for a very long time and I know you had some internal notes about why you went with tail scale versus zero tier.
- 23:49Chris Miles: So what kind of went into the decision making on why to choose one tool over the other, et cetera?
- 23:54Matt Elliott: Some of it was.
- 23:55Matt Elliott: Let's take Podman as an example.
- 23:58Matt Elliott: Everybody knows Docker quite well Most people do.
- 24:00Matt Elliott: I'd heard about Podman, I'd used it a little bit.
- 24:03Matt Elliott: I wanted to learn it and I knew that was a drop-in basically.
- 24:06Matt Elliott: So that didn't seem like a difficult decision.
- 24:08Matt Elliott: I learned something new.
- 24:09Matt Elliott: That didn't seem like a difficult decision.
- 24:10Matt Elliott: I learned something new.
- 24:11Matt Elliott: It's about the same as the other tool.
- 24:12Matt Elliott: If I don't like it, no big deal.
- 24:13Matt Elliott: But I've actually turned out to be quite a big fan of that in particular for a few different reasons.
- 24:18Matt Elliott: But tools like Terraform and Ansible there's muscle memory there for me.
- 24:23Matt Elliott: So that just came down to a matter of taste and I didn't want to.
- 24:29Matt Elliott: You know there's already a lot of tools in play here.
- 24:31Matt Elliott: We've talked about a bunch, and so you run the risk of over tooling sometimes, right?
- 24:38Matt Elliott: So I wanted to make some clear decisions, but not still keep it somewhat limited to this specific scope and not overdo it, and this was sort of the minimum I could come up with to do all the things that I wanted to do.
- 24:50Matt Elliott: You know I'd made some odd decisions.
- 24:53Matt Elliott: I'm using a ton of Hashi products, but not Vault.
- 24:56Matt Elliott: I pay for one password.
- 24:59Matt Elliott: It's got some cool DevOps capabilities.
- 25:01Matt Elliott: It can basically function in place of Vault not completely, but it will basically do all the things I need, and so I'd also struggled to make Vault work in the past and I was like this works, basically do all the things.
- 25:13Chris Miles: I need.
- 25:13Matt Elliott: And so I'd also struggled to make Vault work in the past and I was like, eh, this works, but anybody could take this if they really wanted to cut out the one password stuff and drop in Vault or whatever else, Because in the end it just comes down to like, how are you feeding some secrets into environment variables or into a template or something?
- 25:30Matt Elliott: So it'd be hard to take out Tailscale, It'd be hard to refactor all the Ansible and things like that.
- 25:36Matt Elliott: But there are some like one password could be swapped out If you.
- 25:39Matt Elliott: You know there are a few different ways to do this.
- 25:41Matt Elliott: If you wanted to, you could take out Tailscale and try to do zero tier.
- 25:45Matt Elliott: But I ended up and we should talk about some of the networking stuff that I learned working with Tailscale.
- 25:51Matt Elliott: But it does some amazing things and it's very easy to use and it's using WireGuard in the covers, which is modern and fast and can run in user space.
- 26:00Matt Elliott: Even so, if you've got a locked down laptop, you're not allowed to install a VPN client.
- 26:05Matt Elliott: You can run Tailscale in user space and, nobody's the wiser, you can connect the VPN.
- 26:09Matt Elliott: Are there questions that you have about specific tools?
- 26:13Matt Elliott: I mean, I kind of talked about some of them, but did you have any questions about specific choices that I made there.
- 26:18Alex Perkins: I think, just in the interest of time, let's dig into the tail scale stuff a little bit, like what were some of the networking challenges that you had.
- 26:26Alex Perkins: Right, cause you're I mean you're like we've talked.
- 26:28Alex Perkins: I mean you're like we talked about originally.
- 26:29Alex Perkins: You were connecting your home to like cloud bursting like capabilities, right.
- 26:34Alex Perkins: So, what issues did you run into and how does Tailscale kind of help you solve some of those?
- 26:40Matt Elliott: At a very basic level if you're.
- 26:41Matt Elliott: You know you're installing a client on physical machines or VMs or whatever and they're connecting to this tail net Right and much like zero tier.
- 26:49Matt Elliott: It's like they're all just on one big switch, essentially right.
- 26:52Matt Elliott: They can communicate with each other.
- 26:53Matt Elliott: Tailscale is wonderful, great UI, I mean.
- 26:55Matt Elliott: They even have API.
- 26:57Matt Elliott: I'm using Terraform provider to interact with Tailscale to do some things right To provision machines.
- 27:02Matt Elliott: So there's a lot of great functionality there that I'm not sure exists in zero tier.
- 27:07Matt Elliott: I haven't looked recently here.
- 27:10Matt Elliott: I haven't looked recently.
- 27:11Matt Elliott: I know there's an API but I don't know if there's a Terraform provider and stuff.
- 27:12Matt Elliott: So just standing up the basic Tailnet and connecting machines, it's very easy.
- 27:17Matt Elliott: But I quickly was like well, I don't want to install Tailscale on everything in my home to be able to get to these resources that might be deployed somewhere else and so you can advertise and you can route traffic across Tailscale.
- 27:30Matt Elliott: I think the first thing that I noticed that really kind of sent me for a loop.
- 27:35Matt Elliott: And this is a combination of a platform difference, right, so different behavior.
- 27:39Matt Elliott: On Windows and Linux, when you accept a routing advertisement, it takes presidents over connected routes because the way that Tailscale does.
- 27:57Matt Elliott: They run multiple routing tables, basically, and they do some policy forwarding on Linux.
- 28:02Matt Elliott: And so as I was doing this initial troubleshooting, I was like, why can't I get to my connected networks?
- 28:07Matt Elliott: These should always work right.
- 28:09Matt Elliott: I mean, this is like CCNA day one connected routes, everything else goes from there.
- 28:15Matt Elliott: Well, not Tailscale On Linux when you accept a routing advertisement.
- 28:20Matt Elliott: So the details are sort of in the answerable I wrote.
- 28:23Matt Elliott: But I just had to be very specific about which device in my home network was going to act as a router, which other ones would accept routing advertisements or not.
- 28:33Matt Elliott: And so once I got that figured out, it wasn't that hard.
- 28:36Matt Elliott: But it was like what?
- 28:37Matt Elliott: Like this, it didn't make sense, right, I've also, they've made over a couple.
- 28:42Matt Elliott: There's been at least once where there's a change made that broke things, and they're going to go in and and and re reconfigure the, the options because they I think they patched a vulnerability and they changed away some of the behavior, and that happens.
- 28:56Matt Elliott: But it kind of felt like a little bit of a rug pull.
- 28:58Matt Elliott: Everything was working and then suddenly it wasn't, and so I had to go fix some things there.
- 29:03Matt Elliott: But beyond that, I'm trying to think what else?
- 29:06Matt Elliott: Oh, the other thing that I had to figure, and I'm just basically doing static routing.
- 29:13Matt Elliott: I have just a Ubiquiti router that runs Viata flavor and so I can just configure some static routes there that point to my tailscale router for the cloud networks, whatever they might be.
- 29:27Matt Elliott: Eventually there's BGP speakers in all these places.
- 29:33Matt Elliott: I think I'd eventually like to stand up BGP so that routing is.
- 29:35Matt Elliott: You know, it's all dynamic, but I just have been doing static routing so far.
- 29:40Matt Elliott: But so the other piece, the other big piece I had to figure out, was essentially had to enable TCP MSS clamping as things route onto KSCL because there's a VPN there, right.
- 29:50Matt Elliott: Things route onto a scale because there's a VPN there, right you, it's any.
- 29:56Matt Elliott: I think I set it at like 1380 or that was a recommendation I found, and once I got that in place, everything works.
- 30:00Matt Elliott: Everything on my home network can get to anything in the cloud that's running that's connected to tail scale automatically.
- 30:09Matt Elliott: It just works.
- 30:10Matt Elliott: We can monitor everything.
- 30:11Matt Elliott: So that felt like a big win, honestly.
- 30:14Matt Elliott: Like once I finally got that all working, I was like, okay, this is cool and it's free.
- 30:19Matt Elliott: And like that's when the light really came on that I was like man, you know this is all free, but, like, if I ever want to spin up services anywhere and use them for a slow while it's so easy to do you can consume them right from home and then you know.
- 30:32Matt Elliott: Honestly, like I'm just interested to see, I want to know what other ideas people have for this right.
- 30:38Alex Perkins: Because I'm sure there's things that I haven't thought of.
- 30:39Alex Perkins: What are you doing for like segmentation, Like you know, how do you set up like ACLs or stuff like that?
- 30:45Matt Elliott: So right now, since nothing is really exposed publicly, I haven't worried about it too much.
- 30:52Matt Elliott: Now within Tailscale there is an ACL capability and you can sort of like you can, you can tag things and create firewall rules based on tags.
- 31:01Matt Elliott: So you could certainly, let's say, if I wanted to give you all access to my home lab, right, I could invite you to my tail net and I could just configure the ACL there, that's, so you could only get to port 80 and 443 on my ingress and not get to anything else, and then that would generally work.
- 31:17Matt Elliott: And I'm probably going to start doing that.
- 31:19Matt Elliott: So with a few friends and hosting things locally.
- 31:22Matt Elliott: But otherwise haven't focused a ton on security internally, just because nothing's exposed.
- 31:29Matt Elliott: But there's certainly that's a place where things could get better Internally, just because nothing's exposed, but there's certainly that's a place where things could get better.
- 31:34Matt Elliott: Tailscale is really capable there too.
- 31:34Matt Elliott: I just haven't really dug in too far beyond just the basic sort of ACL and firewall and capabilities that they have.
- 31:42Alex Perkins: OK, that makes sense.
- 31:43Alex Perkins: So I'm going to bring this to basically the last, last point that I'll let you talk about before we wrap up.
- 31:50Alex Perkins: What, I guess what have you learned along the way?
- 31:54Alex Perkins: What's been difficult about doing this?
- 31:56Alex Perkins: What are some things that maybe you would give advice to other people that are just trying to start on this Stuff like that?
- 32:03Alex Perkins: What can you tell people about setting this up and some of the challenges and difficulties you've faced along the ways?
- 32:08Matt Elliott: Yeah, anytime you're starting a project like this, especially if you're writing anything like code or automation in some DSM, use Git from the very beginning right and check in things frequently, because it really is like a time machine right.
- 32:22Matt Elliott: The minute you screw something up, you can just rewind it in time and it can even apply as like I'm writing documents, I'm writing them in Markdown and I'm putting them in Git and I can see how they evolve over time and stuff.
- 32:35Matt Elliott: So that's indispensable.
- 32:38Matt Elliott: I said I you know I leverage the AI quite a bit.
- 32:41Matt Elliott: Like I didn't just use it to write code.
- 32:43Matt Elliott: I would sit down and be like what do you think about this idea?
- 32:46Matt Elliott: Break it down for me.
- 32:47Matt Elliott: What are the pros, what are the cons?
- 32:48Matt Elliott: Like what haven't I thought of here?
- 32:53Matt Elliott: Okay, that looks good.
- 32:54Matt Elliott: Generate the pseudo code for that.
- 32:55Matt Elliott: What would that kind of look like?
- 32:57Matt Elliott: And I just kind of used it as like a really smart friend to bounce ideas off of, and I think that allowed me to go from like an idea to a working solution in like an hour, a lot of the time, versus for me it would take hours or days or weeks to come up with some of the stuff that it, that it spit out.
- 33:14Matt Elliott: So use that force multiplier.
- 33:17Matt Elliott: You know whether it's it's free or or you're paying for something, like Claude, like if you're writing code or you're doing technical work.
- 33:25Matt Elliott: Unless you yourself are a genius and you have the whole internet's knowledge in your brain, you can go Google errors or you can just paste them into an LLM along with the code and say why did this error happen?
- 33:37Matt Elliott: And nine times out of 10, it's like you screwed this up.
- 33:40Matt Elliott: Right here you fix this.
- 33:42Matt Elliott: Here's the fixed code.
- 33:43Matt Elliott: So those two things allowed me to get this to where.
- 33:48Matt Elliott: It is much faster than I would have been able to do it typically.
- 33:51Matt Elliott: I mean, I have a degree in computer science.
- 33:53Matt Elliott: I don't write a lot of code.
- 33:54Matt Elliott: I haven't since I was in college really.
- 33:56Matt Elliott: I've been in technology and infrastructure and I understand it and I can read it and I've written plenty of code.
- 34:03Matt Elliott: But actually sitting down and writing a ton of code or a ton of Ansible or a ton of Terraform is hard for anybody.
- 34:09Matt Elliott: And if you don't do it all day, every day, it's just slow going.
- 34:12Matt Elliott: And when you have the super genius that can spit it out for you and it's, I find, somewhere between 50 and 100% correct.
- 34:20Matt Elliott: It varies, right, but it either gets me about halfway there or all of the way there.
- 34:24Matt Elliott: Otherwise it's just been.
- 34:26Matt Elliott: It's a fun opportunity to learn something new, and so that kind of motivated me.
- 34:30Matt Elliott: I don't know why I chose now to do this.
- 34:32Matt Elliott: I think it was just a combination of all those things I mentioned.
- 34:36Matt Elliott: Like HomeLab died, I wanted to rebuild it, I wanted to learn these things.
- 34:39Matt Elliott: But going through this process, learning a bunch of cool stuff, solving some hard problems that's the fun part about these jobs.
- 34:46Matt Elliott: I like solving hard problems, so like pulling apart Tailscale and figuring out how it worked and getting it to work, and like route between home and cloud Like.
- 34:53Matt Elliott: For me that's that's satisfying work, it's fun to do, and when it works it's like well, that's cool.
- 34:58Matt Elliott: On to the next thing.
- 34:59Matt Elliott: And you know, all this is captured now in a GitHub repo and so at least worst case scenario, it's like a time capsule of things Matt learned over those last few months that somebody maybe can go back and look at later and use.
- 35:11Matt Elliott: That's all I can think of right now, honestly.
- 35:13Alex Perkins: Yeah, that was great.
- 35:14Alex Perkins: Go ahead Tim.
- 35:15Tim McConnaughy: Yeah, the more I hear about what you've done and think about the GitHub and everything, the more I think this would actually work really well as a workbook, like a lab book Like here's exercise one we're going to build the containers.
- 35:29Tim McConnaughy: Here's exercise two we're going to build the containers.
- 35:31Tim McConnaughy: Here's exercise two we're going to install the apps.
- 35:32Tim McConnaughy: Here's exercise three we're going to build the Ansible scripts.
- 35:37Tim McConnaughy: It's like Kubernetes the hard way.
- 35:39Tim McConnaughy: Yeah, exactly that's what I'm hearing, honestly, and I don't know if you've considered that it also would make it infinitely more consumable to the people, I think, to have a of a map to go.
- 35:54Tim McConnaughy: So I don't know if that's something you're interested in, but it definitely, I think, and it would teach a lot of people a lot of things along the way, the same way that you learned a lot of things along the way.
- 36:04Tim McConnaughy: So that's my feedback to you.
- 36:07Matt Elliott: It's a great idea.
- 36:08Chris Miles: Yeah, I think, and just to kind of make sure that we're maintaining relevance here, right.
- 36:13Chris Miles: So on this podcast, we obviously talk a lot about cloud.
- 36:16Chris Miles: So I guess, from your perspective, in what you've built so far, you know, in which I don't think we've even touched on this yet, but we will put, at least whenever this comes out, we'll put at least everything that Matt has up to date into the show notes where you can find more, where you can look for when this will be posted out there.
- 36:34Chris Miles: But I guess, staying on the topic of clouds, obviously you've built something that is extensible, not only from on-prem into the cloud, I guess, and in other words, you could also just start this directly in the cloud without ever having, you know, on-prem presence, and you could extend it and on-prem in the other direction, right?
- 36:52Chris Miles: So what do you think are the key benefits to doing this?
- 36:56Chris Miles: From a home lab perspective, for someone that wants to build this, like, what is the overall benefit that you've seen, having this extensible home lab that can pretty much go anywhere?
- 37:10Matt Elliott: There's flexibility, right.
- 37:12Matt Elliott: I mean, you know, I've got I'm going to end up with like three small physical servers, little boxes I bought off of AliExpress that basically have laptop components in a case with a bunch of memory and a CPU and some fast storage, but otherwise they don't do much, right.
- 37:28Matt Elliott: But then, you know, I've thought about ways to use Raspberry Pis to do some certain things and you can scale that in a bunch of different directions, right.
- 37:35Matt Elliott: So I mean, we've got this automation and essentially, as long as there's something Linux that you can run Ansible playbooks against, or there's an API to consume, right, there's something in this tool set that will allow you to, like, build, you know, a place to run your workloads.
- 37:50Matt Elliott: I mean, when it comes down to it, like all of the things that all of us are doing, in the end the goal is to run a workload somewhere, right, get something done, and so I have a flexible platform that allows me to run workloads anywhere, almost right, just.
- 38:04Matt Elliott: And I love the idea of you know, just, I deploy something with Terraform into the cloud and then, as soon as it comes up, it's just connected.
- 38:11Matt Elliott: I don't like, I didn't, I wouldn't even have to log into the cloud console after the, you know, after it's built, and so I like flexibility there, I like being in.
- 38:23Matt Elliott: With Terraform, it's easy to bring up and bring things down as needed, like if I'm not doing anything, why leave it running If it's very easy to spin back up and rebuild, like so there's, you can mix and match to do whatever you want to do.
- 38:33Matt Elliott: And that's not for everybody.
- 38:35Matt Elliott: Some people just want this is you know?
- 38:37Matt Elliott: Here's the recipe, here's your cookbook.
- 38:38Matt Elliott: Go do it.
- 38:39Matt Elliott: This is a little bit more.
- 38:41Matt Elliott: Choose your own adventure as well, like you can kind of pick and choose what you want to do.
- 38:45Matt Elliott: So that's, that's, that's what excites me All right, awesome, yeah.
- 38:49Alex Perkins: So I mean, I think unfortunately we do have to wrap it up here.
- 38:53Alex Perkins: But man, matt, there's so much stuff that we did not get to right.
- 38:57Alex Perkins: We didn't even talk about storage dive.
- 38:58Alex Perkins: But I think this was a great introduction to at least get the idea of what you're doing out there and kind of get get people interested in it.
- 39:21Tim McConnaughy: I'd love to see a demo of it too.
- 39:22Tim McConnaughy: I'd love to see an action.
- 39:24Tim McConnaughy: I mean, I can, I can in my head, visualize it, but I think seeing it on the screen would be really awesome to to really give some context and understanding around what you built.
- 39:33Tim McConnaughy: Yeah, for sure, and Matt's given us a lot of good diagrams and things like that as well.
- 39:38Chris Miles: Yeah, we'll get that in there.
- 39:39Chris Miles: Yeah, assuming Matt allows us to put them in the show notes, we'll be happy to throw those in there.
- 39:44Matt Elliott: At least some of them are a little silly.
- 39:46Matt Elliott: I was messing around on some of the diagrams.
- 39:47Matt Elliott: It'd be cleaned up a little bit.
- 39:49Matt Elliott: But yeah, those are in there for you.
- 39:51Matt Elliott: You just got to get an idea and sort of a forcing function for me.
- 39:55Matt Elliott: I've been working on this, but I want to come talk about.
- 39:58Matt Elliott: I want to get some of these diagrams out.
- 40:00Matt Elliott: I want to just see what people think about this.
- 40:01Matt Elliott: But I'm also like I got to fix this one other thing.
- 40:05Matt Elliott: I got to deploy this one other service.
- 40:06Matt Elliott: You know there's always something that's like keeping me from coming and doing some of the toil and documentation and stuff.
- 40:12Matt Elliott: But getting on here and seeing you all and catching up and talking about this kind of got my butt in gear to do that and I would love to come back and do a walkthrough and demo.
- 40:22Matt Elliott: I think that would be awesome and then we could look at each of the components.
- 40:25Matt Elliott: Storage is one of those things that could be anything.
- 40:28Matt Elliott: I'm using Ceph but there's other options, but we can look at that and nomad and console have a nice easy to use ui and and then we can look at some of the other tools as well.
- 40:37Matt Elliott: I've built some cool network maps monitoring everything you know, all the network nerd stuff that we do.
- 40:42Matt Elliott: So awesome.
- 40:43Alex Perkins: Well, yeah, I mean I agree with all that.
- 40:45Alex Perkins: So let's, yeah, we'll set something up to get a demo going and and some kind of part two, cool, um, but we really appreciate you coming on, matt.
- 40:53Alex Perkins: This was great.
- 40:55Alex Perkins: I'm going to go ahead and wrap it up here.
- 40:57Alex Perkins: So, for the audience, if you liked what you saw today, please go ahead and share it around.
- 41:03Alex Perkins: Repost it everywhere on your social media TikTok, as Chris always likes to remind me that we have.
- 41:09Alex Perkins: Just share it around and give us a good rating and likes everywhere.
- 41:15Alex Perkins: So thanks for tuning in and we will see you guys next time.
- 41:18Alex Perkins: Hi everyone, it's Alex and this has been the cables to clouds podcast.
- 41:25Alex Perkins: Thanks for tuning in today.
- 41:26Alex Perkins: If you enjoyed our show, please subscribe to us and your favorite pod catcher, as well as subscribe and turn on notifications for our YouTube channel to be notified of all of our new episodes.
- 41:37Alex Perkins: Follow us on socials at Cables to Clouds.
- 41:41Alex Perkins: You can also visit our website for all of the show notes at CablesToCloudscom.
- 41:46Alex Perkins: Thanks again for listening and see you next time.