会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
MhaiM
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
3
4
5
6
7
8
9
10
11
···
13
下一页
2023年7月10日
nerdctl 构建镜像
摘要: 1、安装buildkit 客户端,buildkit 服务 下载地址:wget https://github.com/moby/buildkit/releases/download/v0.11.6/buildkit-v0.11.6.linux-amd64.tar.gz 解压复制到/usr/bin ta
阅读全文
posted @ 2023-07-10 14:31 MhaiM
阅读(523)
评论(0)
推荐(0)
2023年7月3日
容器生命周期配置
该文被密码保护。
阅读全文
posted @ 2023-07-03 21:15 MhaiM
阅读(23)
评论(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" 2、原因: 由于kubelet.conf配置不正确
阅读全文
posted @ 2023-07-03 20:02 MhaiM
阅读(5463)
评论(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
阅读(193)
评论(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
阅读(703)
评论(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
阅读(31)
评论(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
阅读(442)
评论(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
阅读(48)
评论(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
阅读(47)
评论(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
阅读(297)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
13
下一页
公告