会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
liy36
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2024年7月23日
Go使用HTTP的私有仓库中的模块
摘要: Go使用HTTP的私有仓库中的模块 1. 导入方设置Go变量 go env -w GOPRIVATE='gitlab.xxe.example.com' go env -w GOINSECURE='gitlab.xxe.example.com' # 因为中间多了一级.xxe导致不能用通配域名 2. 仓
阅读全文
posted @ 2024-07-23 17:47 liy36
阅读(138)
评论(0)
推荐(0)
2024年1月17日
Kubernetes Pod 日志中报 pthread_create failed: Resource temporarily unavailable 错误
摘要: 查看Pod日志中显示 pthread_create failed: Resource temporarily unavailable 通过监控系统查看节点的进程数 topk(3,sum(container_threads{cluster="env",node="worker-13"}) by (po
阅读全文
posted @ 2024-01-17 10:17 liy36
阅读(316)
评论(0)
推荐(0)
2023年7月17日
Prometheus常用查询
摘要: # Prometheus常用查询 ## 集群指标 ``` promql # CPU核心总数 sum(machine_cpu_cores{cluster="$cluster",job="kubelet"}) by(cluster) # CPU请求总数 sum(kube_pod_container_re
阅读全文
posted @ 2023-07-17 09:27 liy36
阅读(677)
评论(0)
推荐(0)
2023年7月15日
jq 命令备忘
摘要: # jq 命令常用语法 > demo数据 ``` json [ { "name": "user_b75b", "password": "UC9NxVUzfEVq", "instance_id": "rm-3aa3c7a51c6d6491d2421822" }, { "name": "user_fc4
阅读全文
posted @ 2023-07-15 20:28 liy36
阅读(35)
评论(0)
推荐(0)
2023年2月20日
bash自动补全懒加载
摘要: # 使用懒加载优化bash启动速度 ## 优化前 bash补全配置 ``` bash # ~/.bash_profile source .bash_completion # ~/.bash_completion source '/opt/homebrew/etc/profile.d/bash_com
阅读全文
posted @ 2023-02-20 14:09 liy36
阅读(89)
评论(0)
推荐(0)
2022年8月17日
使用Containerd构建容器镜像
摘要: 使用Containerd构建容器镜像 一. 安装Containerd 1.1. 下载软件包 https://github.com/containerd/containerd/releases wget https://github.com/containerd/containerd/releases
阅读全文
posted @ 2022-08-17 15:10 liy36
阅读(2125)
评论(0)
推荐(0)
2022年8月16日
containerd 配置镜像加速
摘要: Containerd配置镜像加速 参考文档 修改步骤 1. 修改Config.toml文件 1.x.x 版本配置文件 [plugins."io.containerd.grpc.v1.cri".registry] config_path = "/etc/containerd/certs.d" # 镜像
阅读全文
posted @ 2022-08-16 10:30 liy36
阅读(6724)
评论(0)
推荐(0)
2022年8月12日
Shell脚本执行时打印执行的命令
摘要: ``` #!/bin/bash # filename: a.sh # 设置PS4环境变量 export PS4='+ $(basename "$0"):${FUNCNAME}:$LINENO: ' if [ "$debug" == "true" -o "$debug" == "yes" ];then
阅读全文
posted @ 2022-08-12 16:04 liy36
阅读(1880)
评论(0)
推荐(0)
2022年8月11日
生成Kubernetes证书
摘要: 环境准备 1. 下载Kubernetes软件包 # https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.24.md wget https://storage.googleapis.com/kuberne
阅读全文
posted @ 2022-08-11 15:42 liy36
阅读(278)
评论(0)
推荐(0)
2022年6月10日
获取K8s节点Shell
摘要: # 登录 Pod 所在节点的 Shell 脚本 ``` bash #!/usr/bin/env bash # # author: liy # filename: entry_node.sh if [ $# -lt 1 ];then printf "Usage: %s [Namespace]\n" "
阅读全文
posted @ 2022-06-10 14:08 liy36
阅读(310)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告