随笔 - 121
文章 - 0
评论 - 2
阅读 -
68745
10 2022 档案
calico 报auto-detect an IPv4 address using interface regexes [ens18]: no valid host interfaces found 问题处理
摘要:现象:.查看 calico pod 的时候 报auto-detect an IPv4 address using interface regexes [ens18]: no valid host interfaces found 分析:calico 开启了ipvs 地址自动检测的功能,然后匹配不到对
阅读全文
拉取镜像报Error response from daemon: Get https://: http: server gave HTTP response to HTTPS client
摘要:现象:拉取镜像报Error response from daemon: Get https://: http: server gave HTTP response to HTTPS client harbor默认是https协议的,如果想要通过http协议拉取harbor的镜像需要修改k8s每个节点
阅读全文
主机换ip ,导致master 节点执行 kubectl get cs 报Unable to connect to the server: x509: certificate is valid for 10.96.0.1xxxxx
摘要:1.把etcd 里面由原来ip产生的ca 文件 改成新ip重新生成新ip ca 文件,启动etcd ,验证etcd 成功后再往下走 2.查看apiserver 证书,证书没有所需要的ip地址 openssl x509 -noout -text -in /etc/kubernetes/pki/apis
阅读全文
配置docker 容器自定义ip 网段
摘要:1. 打开 cat /etc/docker/daemon.json 添加 "bip":"192.168.0.1/16", 配置如下 { "bip":"192.168.0.1/16", "data-root": "/data/bkce/public/paas_agent/docker", "exec-
阅读全文
清除calico CNI 插件脏数据
摘要:操作命令如下: rm /var/lib/cni/ -rf && rm -f /etc/cni/net.d/*systemctl restart docker containerd kubelet
阅读全文
clusterrole "prometheus-k8s" 权限配置
摘要:现象: Failed to watch *v1.Endpoints: failed to list *v1.Endpoints: endpoints is forbidden: User \"system:serviceaccount:monitoring:prometheus-k8s\" cann
阅读全文
zabbix 自定义服务监控模板监控项
摘要:1.zabbix 创建主机群组 2.创建监控模板,选择刚刚创建的群组 3.选择刚刚创建的模板,依次自定义应用集,监控项,触发器,图形,自动发现等 4.选择主机添加刚刚创建的监控模板就能自定义监控服务了 5.在zabbix_agent客户端,添加监控键值 6.zabbix_agent,端,zabbix
阅读全文
zabbix 自定义监控项
摘要:1.zabbix_agent 端配置 [root@k8s1 ~]# egrep -v "^$|^#" /usr/local/zabbix/etc/zabbix_agentd.confLogFile=/tmp/zabbix_agentd.logServer=x.x.x.x # zabbix serve
阅读全文