摘要: 环境 centos7.x DNS SERVER:10.40.248.93 简介 DNS域名系统:过域名系统,可以使用易于理解和形象的字符串名称来标识网络应用(如www.baidu.com、www.taobao.com)。访问互联网应用可以使用域名,也可以通过IP地址直接访问该应用,在使用域名访问网络 阅读全文
posted @ 2022-08-18 11:24 Wshile 阅读(48) 评论(0) 推荐(0) 编辑
摘要: mysql-configmap.yaml apiVersion: v1 kind: ConfigMap metadata: name: mysql labels: app: mysql data: master.cnf: | # Apply this config only on the maste 阅读全文
posted @ 2021-11-15 09:26 Wshile 阅读(31) 评论(0) 推荐(0) 编辑
摘要: etcd频繁选举leader 集群中etcd出现报警 Alert Name: A high number of leader changes within the etcd cluster are happening Severity: warning Cluster Name: shdmz-pro 阅读全文
posted @ 2020-07-12 20:10 Wshile 阅读(2543) 评论(0) 推荐(0) 编辑
摘要: 1、创建service apiVersion: v1 kind: Service metadata: labels: app: prometheus-operator-coredns chart: prometheus-operator-7.4.0 heritage: Tiller jobLabel 阅读全文
posted @ 2020-07-08 18:25 Wshile 阅读(1029) 评论(0) 推荐(0) 编辑
摘要: 1. 添加service apiVersion: v1 kind: Service metadata: annotations: field.cattle.io/creatorId: user-9r9cp field.cattle.io/ipAddresses: '["10.211.41.10"," 阅读全文
posted @ 2020-07-08 16:24 Wshile 阅读(528) 评论(0) 推荐(0) 编辑
摘要: 1 阅读全文
posted @ 2020-06-27 17:06 Wshile 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 1. 查看coreDNS是否正常启动 kubectl -n kube-system get po|grep core 2. 如果不正常,并确定yaml配置无误,可将coreDNS pod通过修改deployment yaml 添加 nodeName尝试调度到其他节点,排查是否为node原因,或直接通 阅读全文
posted @ 2020-06-27 10:07 Wshile 阅读(2204) 评论(0) 推荐(0) 编辑
摘要: 基于kubeadm的etcd单节点扩容 签发证书 /opt# cd ~/openssl/ ~/openssl# cp /etc/kubernetes/pki/etcd/ca.crt . ~/openssl# cp /etc/kubernetes/pki/etcd/ca.key . 证书签发 ~/op 阅读全文
posted @ 2020-06-27 00:09 Wshile 阅读(752) 评论(0) 推荐(0) 编辑
摘要: 基于kubeadm Etcd集群数据恢复方案 etcd HA集群中单台etcd故障不更换ip恢复方式 概述 单master节点,会将90作为故障节点删除并进行修复 查看当前节点状态 /opt# kubectl -nkube-system get po|grep etcd # 查看etcd集群状态 / 阅读全文
posted @ 2020-06-26 17:04 Wshile 阅读(1293) 评论(0) 推荐(0) 编辑
摘要: Python实现markdown转换为pdf 概述 公司最近需求,是将线上集群信息收集起来,并使用markdown展示,但是为避免人为修改数据所以需要转换成pdf格式,花上端午节空闲时间找了一些资料,做了一些汇总。 贴上markdown生成脚本示例 #!/use/bin/python from md 阅读全文
posted @ 2020-06-26 10:33 Wshile 阅读(4069) 评论(0) 推荐(0) 编辑