上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 53 下一页
摘要: 仓库: https://github.com/heptiolabs/healthcheck.git https://pkg.go.dev/github.com/heptiolabs/healthcheck#section-readme healthcheck 实现了一个开箱即用的Kubernetes 阅读全文
posted @ 2021-10-19 10:42 salami_china 阅读(394) 评论(0) 推荐(0) 编辑
摘要: 问题:Ncat: socket: Address family not supported by protocol QUITTING 原因:使用ipv4, 默认会使用v4 v6, 如果v6禁用了,就会出现这个错误 解决:nc -lk4 8080 阅读全文
posted @ 2021-10-15 19:53 salami_china 阅读(1157) 评论(0) 推荐(0) 编辑
摘要: kubernetes 官网链接: https://v1-18.docs.kubernetes.io/zh/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/ 项目参考: https://github.com/NVID 阅读全文
posted @ 2021-09-29 12:16 salami_china 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 参考链接:https://www.cnblogs.com/landv/p/13139127.html Notify函数让signal包将输入信号转发到c。如果没有列出要传递的信号,会将所有输入信号传递到c;否则只传递列出的输入信号。 signal包不会为了向c发送信息而阻塞(就是说如果发送时c阻塞了 阅读全文
posted @ 2021-09-29 11:49 salami_china 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 详细链接:https://www.cnblogs.com/jkko123/p/7256927.html package main; import ( "github.com/fsnotify/fsnotify" "log" "fmt" ) func main() { //创建一个监控对象 watch 阅读全文
posted @ 2021-09-29 11:44 salami_china 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 详细信息参考:https://www.jb51.net/article/202380.htm package main import ( "github.com/urfave/cli" "os" "log" "fmt" ) func main() { //实例化一个命令行程序 oApp := cli 阅读全文
posted @ 2021-09-29 11:32 salami_china 阅读(1008) 评论(0) 推荐(0) 编辑
摘要: 问题:git pull 下载失败 现象: git clone https://github.com/NVIDIA/k8s-device-plugin.git fatal: unable to access 'xxx': Encountered end of file 解决:https改成git gi 阅读全文
posted @ 2021-09-29 10:39 salami_china 阅读(2793) 评论(0) 推荐(0) 编辑
摘要: 参考链接:https://www.cnblogs.com/charlieroro/p/11112526.html 1.实现了对golang map的key的处理,如计算交集,并集等。 package main import ( "fmt" "k8s.io/apimachinery/pkg/util/ 阅读全文
posted @ 2021-09-28 19:58 salami_china 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://studygolang.com/articles/13441?fr=sidebar package main import ( "fmt" "k8s.io/apimachinery/pkg/util/wait" "time" ) type stop struct { } f 阅读全文
posted @ 2021-09-27 16:37 salami_china 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 参考链接:https://studygolang.com/articles/26215?fr=sidebar viper 是一个配置解决方案,拥有丰富的特性: 支持 JSON/TOML/YAML/HCL/envfile/Java properties 等多种格式的配置文件; 可以设置监听配置文件的修 阅读全文
posted @ 2021-09-26 15:18 salami_china 阅读(145) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 53 下一页