当前位置: 首页 > news >正文

k8s备份

cpu
磁盘io

往主的写,同步给备

root@k8s-etcd02:~# cat  /etc/systemd/system/etcd.service 
[Unit]
Description=Etcd Server
After=network.target
After=network-online.target
Wants=network-online.target
Documentation=https://github.com/coreos[Service]
Type=notify
WorkingDirectory=/var/lib/etcd
ExecStart=/usr/local/bin/etcd \--name=etcd-192.168.1.22 \--cert-file=/etc/kubernetes/ssl/etcd.pem \--key-file=/etc/kubernetes/ssl/etcd-key.pem \--peer-cert-file=/etc/kubernetes/ssl/etcd.pem \--peer-key-file=/etc/kubernetes/ssl/etcd-key.pem \--trusted-ca-file=/etc/kubernetes/ssl/ca.pem \--peer-trusted-ca-file=/etc/kubernetes/ssl/ca.pem \--initial-advertise-peer-urls=https://192.168.1.22:2380 \--listen-peer-urls=https://192.168.1.22:2380 \--listen-client-urls=https://192.168.1.22:2379,http://127.0.0.1:2379 \--advertise-client-urls=https://192.168.1.22:2379 \--initial-cluster-token=etcd-cluster-0 \--initial-cluster=etcd-192.168.1.21=https://192.168.1.21:2380,etcd-192.168.1.22=https://192.168.1.22:2380,etcd-192.168.1.23=https://192.168.1.23:2380 \--initial-cluster-state=new \--data-dir=/var/lib/etcd \--wal-dir= \--snapshot-count=50000 \--auto-compaction-retention=1 \--auto-compaction-mode=periodic \--max-request-bytes=10485760 \--quota-backend-bytes=8589934592
Restart=always
RestartSec=15
LimitNOFILE=65536
OOMScoreAdjust=-999[Install]
WantedBy=multi-user.target

cpu
磁盘io

网络–》万M

监控etcd服务

root@k8s-etcd03:~# export NODE_IPS=“192.168.1.21 192.168.1.22 192.168.1.23”
root@k8s-etcd03:~# for ip in N O D E I P S ; d o E T C D C T L A P I = 3 / u s r / l o c a l / b i n / e t c d c t l − − e n d p o i n t s = h t t p s : / / {NODE_IPS}; do ETCDCTL_API=3 /usr/local/bin/etcdctl --endpoints=https:// NODEIPS;doETCDCTLAPI=3/usr/local/bin/etcdctlendpoints=https://{ip}:2379 --cacert=/etc/kubernetes/ssl/ca.pem --cert=/etc/kubernetes/ssl/etcd.pem --key=/etc/kubernetes/ssl/etcd-key.pem endpoint health; done
https://192.168.1.21:2379 is healthy: successfully committed proposal: took = 31.455832ms
https://192.168.1.22:2379 is healthy: successfully committed proposal: took = 21.7307ms
https://192.168.1.23:2379 is healthy: successfully committed proposal: took = 21.490284ms

备份

http://www.lryc.cn/news/230785.html

相关文章:

  • python自己造轮子使用
  • Elastic stack8.10.4搭建、启用安全认证,启用https,TLS,SSL 安全配置详解
  • 解决npm报错Error: error:0308010C:digital envelope routines::unsupported
  • 高防IP是什么?有什么优势?
  • php费尔康框架phalcon(费尔康)框架学习笔记
  • StartUML的基本使用
  • 飞天使-django概念之urls
  • MongoDB分片集群搭建
  • modbus报文
  • flutter报错: library “libflutter.so“ not found
  • MR混合现实情景实训教学系统模拟历史情景
  • 计算机视觉的应用16-基于pytorch框架搭建的注意力机制,在汽车品牌与型号分类识别的应用
  • Flutter 实现 Android CollapsingToolbarLayout折叠布局效果
  • 数据库管理-第116期 Oracle Exadata 06-ESS-下(202301114)
  • 阿里云C++二面面经
  • Ubuntu 20.04编译Chrome浏览器
  • 大文件分片上传、断点续传、秒传
  • DAY53 1143.最长公共子序列 + 1035.不相交的线 + 53. 最大子序和
  • 短剧App开发:个性化的内容推荐
  • 互斥量保护资源
  • 天机学堂-1、项目搭建,微服务架构设计
  • windows 电脑删除不了.TTF的文件
  • C#多线程的操作
  • MyBatis Plus—CRUD 接口
  • 火焰图:链路追踪分析的可视化利器
  • 中睿天下Coremail | 2023年Q3企业邮箱安全态势观察报告
  • HBuilderX vue项目打包上传到服务器
  • 2656. K 个元素的最大和 --力扣 --JAVA
  • 从HTTP到Tomcat:揭秘Web应用的底层协议与高性能容器
  • 百度搜索智能化算力调控分配方法