摘要: 1 阅读全文
posted @ 2024-07-01 22:25 9912 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 常用命令 获取所有节点 kubectl get nodes 获取所有的pod kubectl get pods -A 每隔1秒钟执行kubectl get pod watch -n -1 kubectl get pod 监控所有的应用 kubectl get pods -A -w 创建节点新令牌 k 阅读全文
posted @ 2024-06-24 21:56 9912 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 环境centos7.9 安装地址:https://mirrors.aliyun.com/centos/7.9.2009/isos/x86_64/?spm=a2c6h.25603864.0.0.4a85f5adRRKnVY 服务器要求: 建议最小硬件配置:2核CPU、2G内存、20G硬盘。 服务器可以 阅读全文
posted @ 2024-06-22 22:52 9912 阅读(5) 评论(0) 推荐(0) 编辑
摘要: kill-9与kill区别; 首先两个指令都是杀死进行的效果,执行kill命令,系统会发送一个sigterm信号给对应的程序,当程序收到该sigterm信号后,有以下几种情况:1.程序立即停止,2.程序释放资源后在停止,3.程序可能继续运行、大部分情况下收到信号之后,会先释放自己的资源,然后在停止, 阅读全文
posted @ 2022-08-18 15:58 9912 阅读(982) 评论(0) 推荐(0) 编辑
摘要: callers.go package log import ( "path/filepath" "runtime" "strconv" "strings" "github.com/sirupsen/logrus" ) const ( depth = 9 ) // CallerHook represe 阅读全文
posted @ 2022-08-03 15:33 9912 阅读(103) 评论(0) 推荐(0) 编辑