2024年4月8日

prometheus

摘要: https://www.prometheus.wang/ 阅读全文

posted @ 2024-04-08 17:55 running-fly 阅读(2) 评论(0) 推荐(0) 编辑

2024年3月29日

golang 读取文件内容,清空文件内容,把读取的内容写入到文件里

摘要: package main import ( "encoding/json" "fmt" "io" "log" "os" ) type PvRelationList struct { Item []PvRelationInfo `json:"item"` } type PvRelationInfo s 阅读全文

posted @ 2024-03-29 15:32 running-fly 阅读(4) 评论(0) 推荐(0) 编辑

2023年12月22日

csi 学习文档

摘要: https://www.cnblogs.com/yangyuliufeng/p/14360558.html https://kubernetes-csi.github.io/docs/introduction.html https://github.com/container-storage-int 阅读全文

posted @ 2023-12-22 17:53 running-fly 阅读(4) 评论(0) 推荐(0) 编辑

kubelet 日志查看

摘要: journalctl -xefu kubelet查看kubelet日志 阅读全文

posted @ 2023-12-22 17:52 running-fly 阅读(7) 评论(0) 推荐(0) 编辑

2023年11月14日

k8s 学习

摘要: https://blog.csdn.net/qq_42956653/category_11657432.html https://blog.csdn.net/weixin_41947378/article/details/111509849 阅读全文

posted @ 2023-11-14 23:03 running-fly 阅读(5) 评论(0) 推荐(0) 编辑

git 多个commit 合并为一个commit

摘要: https://zhuanlan.zhihu.com/p/577799326 阅读全文

posted @ 2023-11-14 15:54 running-fly 阅读(3) 评论(0) 推荐(0) 编辑

2023年11月9日

reflect 学习

摘要: https://blog.csdn.net/hdxx2022/article/details/132357273 阅读全文

posted @ 2023-11-09 10:36 running-fly 阅读(5) 评论(0) 推荐(0) 编辑

2023年10月26日

go os.signal 信号控制

摘要: package main import ( "fmt" "os" "os/signal" "syscall" "time" ) func main() { //创建监听退出chan c := make(chan os.Signal) //监听指定信号 ctrl+c kill signal.Notif 阅读全文

posted @ 2023-10-26 16:34 running-fly 阅读(10) 评论(0) 推荐(0) 编辑

2023年10月20日

go 格式化json

摘要: package main import ( "bytes" "encoding/json" "fmt" ) func main() { // 原始 JSON 字符串 var jsonStr = []byte(`{"Name":"Gopher","Title":"Programmer","Contac 阅读全文

posted @ 2023-10-20 09:17 running-fly 阅读(132) 评论(0) 推荐(0) 编辑

2023年10月10日

channel 通道错误的使用例子

摘要: 1.向已经关闭的通道发送值,引起panic错误 package main import "fmt" func recv(c chan int) { ret := <-c fmt.Println("接收成功", ret) } func main() { ch := make(chan int) go 阅读全文

posted @ 2023-10-10 10:26 running-fly 阅读(19) 评论(0) 推荐(0) 编辑

导航