摘要: 一、自定义监控 1.新增PrometheusRule资源,定义自己的监控项目 apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: labels: #安装kube-prometheus对应的标签 app.kuberne 阅读全文
posted @ 2022-04-25 11:15 巽逸 阅读(1528) 评论(0) 推荐(0) 编辑
摘要: 一、自定义监控 1.新增PrometheusRule资源,定义自己的监控项目 apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: labels: #安装kube-prometheus对应的标签 app.kuberne 阅读全文
posted @ 2022-04-25 11:05 巽逸 阅读(0) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash build_dir=/data/project_build openssl_download=https://www.openssl.org/source/openssl-1.1.1m.tar.gz openssh_download=https://mirrors.aliyu 阅读全文
posted @ 2022-01-14 10:03 巽逸 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 一、kubelet镜像回收与容器回收 kubelet默认的镜像垃圾回收:image-gc-high-threshold,触发镜像垃圾回收的磁盘使用率百分比。默认值为 85%。 #imageGCHighThresholdPercentimage-gc-low-threshold,镜像垃圾回收试图释放资 阅读全文
posted @ 2021-09-24 11:51 巽逸 阅读(884) 评论(0) 推荐(0) 编辑
摘要: 一、环境介绍 官方文档:https://kubernetes.io/zh/docs/setup/production-environment/container-runtimes/#containerd [root@master ~]# kubectl get node -o wide NAME S 阅读全文
posted @ 2021-07-01 14:55 巽逸 阅读(2878) 评论(0) 推荐(0) 编辑
摘要: 一、创建访问的证书 1、查看/root/.kube/config cat /root/.kube/config 2、把证书设为环境变量 export clientcert=$(grep client-cert ~/.kube/config |cut -d" " -f 6) export client 阅读全文
posted @ 2021-06-30 10:03 巽逸 阅读(922) 评论(0) 推荐(0) 编辑
摘要: 一、问题描述 容器中修改了/etc/hosts文件。手动测试已经生效。但是容器中的项目却还是访问的公网。 二、问题解决 修改dockerfile。在dockerfile中添加/etc/nsswitch.conf文件 RUN [ ! -e /etc/nsswitch.conf ] && echo 'h 阅读全文
posted @ 2021-06-18 16:10 巽逸 阅读(771) 评论(0) 推荐(0) 编辑
摘要: 一、问题描述 删除namespace资源时忘记先删除namespace中的其他资源了。然后状态就一直是Terminating 二、删除语句 注意:kubesphere-system是需要删除的namespace kubectl get namespace kubesphere-system -o j 阅读全文
posted @ 2021-06-11 16:53 巽逸 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 一、基础环境介绍 阿里云服务器 centos 7.9 [root@master ~]# cat /etc/hosts ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 127.0.0.1 localhost 阅读全文
posted @ 2021-06-11 14:18 巽逸 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 1、问题:使用Pipeline script from SCM传递的分支参数无法解析。问题解决 关闭轻量级检出 阅读全文
posted @ 2021-05-21 16:38 巽逸 阅读(478) 评论(0) 推荐(0) 编辑