<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[shida's blog]]></title><description><![CDATA[千里之行，始于足下]]></description><link>https://blog.csdn.net/shida_csdn</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; shida_csdn]]></copyright><item><title><![CDATA[Kubernetes OIDC 集成 KeyCloak 实现统一认证登录配置步骤]]></title><link>https://blog.csdn.net/shida_csdn/article/details/155648267</link><guid>https://blog.csdn.net/shida_csdn/article/details/155648267</guid><author>shida_csdn</author><pubDate>Sun, 14 Dec 2025 00:48:24 +0800</pubDate><description><![CDATA[本文介绍了Kubernetes集成KeyCloak实现统一认证的配置过程。首先通过Docker Compose部署KeyCloak服务并生成自签名证书，创建Realm和Client用于Kubernetes认证。然后修改kube-apiserver启动参数启用OIDC认证，配置RBAC权限绑定KeyCloak用户/组。最后通过kubelogin工具配置kubeconfig实现基于KeyCloak的身份验证。该方案为测试环境提供了一种统一认证的参考实现。]]></description><category></category></item><item><title><![CDATA[k0smotron 一键创建 K8s Control Plane（K8s in K8s 模式）]]></title><link>https://blog.csdn.net/shida_csdn/article/details/155423421</link><guid>https://blog.csdn.net/shida_csdn/article/details/155423421</guid><author>shida_csdn</author><pubDate>Sun, 30 Nov 2025 16:42:27 +0800</pubDate><description><![CDATA[摘要： k0smotron是一款开源工具，用于在现有Kubernetes集群中快速创建和管理多个子集群控制平面。通过Kind集群演示，只需5步即可完成部署：1) 创建Kind集群；2) 安装cert-manager依赖；3) 部署k0smotron；4) 创建子集群；5) 获取kubeconfig连接子集群。支持NodePort暴露服务，适合多租户和开发测试场景，实现轻量级多集群管理。]]></description><category></category></item><item><title><![CDATA[ubuntu 24.10 忘记密码进入恢复模式重置密码]]></title><link>https://blog.csdn.net/shida_csdn/article/details/151293949</link><guid>https://blog.csdn.net/shida_csdn/article/details/151293949</guid><author>shida_csdn</author><pubDate>Sun, 07 Sep 2025 20:33:03 +0800</pubDate><description><![CDATA[Ubuntu 24.04密码重置方法摘要 当忘记Ubuntu密码时，可通过两种方式重置： 恢复模式：重启进入Grub菜单→选择&quot;Advanced options&quot;→进入recovery mode→选&quot;root&quot;→执行mount -o remount,rw /和passwd 用户名重置密码。 Grub编辑模式：若恢复模式需root密码，则重启时按ESC进入Grub→按e编辑启动项→将ro quiet splash改为rw init=/bin/bash→按Ctrl-x启动]]></description><category></category></item><item><title><![CDATA[client-go 的 QPS 和 Burst 限速]]></title><link>https://blog.csdn.net/shida_csdn/article/details/145058401</link><guid>https://blog.csdn.net/shida_csdn/article/details/145058401</guid><author>shida_csdn</author><pubDate>Fri, 10 Jan 2025 15:12:23 +0800</pubDate><description><![CDATA[在 kubernetes client-go 中，QPS 和 Burst 是用于控制客户端与 Kubernetes API 交互速率的两个关键参数。]]></description><category></category></item><item><title><![CDATA[一键生成基于 ServiceAccount 的 Kubernetes kubeconfig 文件]]></title><link>https://blog.csdn.net/shida_csdn/article/details/143189351</link><guid>https://blog.csdn.net/shida_csdn/article/details/143189351</guid><author>shida_csdn</author><pubDate>Wed, 23 Oct 2024 20:27:36 +0800</pubDate><description><![CDATA[基于 ServiceAccount 的 kubeconfig 具有与 ServiceAccount 相同的权限，可以灵活地通过 ClusterRoleBinding 和/或 RoleBinding 进行权限控制，以及方便地进行账户吊销，本文介绍基于 ServiceAccount 快速生成 kubeconfig 文件的方法。]]></description><category></category></item><item><title><![CDATA[Linux 实现自定义系统调用，支持参数和结果返回]]></title><link>https://blog.csdn.net/shida_csdn/article/details/140123768</link><guid>https://blog.csdn.net/shida_csdn/article/details/140123768</guid><author>shida_csdn</author><pubDate>Tue, 02 Jul 2024 18:31:17 +0800</pubDate><description><![CDATA[自定义 Linux 系统调用实验]]></description><category></category></item><item><title><![CDATA[CentOS 7 内核 3.10 升级 6.5.2 （RPM 直装 + 源码编译）]]></title><link>https://blog.csdn.net/shida_csdn/article/details/139780103</link><guid>https://blog.csdn.net/shida_csdn/article/details/139780103</guid><author>shida_csdn</author><pubDate>Wed, 19 Jun 2024 18:34:12 +0800</pubDate><description><![CDATA[本文介绍如何升级 CentOS 7 内核版本，从 3.10 升级到 6.5.2，包括 RPM 直装和源码编译两种方式]]></description><category></category></item><item><title><![CDATA[geth + remix 本地开发环境搭建教程]]></title><link>https://blog.csdn.net/shida_csdn/article/details/139124365</link><guid>https://blog.csdn.net/shida_csdn/article/details/139124365</guid><author>shida_csdn</author><pubDate>Wed, 22 May 2024 17:26:03 +0800</pubDate><description><![CDATA[部署完成后，可以看到已经部署的合约地址（如何等待很长时间还没有看到部署成功，可以尝试多 Deploy 触发几次），并可以查看 Msg 存储的内容。本文介绍使用 geth 搭建单节点私有链，使用 redmix 在线 IDE 连接本地私有链部署和运行智能合约环境搭建步骤。在弹出的界面，确认连接地址是本地启动的 geth 节点监听地址，默认即为 http://127.0.0.1:8545。可以看到类似如下输出，表面合约部署成功（部署合约可能需要等待约 1 分钟时间，看你的节点执行效率）]]></description><category></category></item><item><title><![CDATA[Kubernetes Kubelet 的 Cgroups 资源限制机制分析]]></title><link>https://blog.csdn.net/shida_csdn/article/details/137834928</link><guid>https://blog.csdn.net/shida_csdn/article/details/137834928</guid><author>shida_csdn</author><pubDate>Sat, 20 Apr 2024 23:57:40 +0800</pubDate><description><![CDATA[容器技术的两大技术基石，想必大家都有所了解，即 namespace 和 cgroups。但你知道 cgroups 是如何在 kubernetes 中发挥作用的吗？kubelet 都设置了哪些 cgroups 参数来实现对容器的资源限制的呢？本文就来扒一扒 Kubernetes kubelet 的 cgroups 资源限制机制。]]></description><category></category></item><item><title><![CDATA[Kubernetes Container Device Interface (CDI)]]></title><link>https://blog.csdn.net/shida_csdn/article/details/137683216</link><guid>https://blog.csdn.net/shida_csdn/article/details/137683216</guid><author>shida_csdn</author><pubDate>Sat, 13 Apr 2024 17:24:39 +0800</pubDate><description><![CDATA[CDI 全称 Container Device Interface，是一种 Spec 接口规范，用于 Container Runtime 支持挂载第三方设备，如 GPU、FPGA 等。]]></description><category></category></item><item><title><![CDATA[从零到一：基于 K3s 快速搭建本地化 kubeflow AI 机器学习平台]]></title><link>https://blog.csdn.net/shida_csdn/article/details/137276843</link><guid>https://blog.csdn.net/shida_csdn/article/details/137276843</guid><author>shida_csdn</author><pubDate>Wed, 03 Apr 2024 11:24:16 +0800</pubDate><description><![CDATA[Kubeflow 是一种开源的 Kubernetes 原生框架，可用于开发、管理和运行机器学习工作负载，支持诸如 PyTorch、TensorFlow 等众多优秀的机器学习框架，本文介绍如何在 Mac 上搭建本地化的 kubeflow 机器学习平台。尽管 K3s 自身需要的资源不多，但是 kubeflow 套件组件众多，需要设置 Docker 的资源分配，避免安装过程中发生 Pod Pending.注意：本文以 deyloyKF 发行版作为主要安装对象，本地环境仅适用于开发测试使用，不可用于生产环境！]]></description><category></category></item><item><title><![CDATA[Kubernetes HPA：基于 kafka_consumergroup_lag 指标实现 Consumer Pod 水平弹性伸缩]]></title><link>https://blog.csdn.net/shida_csdn/article/details/136443676</link><guid>https://blog.csdn.net/shida_csdn/article/details/136443676</guid><author>shida_csdn</author><pubDate>Mon, 04 Mar 2024 14:34:19 +0800</pubDate><description><![CDATA[在实际生产环境中，当请求激增时，kafka 生产者发送的消息数量会远远大于 kafka 消费者的消费能力，从而导致消息堆积和处理延迟。为了避免此种情况，就要求消费者能够感知到 kafka 消息堆积，并通过动态增加或减少自身的副本数，实现动态自适应消费，这就是本文即将介绍的内容，即基于 kafka_consumergroup_lag 指标实现 Consumer Pod 水平弹性伸缩。]]></description><category></category></item><item><title><![CDATA[使用 HPA 和 TopologySpreadConstraints 实现可用区间等比扩容]]></title><link>https://blog.csdn.net/shida_csdn/article/details/134864307</link><guid>https://blog.csdn.net/shida_csdn/article/details/134864307</guid><author>shida_csdn</author><pubDate>Fri, 08 Dec 2023 15:01:40 +0800</pubDate><description><![CDATA[本文介绍 HPA 多可用区同步扩容的小方法]]></description><category></category></item><item><title><![CDATA[Mac 定时重启 TouchBar 脚本（缓解闪烁问题）]]></title><link>https://blog.csdn.net/shida_csdn/article/details/132005255</link><guid>https://blog.csdn.net/shida_csdn/article/details/132005255</guid><author>shida_csdn</author><pubDate>Sun, 30 Jul 2023 12:09:53 +0800</pubDate><description><![CDATA[Mac 笔记本 TouchBar 是真的脆啊，合盖使用一段时间就废了，右侧一直闪烁简直亮瞎眼 😂。本文提出一种定时重启 TouchBar，防止其进入休眠状态，从而缓解闪烁情况的方法。]]></description><category></category></item><item><title><![CDATA[Mac OS 安装 CGO 交叉编译环境 x86_64-linux-gnu-gcc]]></title><link>https://blog.csdn.net/shida_csdn/article/details/129162373</link><guid>https://blog.csdn.net/shida_csdn/article/details/129162373</guid><author>shida_csdn</author><pubDate>Wed, 22 Feb 2023 14:51:08 +0800</pubDate><description><![CDATA[Mac OS 安装 CGO 交叉编译环境 x86_64-linux-gnu-gcc，解决 CGO 编译难题。]]></description><category></category></item><item><title><![CDATA[XMind 2021 Mac 去水印教程]]></title><link>https://blog.csdn.net/shida_csdn/article/details/125122074</link><guid>https://blog.csdn.net/shida_csdn/article/details/125122074</guid><author>shida_csdn</author><pubDate>Sat, 04 Jun 2022 16:00:38 +0800</pubDate><description><![CDATA[XMind 桌面客户端基于 Electron + Vue 开发，Electron 打包会在 Resources 目录生成一个 app.asar 文件，大部分的资源页面文件都在这里边，因此我们可以通过修改 app.asar 的水印图片达到去水印的目的。

安装 asar 程序：
破解水印
在「应用程序」找到 XMind，右键选择「显示包内容」，进入 “Contents/Resources” 目录，在此处打开 Terminal 终端，执行如下命令解包：
使用喜欢的编辑器（如 VS......]]></description><category></category></item><item><title><![CDATA[修改 docker cgroup 版本的方法 （changing cgroup version）]]></title><link>https://blog.csdn.net/shida_csdn/article/details/124646136</link><guid>https://blog.csdn.net/shida_csdn/article/details/124646136</guid><author>shida_csdn</author><pubDate>Sun, 08 May 2022 12:14:05 +0800</pubDate><description><![CDATA[Kubernetes 从 1.19 起支持 cgroup v2 版本，如需运行 1.19 之前的老版本，需要宿主机 Docker 使用 cgroup v1。
默认新版 docker 都默认使用 cgroup v2：
# docker info
 ...
 Cgroup Version: 2
 ...

