TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

My self-hosting infrastructure, fully automated

716 点作者 rmbryan超过 3 年前

35 条评论

khuedoan超过 3 年前
Repo owner here, I just created this account, I&#x27;m a long time HN lurker.<p>I was surprised to find this on Hacker News, I wanted to wait until the stable release before posting on HN, but thank you for posting :)<p>This project is still in alpha stage, but please feel free to critique; I&#x27;d appreciate it.<p>Edit 1: After reading some of the comments, I want to clarify a few things:<p>- Because it is currently in the <i>alpha</i> stage, I do not host anything important on it.<p>- This is also my learning environment, I use Kubernetes in my day job.<p>- Yes it is overkill ;)<p>Edit 2: Wording
评论 #30035146 未加载
评论 #30035639 未加载
评论 #30035579 未加载
评论 #30033997 未加载
评论 #30036329 未加载
nyellin超过 3 年前
To everyone saying that Kubernetes is unnecessary, try implementing autoscaling, service discovery, secrets management, and autohealing in a vendor independent way without it.<p>Of course none of that is necessary for a self hosted home lab, but neither is gitops.<p>This is a very nice example of how to set stuff up properly.<p>OP, I would love to see Robusta (<a href="https:&#x2F;&#x2F;robusta.dev" rel="nofollow">https:&#x2F;&#x2F;robusta.dev</a>) as part of this too. It&#x27;s definitely in line with your vision of automating everything, as it let&#x27;s you automate the response to alerts and other events in your cluster. (Disclaimer: I&#x27;m one of the maintainers)
评论 #30035379 未加载
simonw超过 3 年前
This is very cool!<p>Have you considered something like Tailscale so you can securely access it from outside your home? I&#x27;ve been thinking about spinning up my own home server that way, seeing as Tailscale makes it easy to securely access it from my phone when I&#x27;m out and about.
评论 #30032116 未加载
评论 #30035763 未加载
评论 #30032057 未加载
评论 #30031814 未加载
评论 #30035890 未加载
评论 #30031665 未加载
评论 #30031526 未加载
评论 #30035790 未加载
评论 #30033101 未加载
评论 #30031871 未加载
candiddevmike超过 3 年前
I enjoy reading about homelabs that aren&#x27;t using kubernetes or some other scheduler and how they&#x27;re doing it&#x2F;what the full stack looks like. This is just another &quot;how I installed kubernetes&quot; thing only without any real scale behind it. There are other ways to deploy and run things, and it takes people toying around with alternatives for something unique to spring up.
评论 #30035857 未加载
评论 #30033963 未加载
评论 #30033066 未加载
评论 #30033010 未加载
评论 #30045566 未加载
评论 #30032810 未加载
评论 #30035578 未加载
评论 #30036596 未加载
extinctpotato超过 3 年前
This is a very good example of how you can save yourself the mental hurdle of remembering how to configure something etc.<p>I can only suspect how much time, trial and error this must&#x27;ve taken. This is my main issue with IaC. The concept really lends itself to any kind of modern infra, however I&#x27;m really put off by the sheer amount of time it takes me to whip out a bunch of Ansible playbooks and helper scripts, and on top of that make sure that all of them are idempotent.<p>Maybe I&#x27;m doing something wrong and this should be easy?
评论 #30033605 未加载
评论 #30032163 未加载
评论 #30032180 未加载
评论 #30032938 未加载
评论 #30033473 未加载
erulabs超过 3 年前
Awesome! hajimari is neat, haven&#x27;t seen that before. I&#x27;m building a startup that&#x27;s trying to put a good chunk of this in a box for folks to buy and plug-n-play self-hosting (as much as that is possible). Since you&#x27;re running k3s already, you might checkout our templates at <a href="https:&#x2F;&#x2F;kubesail.com&#x2F;templates" rel="nofollow">https:&#x2F;&#x2F;kubesail.com&#x2F;templates</a> for more home-hosting apps :)
评论 #30033782 未加载
goodpoint超过 3 年前
Deploying services is 1% of the work. Maintaining them, fixing bugs and bottlenecks is the real works.<p>And you cannot do when you deploy tools worth millions of lines of code.<p>Complexity matters. Those popular products make sense only if you have a 20 engineers is your team or you don&#x27;t care about reliability.
评论 #30032905 未加载
评论 #30036511 未加载
616c超过 3 年前
Pretty sweet. I have been called a devops person by others around me (and I am hesitant to proudly identify as one) because this homelab is more impressive and modular than a lot of stuff I have seen colleagues and I put together for professional stuff.<p>Well done. I was not aware of the Cloudflare solution. Is this something someone can use, _with_ their Cloudflare Access offering, for personal dev&#x2F;lab envs without breaking the bank?
评论 #30032016 未加载
评论 #30031952 未加载
qbasic_forever超过 3 年前
Very cool, this is like a perfect little kubernetes development environment. The combo of tekton + gitea + k8s is really nice and just a shame it takes bodging all the lego pieces together manually right now. I wish there were a one click exe install like Docker for Desktop that gave people an entire environment like this on their desktop. Like a little private github but so much more powerful.<p>If you&#x27;re looking for some nice stuff to develop on an environment like this, check out VS Code and Google&#x27;s cloud code addon: <a href="https:&#x2F;&#x2F;marketplace.visualstudio.com&#x2F;items?itemName=GoogleCloudTools.cloudcode" rel="nofollow">https:&#x2F;&#x2F;marketplace.visualstudio.com&#x2F;items?itemName=GoogleCl...</a> It&#x27;s not totally tied to their GCE cloud offerings and is actually just a VS Code integration of their Skaffold tool (a fantastic inner dev loop tool for k8s). It works great with minikube or any other k8s cluster, presumably this one too. You can very quickly get up and running with code in your IDE now running and debugging on your k8s environment.
评论 #30034123 未加载
surfsvammel超过 3 年前
How much energy does this consume?<p>I have done some home lab going on over the years, and find that trying to do more on less W has been the most fun.
评论 #30035366 未加载
comprev超过 3 年前
I use something very bare bones as the host OS, say Alpine, and install Docker with a handful of other tools for basic sysadmin tasks (curl, etc.).<p>For a single server deployment docker-compose is very useful.
JamesAdir超过 3 年前
For people who self host with like setups or even simpler - how you guarantee network access? where I live internet might be shaky at times, and for that I can&#x27;t access my home setup while away. How do you deal with that?
评论 #30041664 未加载
评论 #30040177 未加载
AdrianoKF超过 3 年前
I recently wanted to give my current RPi4 home server a GitOps makeover, migrating services (Home Assistant, Nextcloud and others) to k3s in the process.<p>What has been an obstacle is the availability of officially maintained Docker images for some of the components I&#x27;ve been wanting to use - afaict neither Argo CD nor Rook have official armv7&#x2F;aarch64 images (though it seems Argo will release one soon).<p>Until then, I&#x27;ll hold off on that pet project until I get my hands on a reasonably priced x86 SFF PC (the ThinkCentre M700 Tiny from TFA looks interesting!).
评论 #30036232 未加载
评论 #30037569 未加载
cyfex超过 3 年前
I always found the hurdle with self-hosting to be maintaining, not the initial setup. Things like upgrading, in order to keep getting security fixes, and verifying everything works after the upgrade, are what has taken the most effort and time in the past for me.<p>This looks like a great setup by the author, but difficult to maintain in the long run without significant time investment.
评论 #30034875 未加载
评论 #30035157 未加载
评论 #30035948 未加载
akkartik超过 3 年前
The question I have whenever I see something like this is what the upgrade process looks like. How much time do you spend per month upgrading dependencies, how many mailing lists you&#x27;re subscribed to, etc. When the log4j thing blew up, how long did it take you to gain confidence that you were no longer impacted?
评论 #30032270 未加载
评论 #30033754 未加载
评论 #30033144 未加载
mikesabbagh超过 3 年前
it amazes me that hacker news run on a single node.<p>All this work is nice and beautiful, the problem will come when you try to update different components.
评论 #30034298 未加载
gigel82超过 3 年前
This needs a companion guide about how to set up the host machine. Which Linux distro to choose, how to set it up &#x2F; harden it, nftables &#x2F; firewall, public key login, etc.<p>If anyone has one handy, I&#x27;d appreciate a link.
评论 #30041209 未加载
评论 #30032549 未加载
评论 #30032508 未加载
评论 #30033692 未加载
gorgoiler超过 3 年前
I wonder how the fan noise is on those M700s. These little Lenovo machines are very pleasant. My only wish with my M93 is that the temperature would stay below 50’C and keep it 100% silent.
ianunruh超过 3 年前
It&#x27;s sad to see so many people that are dismissive of this setup, because they have some preconceived notions about Kubernetes and other tooling that&#x27;s used. What has happened to curiosity? Of course nothing about this is &quot;necessary&quot;, but the fun is in trial and error. In my experience running Kubernetes in my homelab and colo, every issue has been a learning opportunity, and was usually because of my own mistakes.
nodesocket超过 3 年前
What do you use to provision Kubernetes persistent volumes on bare metal? I’m looking at open-ebs (<a href="https:&#x2F;&#x2F;openebs.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;openebs.io&#x2F;</a>).<p>Also, when you bump the image tag in a git commit for a given helm chart, how does that get deployed? Is it automatic, or do you manually run helm upgrade commands?
评论 #30038499 未加载
endofreach超过 3 年前
Now all we need is robots hooked into a Ci&#x2F;CD pipeline that turn on computers and initiate the process. And a few more years to automate computer production, let the computers find bugs &amp; optimize computers, and we have a full circle of life.<p>Good first version, i am excited for the beta!
jaimex2超过 3 年前
I miss LAMP :(
评论 #30035188 未加载
评论 #30035229 未加载
turtlebits超过 3 年前
This is cool, but are you doing this as learning experience? For a homelab it seems severely overkill. I understand it all being self-hosted, but it could be drastically simpler if you adopt a few SaaS products (using free-tier)
评论 #30031848 未加载
评论 #30033009 未加载
评论 #30033311 未加载
评论 #30031876 未加载
评论 #30034451 未加载
whalesalad超过 3 年前
Bravo, nice work! I am certainly going to use this as a model for my personal setup. Right now I have a few different hosts running different hypervisors, but would like to consolidate on kube and an iaas tool.
mrslave超过 3 年前
I&#x27;ve been eyeing off OpenStack for sometime for a similar use case, but I must admit it is an uninformed opinion. What am I missing between the two solutions (OpenStack vs this specific custom solution)?
Lamad123超过 3 年前
I unaccidentally remembered Gilfoyle&#x27;s famed &quot;what do I do?!&quot;
unixhero超过 3 年前
Extremely impressive
divbzero超过 3 年前
I was happy to see that this project describes self-hosting in the fullest sense, from hardware on up.
throwaway894345超过 3 年前
This is great. Would love to see something like this packaged as a “homelab cluster distro”!
quocanh超过 3 年前
I love this!<p>Do you experiment with your tech stack? Swapping things in and out to see which apps are best?
评论 #30033026 未加载
iamgopal超过 3 年前
Is there similar repo for SAAS apps ? Not too fancy, just Django and a db.
ekianjo超过 3 年前
You don&#x27;t need Kubernetes to do self-hosting. Completely overkill.
评论 #30032670 未加载
评论 #30032624 未加载
评论 #30032685 未加载
评论 #30033253 未加载
评论 #30032535 未加载
评论 #30032560 未加载
josephd79超过 3 年前
bookmarked. Really cool.
kstenerud超过 3 年前
This is definitely cool, but it also highlights a huge problem we have with software nowadays.<p>There are 19 stacks in this repository. 19 pieces of software that require their own maintenance, JUST TO RUN YOUR APPLICATIONS! The amount of extra work required just to host the software that views your pictures, plays your videos, and allows chat with people is absolutely insane.<p>I&#x27;m not talking about this particular repo; it&#x27;s just indicative of how complicated things have become that you must do the equivalent of building and maintaining your own operating system just to get even simple things done. And I belive that it&#x27;s unnecessarily complicated (once again, not this repo, but rather the state of affairs in general). We&#x27;re at an inflection point in the industry, and haven&#x27;t come out the other side yet.
评论 #30035054 未加载
评论 #30035302 未加载
评论 #30035161 未加载
评论 #30035480 未加载
评论 #30034865 未加载
评论 #30035135 未加载
评论 #30035164 未加载
评论 #30035526 未加载
walrus01超过 3 年前
my main objection to this is choosing host machines that don&#x27;t meet the criteria of anything like serious server-grade hardware.<p>if this is for a home lab where any one of the services run on it are not actually going to affect you if it goes belly up? or the whole host machine? sure, okay, but that&#x27;s self hosting a home lab, not self-hosting actual infrastructure...<p>clearly the hardware shown in the image is meant to be small, not noisy, and not take up a lot of space, and operate in somebody&#x27;s house.<p>but the people I know who <i>seriously</i> self host all their stuff have it on something like a few old Dell R620 1U servers with 1+1 dual hot swap power supplies, RAID-1 for the operating system boot, RAID-1 or RAID-6 (or something like mdadm raid6) for storage drives (again all hot swap capable), etc.<p>note that I am not talking about a lot of money here, you can buy the hardware I described in the preceding paragraph for $300 on eBay and then add your own choice of SSDs.<p>and not in a house, but in something like a small to medium sized ISP&#x27;s colocation environment, with UPS, generator backed power, etc. also attached to network equipment and a DIA circuit that&#x27;s considerably more serious than a tp-link unmanaged switch attached to a residential internet service.
评论 #30032559 未加载