<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>戒尺的博客</title>
        <link>https://tangly1024.com/</link>
        <description>保持学习于分享，找出事件本质</description>
        <lastBuildDate>Wed, 20 Aug 2025 12:43:38 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>zh-CN</language>
        <copyright>All rights reserved 2025, Jiechic</copyright>
        <item>
            <title><![CDATA[家庭Homelab搭建系列三——Docker与Portainer]]></title>
            <link>https://tangly1024.com/article/homelab-three</link>
            <guid>https://tangly1024.com/article/homelab-three</guid>
            <pubDate>Tue, 19 Aug 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[上篇完成了虚拟化环境的搭建，本期要搭建应用管理环境。docker+portainer]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-254c8294b8738097a5bed71d8ad69c74"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-callout notion-gray_background_co notion-block-254c8294b87380f49724c2f11d3d31e4"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="😀">😀</span></div><div class="notion-callout-text">上篇完成了虚拟化环境的搭建，本期要搭建应用管理环境。docker+portainer</div></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-254c8294b87380739ca4d87bda44e184" data-id="254c8294b87380739ca4d87bda44e184"><span><div id="254c8294b87380739ca4d87bda44e184" class="notion-header-anchor"></div><a class="notion-hash-link" href="#254c8294b87380739ca4d87bda44e184" title="环境情况"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">环境情况</span></span></h2><div class="notion-text notion-block-254c8294b87380208131ff68b19ebe8f">按照上期，我们已经搭建了PVE环境，使用上期的能力，搭建了两个debian环境</div><ul class="notion-list notion-list-disc notion-block-254c8294b87380de9b1cc5ac2c26b6b4"><li>ip 88.100</li></ul><ul class="notion-list notion-list-disc notion-block-254c8294b87380409e70c20bfb47df7f"><li>ip 88.200</li></ul><div class="notion-text notion-block-254c8294b87380018133f5a1b2ffb3c3">接下来，我要使用他们搭建docker 以及portainer的管理集群。</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-254c8294b87380d3976deb1d539cd038" data-id="254c8294b87380d3976deb1d539cd038"><span><div id="254c8294b87380d3976deb1d539cd038" class="notion-header-anchor"></div><a class="notion-hash-link" href="#254c8294b87380d3976deb1d539cd038" title="docker接入"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">docker接入</span></span></h2><div class="notion-text notion-block-254c8294b873802b8ac0d994db20b553">在两个Debian环境中，分别安装docker</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-254c8294b87380c9a94bcb0224969b59" data-id="254c8294b87380c9a94bcb0224969b59"><span><div id="254c8294b87380c9a94bcb0224969b59" class="notion-header-anchor"></div><a class="notion-hash-link" href="#254c8294b87380c9a94bcb0224969b59" title="配置portainer节点"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">配置portainer节点</span></span></h3><div class="notion-text notion-block-254c8294b87380dab50edbb9f047395b">在ip 88.100 下执行</div><div class="notion-text notion-block-254c8294b873806b8e9be812b9d7ec3f">粘贴以下内容</div><div class="notion-text notion-block-254c8294b87380658cbbc5fe508d165a">使用下面脚本进行日常管理</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-254c8294b8738005988dd12a28b5c117" data-id="254c8294b8738005988dd12a28b5c117"><span><div id="254c8294b8738005988dd12a28b5c117" class="notion-header-anchor"></div><a class="notion-hash-link" href="#254c8294b8738005988dd12a28b5c117" title="配置portainer-agent节点"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">配置portainer-agent节点</span></span></h2><div class="notion-text notion-block-254c8294b873805cb743cb7fba77d62b">在 ip 88.200 下执行</div><div class="notion-text notion-block-254c8294b87380a883d5ceaccd80807d">粘贴一下内容</div><div class="notion-text notion-block-254c8294b873806ea075f58605727366">使用相同的命令启动服务器。</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-254c8294b87380a18dbed8db1f565a67" data-id="254c8294b87380a18dbed8db1f565a67"><span><div id="254c8294b87380a18dbed8db1f565a67" class="notion-header-anchor"></div><a class="notion-hash-link" href="#254c8294b87380a18dbed8db1f565a67" title="初始化Portainer"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">初始化Portainer</span></span></h2><ul class="notion-list notion-list-disc notion-block-255c8294b87380709615d098bdb86563"><li><b>访问 Portainer Web 界面</b></li><ul class="notion-list notion-list-disc notion-block-255c8294b87380709615d098bdb86563"><div class="notion-text notion-block-255c8294b8738037b546d7c7c107cd12">在您的浏览器中访问 <code class="notion-inline-code">https://10.10.88.100:9443</code>。