要切换使用 v1 版 cgroup，需要做如下配置：
# vim /etc/default/grub
GRUB_CMDLINE_LINUX="systemd.unified_cgroup_hierarchy=]]></description><category></category></item><item><title><![CDATA[Kubernetes Service 开启拓扑感知（就近访问）能力]]></title><link>https://blog.csdn.net/shida_csdn/article/details/124285905</link><guid>https://blog.csdn.net/shida_csdn/article/details/124285905</guid><author>shida_csdn</author><pubDate>Wed, 20 Apr 2022 00:28:51 +0800</pubDate><description><![CDATA[为了满足应用就近访问的需求，Kubernetes 提供了 Service Topology Aware Hints（即拓扑感知） 能力，本文介绍该特性的基本用法（基于 v1.21 版本）。
集群准备
# cat &lt;&lt; EOF &gt; cluster.yaml
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
  image: kindest/node:v1.21.10@sha256:847]]></description><category></category></item><item><title><![CDATA[Crane 成本优化工具体验记录]]></title><link>https://blog.csdn.net/shida_csdn/article/details/123679555</link><guid>https://blog.csdn.net/shida_csdn/article/details/123679555</guid><author>shida_csdn</author><pubDate>Wed, 23 Mar 2022 11:19:56 +0800</pubDate><description><![CDATA[Crane 成本优化工具实验记录
准备集群
本文通过 kind 创建一个四节点集群环境：
# cat &lt;&lt; EOF &gt; cluster.yaml
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
- role: worker
- role: worker
EOF
# kind create cluster --config cluster.yaml

安装]]></description><category></category></item><item><title><![CDATA[基于 KEDA 和 WorkloadSpread 的弹性 HPA 实验]]></title><link>https://blog.csdn.net/shida_csdn/article/details/123635205</link><guid>https://blog.csdn.net/shida_csdn/article/details/123635205</guid><author>shida_csdn</author><pubDate>Tue, 22 Mar 2022 19:43:51 +0800</pubDate><description><![CDATA[准备集群
本文通过 kind 创建一个四节点集群环境：
Linux amd64 机器安装 kind 命令：
# curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.12.0/kind-linux-amd64
# chmod +x ./kind
# mv ./kind /usr/bin/kind

初始化集群：
# cat &lt;&lt; EOF &gt; cluster.yaml
kind: Cluster
apiVersion: kind.x-k8s.io/v1]]></description><category></category></item></channel></rss>