会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
MhaiM
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
9
10
···
12
下一页
2023年7月3日
容器生命周期配置
该文被密码保护。
阅读全文
posted @ 2023-07-03 21:15 MhaiM
阅读(13)
评论(0)
推荐(0)
编辑
kubelet报bootstrap-kubelet.conf: no such file or directory" 处理方法
摘要: 1、 kubelet 启动 报 unable to load bootstrap kubeconfig: stat /etc/kubernetes/bootstrap-kubelet.conf: no such file or directory" ,原因是kubelet.conf的证书权限有问题
阅读全文
posted @ 2023-07-03 20:02 MhaiM
阅读(3028)
评论(0)
推荐(0)
编辑
2023年6月21日
hostAliases给pod增加域名解析
摘要: 前言:我们知道k8s访问内部域名可以使用 pod名.namespace.svc.cluster.local,但有时需要往pod增加自定义的host解析。有一个参数可以支持,在deployment.spec.spec中添加1、添加配置如下 spec: hostAliases: - ip: 10.107
阅读全文
posted @ 2023-06-21 10:24 MhaiM
阅读(97)
评论(0)
推荐(0)
编辑
K8S coredns ndots 优化
摘要: 解析:ndots 含义 ndots 意思就是 点号. (dot) 的个数ndots: 5 就是 5个点号5个点号 的意思就是说对于一个 域名, 如果不是完全限定名(即某个域名不是以. 结尾, a.com 不是, a.com. 是)且点号数量少于5个, 那么就按照 search 的顺序,依次解析如果点
阅读全文
posted @ 2023-06-21 09:34 MhaiM
阅读(226)
评论(0)
推荐(0)
编辑
2023年6月20日
pod 容器通过环境变量添加日志等级日志输出
摘要: 1、日志级别有 "debug", "info", "warn", "error", "fatal", "panic" 2、给服务添加环境变量 kubectl set env LOG_LEVEL=info deployments.apps/nginx
阅读全文
posted @ 2023-06-20 18:07 MhaiM
阅读(9)
评论(0)
推荐(0)
编辑
2023年6月16日
生产K8S 集群优化
摘要: #数据背景: *100000+ pod *1300+node *3集群(单:11Master + 17ETCD) #遇到的问题: apiserver 调度,延时问题 Controller 不能及时从 API Server 感知到最新的变化,处理的延时较高 Scheduler 延迟高、吞吐低,无法适应
阅读全文
posted @ 2023-06-16 10:06 MhaiM
阅读(152)
评论(0)
推荐(0)
编辑
设置docker 容器资源限制
摘要: 样例: docker run -d -p80:80 --name nginx --cpus 0.1 --memory 512M nginx --cpus #将容器的CPU 资源限制为0.1 核 --memory # 将容器的内存资源限制为 512MB
阅读全文
posted @ 2023-06-16 09:25 MhaiM
阅读(19)
评论(0)
推荐(0)
编辑
2023年5月30日
动态pvc 配置 样例
摘要: cat loki-pvc.yaml kind: PersistentVolumeClaim apiVersion: v1 metadata: name: loki namespace: monitoring # 指定namespace为monitoringspec: storageClassName
阅读全文
posted @ 2023-05-30 10:22 MhaiM
阅读(29)
评论(0)
推荐(0)
编辑
2023年5月22日
kibana 部署教程
摘要: 1、 kibana 下载地址 wget https://artifacts.elastic.co/downloads/kibana/kibana-7.14.0-linux-x86_64.tar.gz 2、创建普通用户 groupadd -g 10001 user_esuseradd -g 10001
阅读全文
posted @ 2023-05-22 11:54 MhaiM
阅读(157)
评论(0)
推荐(0)
编辑
2023年5月8日
skywalking 集群部署
摘要: 1、安装包:apache-skywalking-apm-es7-8.7.0.tar.gz 下载地址: https://archive.apache.org/dist/skywalking/8.7.0/apache-skywalking-apm-es7-8.7.0.tar.gz 2、 安装包解压 ta
阅读全文
posted @ 2023-05-08 20:07 MhaiM
阅读(428)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
7
8
9
10
···
12
下一页
公告