2025年6月11日

docker build 命令上下文详解

摘要: 解释链接 https://juejin.cn/post/7233964656288088124 阅读全文

posted @ 2025-06-11 18:08 running-fly 阅读(3) 评论(0) 推荐(0)

2025年5月28日

golang 文件锁

摘要: func TryLockFile(filePath string) (bool, *os.File) { file, err := os.OpenFile(filePath, os.O_CREATE|os.O_RDWR, 0644) if err != nil { return false, nil 阅读全文

posted @ 2025-05-28 06:35 running-fly 阅读(2) 评论(0) 推荐(0)

2025年5月19日

client-go informer 机制详解

摘要: https://jimmysong.io/kubernetes-handbook/develop/client-go-informer-sourcecode-analyse.html 阅读全文

posted @ 2025-05-19 20:58 running-fly 阅读(10) 评论(0) 推荐(0)

2025年5月15日

golang 反射

摘要: 反射例子 https://blog.csdn.net/2302_80713883/article/details/146767345 反射讲解 https://draven.co/golang/docs/part2-foundation/ch04-basic/golang-reflect/ 阅读全文

posted @ 2025-05-15 23:56 running-fly 阅读(10) 评论(0) 推荐(0)

2025年5月9日

如何使用dlv调试golang coredump

摘要: dlv 是 Delve 的命令行界面,Delve 是一个专门为 Go 语言设计的调试器,它支持调试运行中的 Go 程序,也支持分析 core dump 文件。以下是使用 dlv 调试 Go 程序生成的 core dump 的基本步骤: 1.编译 Go 程序: 编译你的 Go 程序 go build 阅读全文

posted @ 2025-05-09 10:53 running-fly 阅读(57) 评论(0) 推荐(0)

2025年4月22日

编译k8s 1.12.10版本kubelet

摘要: 环境信息 golang go1.10.4 内核 Linux master 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux 安装golang 下载 wget https:// 阅读全文

posted @ 2025-04-22 11:30 running-fly 阅读(1) 评论(0) 推荐(0)

2025年4月12日

golang dlv 调试

摘要: 1.dlv 详解 https://blog.csdn.net/weixin_49015143/article/details/134912008 2.dlv 示例 https://blog.csdn.net/weixin_40242845/article/details/120960775 阅读全文

posted @ 2025-04-12 16:33 running-fly 阅读(27) 评论(0) 推荐(0)

2025年4月6日

linux 设置环境变量的文件

摘要: 在 Linux 和 Unix 系统中,有多个文件可以用来设置环境变量。环境变量可以在用户登录时或在特定的 shell 会话中被加载。以下是常见的用于设置环境变量的文件及其用途: 1. .bash_profile 位置: 用户主目录下(例如 /home/username/.bash_profile)。 阅读全文

posted @ 2025-04-06 11:27 running-fly 阅读(289) 评论(0) 推荐(0)

2025年3月11日

k8s 容器运行时docker 切换为containerd

摘要: 修改kubelet配置,将当前节点的默认容器运行时修改为containerd: vim /etc/sysconfig/kubelet KUBELET_EXTRA_ARGS container-runtime=remote --container-runtime-endpoint=unix:///ru 阅读全文

posted @ 2025-03-11 19:53 running-fly 阅读(37) 评论(0) 推荐(0)

2025年2月27日

go test

摘要: 运行指定的test 单元测试函数 go test -mod=vendor mount_test.go mount_linux.go mount.go -run TestParseMountInfo 阅读全文

posted @ 2025-02-27 15:46 running-fly 阅读(3) 评论(0) 推荐(0)

导航