Jestin Blog

June 24,2022

"kubernetes etcd 节点扩容"

kubernetes etcd 节点扩容 需要原ca证书、ca配置文件 ca.pem ca-key.pem ca-config 修改证书配置文件 etcd-peer-req-csr.json hosts字段中添加节点ip和主机名 生成peer证书 cfssl gencert -ca=ca.pem -ca-key=ca-key.pem -config=ca-config -profile=pe...
June 24,2022

"kubernetes master 节点扩容"

kubernetes master 节点扩容 导出kubeadm配置 kubectl -n kube-system get configmap kubeadm-config -o jsonpath='{.data.ClusterConfiguration}' > kubeadm-init.yaml 要有controlPaneEndpoint字段 kubectl edit cm -n k...
June 24,2022

"failed to update lease, error: Operation cannot be fulfilled on leases.coordination.k8s.io "xxx": the object has been modified; please apply your changes to the latest version and try again"

k8s集群报错 ** 所有k8s节点/var/log/message中报错如下,反复执行kubectl命令后,返回pod运行状态反复在变化。 ** failed to update lease, error: Operation cannot be fulfilled on leases.coordination.k8s.io "kube-master2.cjestin.com&qu...
September 02,2020

"kubernetes 1.18交付prometheus、altermanager"

kubernetes交付prometheus、altermanager 数据存储在NFS上 /etc/exports /data/monitoring 10.100.0.0/16(rw,sync,no_root_squash) namespace apiVersion: v1 kind: Namespace metadata: name: monitoring rbac apiVersi...
April 03,2020

"logstash overwrite"

logstash overwrite 测试日志 2020-04-02 13:05:04.872 [http-nio-7777-exec-12] INFO 24f7db0b88f047eea361d5493c567349 com.addx.iotcamera.aop.LogRequestAndResponseAspect - Rest API(24f7db0b88f047eea361d5493c...