<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>二叉树的博客</title><link>https://www.spiritysdx.top/</link><description>个人技术记录、工程排障和系统实践日志</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><lastBuildDate>Fri, 23 May 2025 16:16:53 +0800</lastBuildDate><atom:link href="https://www.spiritysdx.top/index.xml" rel="self" type="application/rss+xml"/><item><title>Ray 支持昇腾 NPU 的 KubeRay 对接记录</title><link>https://www.spiritysdx.top/20250523-ray-ascend-npu/</link><pubDate>Fri, 23 May 2025 16:16:53 +0800</pubDate><author>作者</author><guid>https://www.spiritysdx.top/20250523-ray-ascend-npu/</guid><description>&lt;p>这篇记录 Ray 在 Kubernetes 中对接昇腾 NPU 的流程，包括 Ray 镜像制作、KubeRay Operator 安装、RayCluster 编排和资源验证。环境基于 aarch64，镜像中需要带入宿主机昇腾驱动运行所需文件。&lt;/p></description></item><item><title>openEuler 22.03 arm64 离线包适配记录</title><link>https://www.spiritysdx.top/20250523-openeuler-system-adaptation/</link><pubDate>Fri, 23 May 2025 14:19:06 +0800</pubDate><author>作者</author><guid>https://www.spiritysdx.top/20250523-openeuler-system-adaptation/</guid><description>&lt;p>这篇记录 openEuler 22.03 LTS SP4 arm64 环境下制作离线依赖包的过程。目标是对齐已有 amd64 离线源，补齐 arm64 目录中缺失的 Docker、NFS 和基础工具包，并在纯净环境中验证安装冲突。&lt;/p></description></item><item><title>在线 IDE 的通用容器镜像打包流程</title><link>https://www.spiritysdx.top/20250425/</link><pubDate>Mon, 12 May 2025 14:22:46 +0800</pubDate><author>作者</author><guid>https://www.spiritysdx.top/20250425/</guid><description>&lt;p>这篇记录在线 IDE 或浏览器可访问应用的通用容器镜像打包流程。重点是基础镜像选择、软件源、中文环境、GPU/NPU 驱动、图形界面、SSH、端口转发和镜像导入导出这些容易踩坑的环节。&lt;/p></description></item><item><title>麒麟 V10 安装时配置本地源</title><link>https://www.spiritysdx.top/20250512-kylin-v10-local-repo/</link><pubDate>Mon, 12 May 2025 14:11:01 +0800</pubDate><author>作者</author><guid>https://www.spiritysdx.top/20250512-kylin-v10-local-repo/</guid><description><![CDATA[<p>麒麟 V10 安装时如果没有正确指定本地镜像源，安装界面可能报错：</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">设置基础软件仓库时出错
</span></span></code></pre></td></tr></table>
</div>
</div><p>这个问题需要在进入图形安装界面之前处理，也就是在启动引导界面修改内核参数。</p>
<h2 id="操作步骤">操作步骤</h2>
<p>在安装引导界面，将光标移动到：</p>]]></description></item><item><title>BKE 与 BMP 部署排障流程</title><link>https://www.spiritysdx.top/20250512-bmp-troubleshooting/</link><pubDate>Mon, 12 May 2025 12:03:20 +0800</pubDate><author>作者</author><guid>https://www.spiritysdx.top/20250512-bmp-troubleshooting/</guid><description><![CDATA[<p>这篇整理 BKE/BMP 部署和运行阶段的常用排障流程。核心原则是先确认当前处于部署前、部署中还是部署后的集群运行阶段，再选择对应的 <code>bke</code>、<code>kubectl</code>、<code>docker</code> 或系统服务排查路径。</p>]]></description></item><item><title>containerd 允许 HTTP 镜像仓库拉取</title><link>https://www.spiritysdx.top/20250512-containerd-http-registry/</link><pubDate>Mon, 12 May 2025 11:15:37 +0800</pubDate><author>作者</author><guid>https://www.spiritysdx.top/20250512-containerd-http-registry/</guid><description><![CDATA[<p>这篇记录 <code>containerd</code> 拉取 HTTP 镜像仓库时的配置方式。常见误区是只在 <code>/etc/containerd/config.toml</code> 中配置 <code>insecure = true</code>，但这个配置主要作用于 CRI 插件；使用 <code>nerdctl</code>、<code>ctr</code> 或 Kubernetes 拉取时，仍可能继续尝试 HTTPS。</p>]]></description></item><item><title>Red Hat 8 amd64 离线依赖适配记录</title><link>https://www.spiritysdx.top/20250512-redhat-system-adaptation/</link><pubDate>Mon, 12 May 2025 10:54:21 +0800</pubDate><author>作者</author><guid>https://www.spiritysdx.top/20250512-redhat-system-adaptation/</guid><description>&lt;p>这篇记录整理 Red Hat 8 amd64 环境下为 BKE 部署准备离线依赖包的流程。核心思路是先在可联网环境中补齐 RPM 及其依赖，再把离线包复制到纯净测试机中验证安装，最后进入 allinone 部署。&lt;/p></description></item><item><title>kubevirt初体验</title><link>https://www.spiritysdx.top/20250415/</link><pubDate>Tue, 15 Apr 2025 00:00:00 +0000</pubDate><author>作者</author><guid>https://www.spiritysdx.top/20250415/</guid><description><![CDATA[<h2 id="确认当前k8s版本以及对应的kubevirt版本">确认当前k8s版本以及对应的kubevirt版本</h2>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">kubectl version
</span></span></code></pre></td></tr></table>
</div>
</div><p>显示</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">Client Version: version.Info{Major:&#34;1&#34;, Minor:&#34;23&#34;, GitVersion:&#34;v1.23.17&#34;, GitCommit:&#34;953be8927218ec8067e1af2641e540238ffd7576&#34;, GitTreeState:&#34;clean&#34;, BuildDate:&#34;2023-02-22T13:34:27Z&#34;, GoVersion:&#34;go1.19.6&#34;, Compiler:&#34;gc&#34;, Platform:&#34;linux/amd64&#34;}
</span></span><span class="line"><span class="cl">Server Version: version.Info{Major:&#34;1&#34;, Minor:&#34;23&#34;, GitVersion:&#34;v1.23.17&#34;, GitCommit:&#34;953be8927218ec8067e1af2641e540238ffd7576&#34;, GitTreeState:&#34;clean&#34;, BuildDate:&#34;2023-02-22T13:27:46Z&#34;, GoVersion:&#34;go1.19.6&#34;, Compiler:&#34;gc&#34;, Platform:&#34;linux/amd64&#34;}
</span></span></code></pre></td></tr></table>
</div>
</div><p>根据</p>
<p><a href="https://github.com/kubevirt/sig-release/commits/main/releases/k8s-support-matrix.md" target="_blank" rel="noopener noreffer">https://github.com/kubevirt/sig-release/commits/main/releases/k8s-support-matrix.md</a></p>
<p>查询历史支持的kubevirt版本，得知支持的最新的是kubevirt 0.58</p>]]></description></item><item><title>魔改dockur制作可迁移的Windows镜像(单文件)</title><link>https://www.spiritysdx.top/20250405/</link><pubDate>Sat, 05 Apr 2025 00:00:00 +0000</pubDate><author>作者</author><guid>https://www.spiritysdx.top/20250405/</guid><description><![CDATA[<h2 id="修改dockur制作windows镜像">修改dockur制作Windows镜像</h2>
<p><a href="https://github.com/dockur/windows" target="_blank" rel="noopener noreffer">https://github.com/dockur/windows</a></p>
<p>拉取测试的版本: <a href="https://github.com/dockur/windows/tree/v4.33" target="_blank" rel="noopener noreffer">v4.33</a></p>
<p>原始仓库的镜像默认只是一个ISO下载器和网络自动设置器，本质上不包含Windows镜像，容器启动后镜像会将系统安装到挂载出的盘中。</p>]]></description></item><item><title>通过dockur制作可迁移的Windows镜像(双文件)</title><link>https://www.spiritysdx.top/20250315/</link><pubDate>Sat, 15 Mar 2025 00:00:00 +0000</pubDate><author>作者</author><guid>https://www.spiritysdx.top/20250315/</guid><description><![CDATA[<h2 id="使用dockur的原始镜像制作windows镜像双文件">使用dockur的原始镜像制作Windows镜像(双文件)</h2>
<p><a href="https://github.com/dockur/windows" target="_blank" rel="noopener noreffer">https://github.com/dockur/windows</a></p>
<p>原始仓库的镜像默认只是一个ISO下载器和网络自动设置器，本质上不包含Windows镜像，容器启动后镜像默认会将系统安装到挂载出的盘中。</p>
<p>本页说明最终将保存两个文件，一个是挂载盘的压缩文件，一个是容器导出的tar包。</p>]]></description></item><item><title>通过ProxmoxVE制作kubevirt可用的Windows镜像</title><link>https://www.spiritysdx.top/20250325/</link><pubDate>Sat, 15 Mar 2025 00:00:00 +0000</pubDate><author>作者</author><guid>https://www.spiritysdx.top/20250325/</guid><description><![CDATA[<h2 id="通过proxmoxve制作kubevirt可用的win镜像">通过ProxmoxVE制作kubevirt可用的WIN镜像</h2>
<p><a href="https://github.com/ILLKX/Windows-VirtIO" target="_blank" rel="noopener noreffer">https://github.com/ILLKX/Windows-VirtIO</a></p>
<p>下载带virtio的虚拟机镜像</p>
<p>然后借鉴 <a href="https://www.spiritlhl.net/guide/pve/pve_windows.html" target="_blank" rel="noopener noreffer">https://www.spiritlhl.net/guide/pve/pve_windows.html</a> 开设虚拟机，到图形化安装后即可，不要配置网络</p>
<p>在虚拟机内需要设置一个bat脚本，设置系统启动后执行，脚本的内容是</p>]]></description></item><item><title>基于docker的在线IDE制作(支持浏览器直接访问)</title><link>https://www.spiritysdx.top/20250305/</link><pubDate>Wed, 05 Mar 2025 00:00:00 +0000</pubDate><author>作者</author><guid>https://www.spiritysdx.top/20250305/</guid><description><![CDATA[<h2 id="仓库">仓库</h2>
<p><a href="https://github.com/oneclickvirt/dockerfile-templates" target="_blank" rel="noopener noreffer">https://github.com/oneclickvirt/dockerfile-templates</a></p>
<p>适配境内环境，搭建带浏览器web查看NOVNC的在线IDE</p>
<p>对应开发环境支持 AMD64 ARM64</p>
<p>对应GPU/NPU的驱动支持</p>
<p>对应平台的AI插件支持</p>
<p>由于版权问题和镜像大小问题，tar包我就不传了</p>]]></description></item><item><title>k8s日常问题排障</title><link>https://www.spiritysdx.top/20250225/</link><pubDate>Tue, 25 Feb 2025 00:00:00 +0000</pubDate><author>作者</author><guid>https://www.spiritysdx.top/20250225/</guid><description><![CDATA[<h2 id="一般流程">一般流程</h2>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">free -m
</span></span></code></pre></td></tr></table>
</div>
</div><p>需要确保无SWAP，否则<code>kubelet</code>起不来</p>
<p>然后需要</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">docker ps -a <span class="p">|</span> grep etcd
</span></span></code></pre></td></tr></table>
</div>
</div><p>看平面容器起来了没有，没有的话就得看容器日志排查问题</p>
<p>然后</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">kubectl get pods -A
</span></span></code></pre></td></tr></table>
</div>
</div><p>看核心的namespace的pod有没有起来，有没有ready，有问题的pod名字就<code>describe</code>一下
下面所有示例都用<code>kube-system</code>作为查询的namespace，实际看你要查什么服务对应的namespace</p>]]></description></item><item><title>jetbrains家的goland项目可用但老爆红</title><link>https://www.spiritysdx.top/20240714/</link><pubDate>Sun, 14 Jul 2024 00:00:00 +0000</pubDate><author>作者</author><guid>https://www.spiritysdx.top/20240714/</guid><description><![CDATA[<h2 id="问题">问题</h2>
<p>目前新的go项目默认都是<code>go module</code>模式，由于我需要使用私有仓库的package，清除了mod的缓存后Goland就识别不到我后续在命令行下执行</p>]]></description></item><item><title>机房本地服务器自建Gitea并使用</title><link>https://www.spiritysdx.top/20240713/</link><pubDate>Sat, 13 Jul 2024 00:00:00 +0000</pubDate><author>作者</author><guid>https://www.spiritysdx.top/20240713/</guid><description>&lt;h2 id="前言">前言&lt;/h2>
&lt;p>由于Github在国内访问速度较慢，所以选择在本地服务器上自建Gitea，使用国内服务器内穿端口后访问速度较快，并且可以自己管理代码，更安全。&lt;/p></description></item></channel></rss>