如果浏览器提示证书不安全，请忽略并继续访问。</div></ul></ul><ul class="notion-list notion-list-disc notion-block-255c8294b87380e4b6e3fe9bedaccc37"><li><b>创建管理员用户</b></li><ul class="notion-list notion-list-disc notion-block-255c8294b87380e4b6e3fe9bedaccc37"><div class="notion-text notion-block-255c8294b87380aa8c36cd43e0881748">首次访问时，您需要创建一个管理员用户。输入用户名和密码，然后点击 <b>Create user</b>。</div></ul></ul><ul class="notion-list notion-list-disc notion-block-255c8294b87380a685bcf2801f506ca5"><li><b>连接环境</b></li><ul class="notion-list notion-list-disc notion-block-255c8294b87380a685bcf2801f506ca5"><div class="notion-text notion-block-255c8294b87380b5aa7dcecdd1456394">登录后，您会看到一个选择界面。</div><li><b>本地环境（Local）</b>：这会自动连接到 10.10.88.100 本身的 Docker 环境。点击 <b>Get Started</b>。</li><li><b>远程环境（Remote）</b>：要连接 10.10.88.200，您需要添加一个新环境。</li><ul class="notion-list notion-list-disc notion-block-255c8294b873807dbd94f96bc1bd8cb6"><li>在左侧导航栏选择 <b>Environments</b>。</li><li>点击 <b>Add environment</b>。</li><li>选择 <b>Agent</b>。</li><li>在 <b>Name</b> 处填写一个名称，例如 <b>&quot;Debian-200&quot;</b>。</li><li>在 <b>Agent URL</b> 处填写 <code class="notion-inline-code">10.10.88.200:9001</code>。</li><li>点击 <b>Add environment</b>。</li></ul></ul></ul><div class="notion-text notion-block-255c8294b87380eaa05edc85b4bcc13f">完成这些步骤后，您就可以在 Portainer 的主界面上看到并管理两个 Docker 环境了。您可以在左侧导航栏的 <b>Environments</b> 切换不同的服务器。</div><div class="notion-blank notion-block-255c8294b87380a1b010ced76149083f"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[家庭Homelab搭建系列二——虚拟化平台基建]]></title>
            <link>https://tangly1024.com/article/homelab-two</link>
            <guid>https://tangly1024.com/article/homelab-two</guid>
            <pubDate>Sat, 16 Aug 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[上一期说了现状与架构，了解了我的家庭设备情况，接下来要整理我的设备，也就是N5000和D1581。我将使用他们来搭建我自己的服务器集群，一个用来搭建核心基础服务，一个用来搭建核心应用服务]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-251c8294b8738022b587f4b45bc56bc0"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-callout notion-gray_background_co notion-block-251c8294b873806a9b5cdfa9d3f0995c"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="📖">📖</span></div><div class="notion-callout-text">上一期说了现状与架构，了解了我的家庭设备情况，接下来要整理我的设备，也就是N5000和D1581。我将使用他们来搭建我自己的服务器集群，一个用来搭建核心基础服务，一个用来搭建核心应用服务</div></div><div class="notion-blank notion-block-251c8294b87380bebd76ea92f0caa9ed"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-251c8294b87380689f43e22578a71f77" data-id="251c8294b87380689f43e22578a71f77"><span><div id="251c8294b87380689f43e22578a71f77" class="notion-header-anchor"></div><a class="notion-hash-link" href="#251c8294b87380689f43e22578a71f77" title="PVE集群"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">PVE集群</span></span></h2><div class="notion-text notion-block-251c8294b8738063a266dd15acf827c4">为啥要搭建PVE集群，为啥两个PVE不能分开管理，其实是为了方便，搭建集群之后，可以在打开一台管理页面的时候，也同时管理另一台设备</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-251c8294b87380a5a0bac15fc3b2a355" data-id="251c8294b87380a5a0bac15fc3b2a355"><span><div id="251c8294b87380a5a0bac15fc3b2a355" class="notion-header-anchor"></div><a class="notion-hash-link" href="#251c8294b87380a5a0bac15fc3b2a355" title="安装准备"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">安装准备</span></span></h3><ul class="notion-list notion-list-disc notion-block-251c8294b8738058bd94d3f48f3da049"><li>U盘一个</li></ul><ul class="notion-list notion-list-disc notion-block-251c8294b87380189ca4d84800530b4f"><li><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://www.ventoy.net/">Ventry</a></li></ul><ul class="notion-list notion-list-disc notion-block-251c8294b873807d9356fe9b50bd5f97"><li><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://pve.proxmox.com/wiki/Main_Page">PVE9.0</a></li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-251c8294b87380399aa2dd1986aeabed" data-id="251c8294b87380399aa2dd1986aeabed"><span><div id="251c8294b87380399aa2dd1986aeabed" class="notion-header-anchor"></div><a class="notion-hash-link" href="#251c8294b87380399aa2dd1986aeabed" title="安装步骤"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">安装步骤</span></span></h3><ul class="notion-list notion-list-disc notion-block-251c8294b8738044afa3d3f520c8045a"><li>按照Ventry的步骤，安装Ventry到U盘中</li></ul><ul class="notion-list notion-list-disc notion-block-251c8294b873806fabe9fe7da7ed0e8b"><li>将PVE 9.0 iso 复制到Ventry的U盘中</li></ul><ul class="notion-list notion-list-disc notion-block-251c8294b873805fae87cac88c673da8"><li>使用U盘启动设备，通过Ventry的启动选项，选择 PVE 9.0 安装</li></ul><ul class="notion-list notion-list-disc notion-block-251c8294b87380ceb40ce060515f8a55"><li>这些图形化的动作，我就不在重复截图了，按部就班处理即可</li></ul><div class="notion-blank notion-block-251c8294b87380febde3fd97a3f27ff2"> </div><div class="notion-callout notion-gray_background_co notion-block-251c8294b87380459ce3faaf09d513ea"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text">ventry是什么？很多人可能不知道，以前我们是怎么做启动镜像的，需要一个工具，把ISO文件写入到U盘中，放到真机启动，这里的弊端就是，每次更换一个ISO文件装系统，都要重写一篇U盘，每次一个U盘只能安装一个系统，这里安利一下Ventry，他也是一个启动系统，不过他的工作是，启动一个系统，去安装另外的系统。</div></div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-251c8294b87380ca8c16feb30564b118" data-id="251c8294b87380ca8c16feb30564b118"><span><div id="251c8294b87380ca8c16feb30564b118" class="notion-header-anchor"></div><a class="notion-hash-link" href="#251c8294b87380ca8c16feb30564b118" title="配置集群"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">配置集群</span></span></h3><div class="notion-text notion-block-251c8294b873809b85aae7da14ad9e8a">两台设备安装好PVE系统之后，接下来就是配置集群</div><div class="notion-text notion-block-251c8294b8738059922bd9b15bf1924b">至此，打开任何一个pve的网页管理页面，都可以管理两台pve</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-251c8294b873800a942deca618cfb753" data-id="251c8294b873800a942deca618cfb753"><span><div id="251c8294b873800a942deca618cfb753" class="notion-header-anchor"></div><a class="notion-hash-link" href="#251c8294b873800a942deca618cfb753" title="虚拟机模版"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">虚拟机模版</span></span></h2><div class="notion-callout notion-gray_background_co notion-block-251c8294b87380b6b6bdeb31f6e8717d"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text">以前我每个系统都是手动安装的，每次安装都要耗费实际分钟，如果是自己安装好，在做成模版，那调整磁盘大小的时候，还要进入虚拟机手动调整一次磁盘大小，对于想专注自己内容事情的时候，这些繁琐的小细节就是很增长人惰性的事情，直到我了解到cloud-init</div></div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-251c8294b873803c906bfff198c06080" data-id="251c8294b873803c906bfff198c06080"><span><div id="251c8294b873803c906bfff198c06080" class="notion-header-anchor"></div><a class="notion-hash-link" href="#251c8294b873803c906bfff198c06080" title="初始镜像"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">初始镜像</span></span></h3><div class="notion-callout notion-gray_background_co notion-block-251c8294b873802f8ad2dc5f59e75888"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text">为何我会选择debian 13
