会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Loading
思进取,逆进行
专注linux运维,Golang, python自动化开发。不做长篇大论,每一篇一个知识点,滴水穿石。
博客园
首页
新随笔
联系
订阅
管理
2025年9月18日
pod 内nslookup请求时常异常
摘要: pod 内nslookup请求时常异常 现象 原因 在 /etc/resolv.conf 添加了 search tbsite.net 。 kubelet clusterfist 会自动将宿主机的 search 追加到 search default.svc.cluster.local svc.clus
阅读全文
posted @ 2025-09-18 16:55 尚墨
阅读(18)
评论(0)
推荐(0)
2024年9月30日
如何解决k8s CNI 子网不够问题
摘要: 问题现象 CNI 状态 CrashLookBackOff 问题原因 默认环境下 k8s 每个 node 的CNI subnet 子网是一个 24位掩码的子网。当集群总结点数超过 255 个将导致 CNI 子网不足。我们有两种方式结局 解决方案 init 集群指定 kube-controller-ma
阅读全文
posted @ 2024-09-30 14:15 尚墨
阅读(96)
评论(0)
推荐(0)
k8s v1.29 以上版本使用 kube-vip 做高可用
摘要: 报错信息 time="2023-12-14T09:30:38Z" level=info msg="namespace [kube-system], Mode: [ARP], Features(s): Control Plane:[true], Services:[false]" time="2023
阅读全文
posted @ 2024-09-30 14:09 尚墨
阅读(307)
评论(0)
推荐(0)
2024年1月22日
k8s_client-go 构建客户端的几种方式
摘要: kubernetes client-go 构建客户端的几种方式 package callk8s import ( "context" "log" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" "
阅读全文
posted @ 2024-01-22 11:45 尚墨
阅读(54)
评论(0)
推荐(0)
2023年6月2日
服务注册与发现-etcd 遇见的问题
摘要: # 服务注册与发现-etcd 遇见的问题 # 问题现象 grpc client 调用 server ,通过 etcd 提供服务发现能力 ```Plain Text 2023/06/02 11:25:33 scheme: etcd; {"level":"warn","ts":"2023-06-02T1
阅读全文
posted @ 2023-06-02 14:33 尚墨
阅读(164)
评论(0)
推荐(0)
2022年12月5日
代理,装饰,适配,桥接,面孔的区别
摘要: 代理,装饰,适配,桥接,面孔的区别 Proxy could be used when you want to lazy-instantiate an object, or hide the fact that you're calling a remote service, or control a
阅读全文
posted @ 2022-12-05 17:07 尚墨
阅读(76)
评论(0)
推荐(0)
2022年9月15日
封装 logrus
摘要: 封装 logrus Golang 常用的 log 库 golang 标准库的 log 也很好用,但是缺乏一些特性功能,新能较差,所以社区衍生出如下日志库: logrus 可能是最早的第三方日志库 uber_zap 优步推出的高性能日志库 go-kit 基于 kit 产生了很多的衍生品,例如: pro
阅读全文
posted @ 2022-09-15 15:22 尚墨
阅读(950)
评论(0)
推荐(0)
2022年9月6日
nerdctl 套件
摘要: nerdctl 套件 准备 nerdctl 全量安装包 # github containerd/nerdctl 项目 release 中下载 full 包,例如: wget https://github.com/containerd/nerdctl/releases/download/v0.22.2
阅读全文
posted @ 2022-09-06 17:38 尚墨
阅读(899)
评论(0)
推荐(0)
2022年6月14日
删除 NameSpace 时长时间无法删除
摘要: 删除 NameSpace 时长时间无法删除 最主要的原因是 finalizers 列表中还有资源未被删除 apiVersion: v1 kind: Namespace metadata: annotations: cattle.io/status: '{"Conditions":[{"Type":"
阅读全文
posted @ 2022-06-14 09:45 尚墨
阅读(121)
评论(1)
推荐(0)
2022年4月13日
k3s 私有仓库问题
摘要: k3s 私有仓库问题 现象 配置 /etc/rancher/k3s/registries.yaml 但是依旧无法使用私有镜像仓库(http) /var/lib/rancher/k3s/agent/etc/containerd/config.toml 也没有生成 私有镜像仓库配置 坑 在初始化 k3s
阅读全文
posted @ 2022-04-13 10:40 尚墨
阅读(1228)
评论(1)
推荐(0)
下一页
公告