- debian 12 的cloudinit版本默认版本为22.4.2，和pve版本的cloudinit配置网络上有识别冲突，在23.x.x才解决，但debian 12稳定源无法升级到
- 其他发行版个人觉得不太稳定，解决内容没有debian多
- 我的服务就是要用来稳定运行的，centos已经被时代抛弃了
最后我选择debian版本，并刚好在debian13发型之际开始推进我的事情，我的pve也是安装的基于debian 13 的pve 9.0版本</div></div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-251c8294b87380feae58cf39de9fd849" data-id="251c8294b87380feae58cf39de9fd849"><span><div id="251c8294b87380feae58cf39de9fd849" class="notion-header-anchor"></div><a class="notion-hash-link" href="#251c8294b87380feae58cf39de9fd849" title="配置模版"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">配置模版</span></span></h3><div class="notion-text notion-block-251c8294b87380d9bc3ceb45347b3607">至此，debian的cloud-init模版就配置好了，具体配置如下</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-251c8294b87380938eaac9091008e240"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A45e5cfed-9b1d-404a-a8c0-997cf16407e1%3Aimage.png?table=block&amp;id=251c8294-b873-8093-8eaa-c9091008e240&amp;t=251c8294-b873-8093-8eaa-c9091008e240" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-251c8294b873807f9d68d5ce9ae58889"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0189178a-ab79-485d-878d-68660b7405a6%3Aimage.png?table=block&amp;id=251c8294-b873-807f-9d68-d5ce9ae58889&amp;t=251c8294-b873-807f-9d68-d5ce9ae58889" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-251c8294b873805cad12f5c2b152a82b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af3103c96-7282-4d91-838a-4181d06dc621%3Aimage.png?table=block&amp;id=251c8294-b873-805c-ad12-f5c2b152a82b&amp;t=251c8294-b873-805c-ad12-f5c2b152a82b" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-251c8294b873802ebc8bdd1354edff02">红框部分是关键部分，可以让虚拟机的性能更优</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-251c8294b87380b395aeea60bf0993c4" data-id="251c8294b87380b395aeea60bf0993c4"><span><div id="251c8294b87380b395aeea60bf0993c4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#251c8294b87380b395aeea60bf0993c4" title="快速运行"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">快速运行</span></span></h2><div class="notion-text notion-block-251c8294b873807c8e6ecaa9c905bede">有了上面的虚拟机模版，就能快速运行一个虚拟机了。</div><ul class="notion-list notion-list-disc notion-block-251c8294b873801f9bfcce7ff8ab4fde"><li>右键模版虚拟机，选择clone，输入VMID，NAME，在Model中选择Full Clone</li></ul><ul class="notion-list notion-list-disc notion-block-251c8294b87380d69a19c2e6afdc9fa2"><li>自行修改内存，CPU配置，调整磁盘大小</li></ul><ul class="notion-list notion-list-disc notion-block-251c8294b873801f966bd03887339c6b"><li>修改cloud-init选项</li></ul><ul class="notion-list notion-list-disc notion-block-251c8294b87380be85facf4f974ecbbd"><li>其他配置按需修改，比如我这里会修改vlan</li></ul><ul class="notion-list notion-list-disc notion-block-251c8294b873802390b9e70e7c919513"><li>启动虚拟机，不到30秒，你的虚拟机就启动好了</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-251c8294b873805e868df39e344cf9bd"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8592964e-6e81-48d8-853d-0667b7645058%3Aimage.png?table=block&amp;id=251c8294-b873-805e-868d-f39e344cf9bd&amp;t=251c8294-b873-805e-868d-f39e344cf9bd" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-251c8294b87380d8b853dc5a8a03489b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4e328ef8-5031-4aa9-944e-27943d0eb100%3Aimage.png?table=block&amp;id=251c8294-b873-80d8-b853-dc5a8a03489b&amp;t=251c8294-b873-80d8-b853-dc5a8a03489b" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-251c8294b8738086aaccdb1e04f705a7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A14ad6a40-8d26-4598-ac38-513268e8f98c%3Aimage.png?table=block&amp;id=251c8294-b873-8086-aacc-db1e04f705a7&amp;t=251c8294-b873-8086-aacc-db1e04f705a7" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-callout notion-gray_background_co notion-block-251c8294b8738008bf19ec003b2a1b71"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text">注意，ip1的模版，无法为ip2的设备clone，但你可以先将其Mirgate到ip2，再通过clone创建</div></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-251c8294b87380e08597e8a5bf6cf69c" data-id="251c8294b87380e08597e8a5bf6cf69c"><span><div id="251c8294b87380e08597e8a5bf6cf69c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#251c8294b87380e08597e8a5bf6cf69c" title="总结"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">总结</span></span></h2><div class="notion-text notion-block-251c8294b8738065b2dcd80d49536b6a">至此，我的整个底层架构服务就搭建完成了，下一步，我将搭建我的服务管理集群，docker+portainer，敬请期待。</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-251c8294b87380759845ce0a2232667c" data-id="251c8294b87380759845ce0a2232667c"><span><div id="251c8294b87380759845ce0a2232667c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#251c8294b87380759845ce0a2232667c" title="📎 参考文章"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">📎 参考文章</span></span></h2><ul class="notion-list notion-list-disc notion-block-251c8294b87380f0b9fee36cebabba2d"><li><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://gist.github.com/casperghst42/9f03f331d357f6bcda5285afdec87007">https://gist.github.com/casperghst42/9f03f331d357f6bcda5285afdec87007</a></li></ul></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[家庭Homelab搭建系列一——现状与架构]]></title>
            <link>https://tangly1024.com/article/homelab-one</link>
            <guid>https://tangly1024.com/article/homelab-one</guid>
            <pubDate>Fri, 15 Aug 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[作为一个技术爱好者，我曾在16年购入自己的第一台Nas Synology DS216j 2Tx2 RAID1，并将备份在 Google Photos 照片全部导入NAS，2019年存储报警，我升级到第二台Nas QNAP TS-453Bmini 10Tx2 RAID，并将Synology的内容全部迁移到了QNAP，然后Synology送给我大哥使用了。]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-24fc8294b87380bda737cde8ce82e48f"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-callout notion-gray_background_co notion-block-24fc8294b8738006bcacf2401c712006"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="😀">😀</span></div><div class="notion-callout-text">家里一直存在小型电脑的服务器，一直想部署一些AI相关应用供自己使用，但奈何基础服务一直没整理好，所以有了这个系列文章</div></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-24fc8294b873806380abde2f4f9ddf35" data-id="24fc8294b873806380abde2f4f9ddf35"><span><div id="24fc8294b873806380abde2f4f9ddf35" class="notion-header-anchor"></div><a class="notion-hash-link" href="#24fc8294b873806380abde2f4f9ddf35" title="背景"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">背景</span></span></h2><div class="notion-text notion-block-24fc8294b873803aba61d44a71da251c">作为一个技术爱好者，我曾在16年购入自己的第一台Nas Synology DS216j 2Tx2 RAID1，并将备份在 Google Photos 照片全部导入NAS，2019年存储报警，我升级到第二台Nas QNAP TS-453Bmini 10Tx2 RAID，并将Synology的内容全部迁移到了QNAP，然后Synology送给我大哥使用了。</div><div class="notion-text notion-block-24fc8294b8738020b661dd367666a387">时隔六年，现在到了2015年。这六年间学习了很多小工具，小玩意，但是都没有正儿八经的管理。一时兴起购入了一台 N5000 4千兆小主机，D1581 TANK服务器主板，Routeros 路由器网关，若干Openwrt路由器</div><div class="notion-text notion-block-24fc8294b87380ce99a8ef3d8688a825">今年以来，AI Agent盛行，奔四的人，也对职场有一定的压力，大佬说的好，站在时代的风口上，猪也能飞上天，所以，我也想蹭AI Agent的风口，可是家里的服务器环境以及没搭建起来，一直就没落实 自己的 AI Agent的推进。</div><div class="notion-text notion-block-24fc8294b8738029a57bf9c954127048">最近发现 Nas Qnap也给我报存储快满了，而 Qnap 设备那羸弱的性能，实在支撑不起我要使用的服务，所以趁着这次存储的整理迁移前，先把基础设施管理起来</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-24fc8294b87380778b96cce747fd0cbd" data-id="24fc8294b87380778b96cce747fd0cbd"><span><div id="24fc8294b87380778b96cce747fd0cbd" class="notion-header-anchor"></div><a class="notion-hash-link" href="#24fc8294b87380778b96cce747fd0cbd" title="现状"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">现状</span></span></h2><div class="notion-text notion-block-24fc8294b87380849cbafd38187f7123">除去现有Nas，现在主要有两台设备</div><ul class="notion-list notion-list-disc notion-block-24fc8294b8738080adecf2bd29503d96"><li>N5000 1gx4 工控机</li></ul><ul class="notion-list notion-list-disc notion-block-24fc8294b8738045acddd20d18f77398"><li>Tank D1581 2.5gx3 satax6</li></ul><div class="notion-text notion-block-24fc8294b873808da193c9b4ac5caecc">这两台设备的底层是PVE 9.0</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-24fc8294b87380acb953ee3a8f1be67c" data-id="24fc8294b87380acb953ee3a8f1be67c"><span><div id="24fc8294b87380acb953ee3a8f1be67c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#24fc8294b87380acb953ee3a8f1be67c" title="需求"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">需求</span></span></h2><div class="notion-text notion-block-24fc8294b87380c2b531dd6ee2e61331">我的需求还挺多的，有些为了安全，有些为了方案，有些还是为了学习</div><ul class="notion-list notion-list-disc notion-block-24fc8294b8738021babff3b25ba61b61"><li>家庭的网络有安全隔离网</li></ul><ul class="notion-list notion-list-disc notion-block-24fc8294b873801d92ecd63d15b8307f"><li>可以异地组网访问家庭网络</li></ul><ul class="notion-list notion-list-disc notion-block-24fc8294b8738012afc7c27f3250dfc7"><li>家庭服务有统一的用户管理与认证</li></ul><ul class="notion-list notion-list-disc notion-block-24fc8294b87380dcacb3ced76adc51ff"><li>家庭正常上网网络不受家庭服务组的影响</li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-24fc8294b87380f4bdc4e0f0ff9a364c" data-id="24fc8294b87380f4bdc4e0f0ff9a364c"><span><div id="24fc8294b87380f4bdc4e0f0ff9a364c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#24fc8294b87380f4bdc4e0f0ff9a364c" title="实现方案"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">实现方案</span></span></h2><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-24fc8294b87380bea6afc6bb8ecf67c3" data-id="24fc8294b87380bea6afc6bb8ecf67c3"><span><div id="24fc8294b87380bea6afc6bb8ecf67c3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#24fc8294b87380bea6afc6bb8ecf67c3" title="网络安全"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">网络安全</span></span></h4><div class="notion-text notion-block-24fc8294b87380a68109e520cd072ef4">这一块的思路比较早期，比较成熟，也已经在使用了</div><ul class="notion-list notion-list-disc notion-block-24fc8294b873809eae63d96d7a065acb"><li>RouterOS当作家庭的网络中心，在每个网段上都以254作为ip接入，并作为网段网关，跨网段访问，都需要经过RouterOS</li></ul><ul class="notion-list notion-list-disc notion-block-24fc8294b87380ec8cbee23ea9ed9c73"><li>Manager 网段用来接入基础服务硬件网段，比如Ap硬件，两台虚拟化硬件</li></ul><ul class="notion-list notion-list-disc notion-block-24fc8294b873801bb9bef61435fdd443"><li>Home 网段，主要是家人的上网设备主要连接网络</li></ul><ul class="notion-list notion-list-disc notion-block-24fc8294b8738098afdfce303634e6bf"><li>Guest 网段，主要是给客户使用的网络接入点</li></ul><ul class="notion-list notion-list-disc notion-block-24fc8294b873809d97b5f0ee1a55e204"><li>Iot 网段，主要是给家里只能设备的网络接入点，比如网络摄像头，智能音箱，因为摄像头服务不是自己搭建，所以归属于Iot中，如果是自己用IP摄像头接入自己的应用服务，会归纳到Service网段</li></ul><ul class="notion-list notion-list-disc notion-block-24fc8294b87380ff8c8fdbb08d4cecb1"><li>Service 网络，家庭主要应用服务网段，包括NAS，PHOTO，以及后期的AI Agent都会在这个网段</li></ul><ul class="notion-list notion-list-disc notion-block-24fc8294b873806c81d5c66c3e5e1e32"><li>Proxy 网段，主要是往外服务网点，主要有网络智能分流，广域网组网，DNS管理配置等。</li></ul><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-24fc8294b873809eaa96c27392c5b2d5" data-id="24fc8294b873809eaa96c27392c5b2d5"><span><div id="24fc8294b873809eaa96c27392c5b2d5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#24fc8294b873809eaa96c27392c5b2d5" title="部署选型"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">部署选型</span></span></h4><div class="notion-text notion-block-24fc8294b873803495a5e07a64e2a035">我曾和Ai探讨k8s在家庭局域网的可行性，曾经想着，在两台PVE间搭建k8s平台来部署服务，后来发现，很麻烦，要学习的东西太多。最终Ai的一句话打醒了我，Kubernetes (k8s) 集群的编排，主要解决的是“<b>大规模、分布式应用的管理和高可用问题</b>”。回到我的家庭服务器的问题，我根本没有这个需求，所有的应用服务都只是家庭几个成员再使用，无需上这么重的东西</div><div class="notion-text notion-block-24fc8294b87380d3b0bed70bab0cb569">我也在PodMan和Docker过程中有个纠结，最后还是Ai点醒了我，虽然我是一个技术爱好者，但我的服务要求的是长期稳定，不一定要最新趋势。所以，Docker+Portainer当下最符合我的要求。</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-250c8294b87380b2ae58f2f7687a22c7" data-id="250c8294b87380b2ae58f2f7687a22c7"><span><div id="250c8294b87380b2ae58f2f7687a22c7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#250c8294b87380b2ae58f2f7687a22c7" title="应用需求"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">应用需求</span></span></h4><ul class="notion-list notion-list-disc notion-block-250c8294b87380339ea9df198de8adea"><li>用户授权 - LDAP</li></ul><ul class="notion-list notion-list-disc notion-block-250c8294b8738047ba5dff520f54e26c"><li>统一入口导航 - Teleport</li></ul><ul class="notion-list notion-list-disc notion-block-250c8294b87380719318ebaa2a207285"><li>广域网组网 - Netbird</li></ul><ul class="notion-list notion-list-disc notion-block-250c8294b87380dd85c0d447523a52c6"><li>智能局域网域名 - AdguradHome+Mosdns+Ospf</li></ul><ul class="notion-list notion-list-disc notion-block-250c8294b8738045b812c6782845d670"><li>Nas服务 - Nextcloud</li></ul><ul class="notion-list notion-list-disc notion-block-250c8294b8738054affcfa26bd19e272"><li>备份网盘 - Alist</li></ul><ul class="notion-list notion-list-disc notion-block-250c8294b873808a94b2c5e6f5da46a3"><li>备份服务 - Rclone</li></ul><ul class="notion-list notion-list-disc notion-block-250c8294b8738093b6a4c3a02ae9f781"><li>照片服务 - 还没选好</li></ul><ul class="notion-list notion-list-disc notion-block-250c8294b8738038a38bd35dd15d9071"><li>视频服务 - 以后再说</li></ul><ul class="notion-list notion-list-disc notion-block-250c8294b8738069a88eceb069e0542a"><li>源码服务 - Gitea</li></ul><ul class="notion-list notion-list-disc notion-block-250c8294b8738042ad55cce8ff3788f1"><li>若干服务 - TradingAgent，Vpny，OneApi，NewApi</li></ul><div class="notion-blank notion-block-250c8294b8738040b196f1779cbd3e24"> </div><div class="notion-text notion-block-24fc8294b87380deb953c83e0fa2ef69">目前就是没有解决好若干服务器的使用，正好趁这次Nas服务迁移，完成这次规划与服务部署。</div><div class="notion-text notion-block-250c8294b87380258436cd5ac44f867c">下一期，来说说基础服务的部署与安装。也就是PVE和承载Docker的Debian的安装。</div><div class="notion-blank notion-block-24fc8294b87380ebb6dbe90b9e8105d9"> </div><div class="notion-callout notion-gray_background_co notion-block-24fc8294b8738034a895fa3865e16254"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text"></div></div><div class="notion-blank notion-block-24fc8294b87380169f10fdbd15f9a42e"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ 博客，我回来了]]></title>
            <link>https://tangly1024.com/article/i-am-back</link>
            <guid>https://tangly1024.com/article/i-am-back</guid>
            <pubDate>Fri, 23 Aug 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[Jiechic相关域名，申请于2010年，作为记录自己折腾学习的地方。
搞过 wordpress，Linux，各种proxy，记得当时搞过一个wineqq的deb包在ubuntu发行版上使用。还有一些反馈。]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-1a9d02b6c8d14d0781ce08de84c614c3"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-text notion-block-d97697e9e4e7480d8441ce3c83b7f547">Jiechic相关域名，申请于2010年，作为记录自己折腾学习的地方。</div><div class="notion-text notion-block-4ce6903302f34fc59119b78c2774a2c1">搞过 wordpress，Linux，各种proxy，记得当时搞过一个wineqq的deb包在ubuntu发行版上使用。还有一些反馈。</div><div class="notion-text notion-block-9904cc0d0fa14df2b38a7d16b447ebc5">玩过虚拟主机、vps，玩过BandwagonHost，Vultr，linode,Gcloud,为了更好的获取知识。</div><div class="notion-text notion-block-4155ba0b18ea4349a4e631de6f5bfd1c">部署过不少Application，分别都记录到博客上。</div><div class="notion-text notion-block-5d50d85140bc4e628c492b6047d7ad32">该博客最后部署在了Gcloud VPS上，因为忘了免费时段，VPS关停，数据备份忘了备份到哪里，从2018年就消失在网络环境中。</div><div class="notion-text notion-block-09e8c8c85c7748f0b1a197170486cda5">曾经也部署过一两次github等静态博客网站，因为更新需要执行脚本等繁琐的工作流，以及下班需要顾家，不在有多余的时间去对网络世界进行折腾。所以当时没能在重启博客。</div><div class="notion-text notion-block-e31f3f6caa674630bd0a61764190ad4f">今年2024年了，工作十三载，发现，自己的很多能力都还没形成体系，唯一自信的是折腾的学习精神。</div><div class="notion-text notion-block-0fa9fe8f989449f69c030a517922bc44">现在孩子稍微大了，也能慢慢有自己的时间去充电，去学习，继续锻炼自己的知识体系，而且发现，没有博客的记录，自己的很多总结能力再退化。</div><div class="notion-text notion-block-1b613590d6a74053aecd995df940baae">所以，今年开始，要开始进行自己的知识能力总结于分享，开始构建个人能力架构体系。</div><div class="notion-text notion-block-7e6e2257919544d894e66b8580e0898c">回归到博客文章的推进，今年的目标是重启学习。</div><ol start="1" class="notion-list notion-list-numbered notion-block-ad7bac0cb2cd456386f1c86af168e066"><li>学习英语</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-449ff11c6a9a428eb4aace4951dfbd32"><li>学习写作分享</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-69755fbfbd914d04aac5d712c15c985b"><li>提高知识体系总结能力</li></ol><div class="notion-text notion-block-7c5bff65d5ab465eaea5d0e19a1f0074">这些目标的唯一重要工作，都是构建个人能力体系。</div><div class="notion-text notion-block-4f4d136e02424bcb971ab3422ce97689">希望在年过四十的时候，能够构建出自己的商业帝国。</div><div class="notion-text notion-block-b2d27ac9adb44df8bb3a4be355e79ffd">现在开始对2025年说一声。</div><div class="notion-text notion-block-b9e2e10529354d6fa44903cbb288ed3c">hello，2025，我们会更好！</div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[使用NotionNext搭建博客]]></title>
            <link>https://tangly1024.com/article/create-my-notion-blog</link>
            <guid>https://tangly1024.com/article/create-my-notion-blog</guid>
            <pubDate>Sat, 31 Aug 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[简单记录一下博客搭建的过程]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-fffc8294b873800ba773ebe6553e3fe8"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-callout notion-gray_background_co notion-block-62d231fbe1544858970c33f7ae80cc8a"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="😀">😀</span></div><div class="notion-callout-text">前文说了，觉得管理一个自己搭建的博客很麻烦，而我有需要有地方坐知识总结，所以我选了notion当我的知识总结库，既然总结库有了，那就找个合适的博客搭建方案吧，于是有了这篇</div></div><div class="notion-text notion-block-4c7d30d7bf784e7c8a4154a39651507e">之前的博客一直疏于管理，导致博客的所有文章丢失，所以我也不在想着在VPS上搭建博客系统了，为了管理好自己的数据展示，我希望我的数据是不需要我自己做备份的。</div><div class="notion-text notion-block-8d3851b085e94186b8d34ca642836750">notion，一个笔记软件，之前一直没用起来，是因为一直是Web版本。现在，nition已经可以简单的本地化了，至少我看到手机上的nition在没联网的时候是可以查看数据的。</div><div class="notion-text notion-block-66e31feb6e474a8495923cd92ea5db55">所以我又启动了notion的使用计划。（主要是我懒得搭建服务了，搭建服务需要考虑数据备份的问题。一个人，不是公司运作，不小心就丢失了。）</div><div class="notion-text notion-block-36119ede167e4d22a05750bbd3f44b42">既然启用了notion，那就用notion做博客的数据管理吧。</div><div class="notion-text notion-block-e9eedd4efab04d73ae582c1ccda7a7ff">于是搜到了notion-next。</div><div class="notion-text notion-block-bbf66be224574412af2563150bf7f5b3">对，这篇可能是一个很水的文章，我不太想截图了。但是我觉得，需要把主要流程记录下来。</div><ol start="1" class="notion-list notion-list-numbered notion-block-e884a1e65dd7464a80c65388033046f7"><li>复制notion-next博客模版到自己的notion中（是一个数据库）</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-deed3387208e4537baa6fda8112aaa39"><li>fork notion-next 的 github 仓库到自己的个人仓库下</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-57fd73adcf0c4dccbe017326c6994478"><li>把 notion-next 的 notion 博客模版做成分享，分享链接的中间段为“NOTION_PAGE_ID”</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-12b8f814136842a09ea477368516c0f8"><li>登录vercel，授权自己的github仓库，部署notion-next项目，在部署时添加环境变量 NOTION_PAGE_ID</li></ol><ol start="5" class="notion-list notion-list-numbered notion-block-73a982cc89844b5192dabb4c3aa76f05"><li>部署成功，配置域名</li></ol><div class="notion-text notion-block-155411084ad7419aae15480ec4a1e430">大概步骤就是上面这几步，难点不是很难。很好操作。</div></main></div>]]></content:encoded>
        </item>
    </channel>
</rss>