08 2022 档案

摘要:1. 问题 [root@localhost ~]# yum install https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm Repository extras is listed more than once in the 阅读全文
posted @ 2022-08-31 18:30 LeoShi2020 阅读(1700) 评论(0) 推荐(0) 编辑
摘要:[root@localhost ~]# nmcli connection reload eth0 阅读全文
posted @ 2022-08-31 18:03 LeoShi2020 阅读(7) 评论(0) 推荐(0) 编辑
摘要:1. docker镜像删除报错 [root@www ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE dcm4che/slapd-dcm4chee 2.6.2-26.1 8f1f18417a82 2 months ago 12.2MB dc 阅读全文
posted @ 2022-08-31 11:06 LeoShi2020 阅读(247) 评论(0) 推荐(0) 编辑
摘要:1. 修改配置文件 /etc/kubernetes/plugins/dns-cache/nodelocaldns.yaml sed 's/k8s.gcr.io/gcr.azk8s.cn\/google_containers/g s/__PILLAR__DNS__SERVER__/192.168.0. 阅读全文
posted @ 2022-08-25 10:29 LeoShi2020 阅读(436) 评论(0) 推荐(0) 编辑
摘要:kubectl edit cm coredns -n kube-system 删除 forward . /etc/resolv.conf { max_concurrent 1000 } 删除 pod 即可 阅读全文
posted @ 2022-08-25 10:21 LeoShi2020 阅读(1523) 评论(0) 推荐(0) 编辑
摘要:mkfs.xfs -K /dev/sdx 阅读全文
posted @ 2022-08-24 08:59 LeoShi2020 阅读(261) 评论(0) 推荐(0) 编辑
摘要:1. 添加repo库 yum -y install https://www.elrepo.org/elrepo-release-7.el7.elrepo.noarch.rpm 2. 导入签名 rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo 阅读全文
posted @ 2022-08-14 20:48 LeoShi2020 阅读(1028) 评论(0) 推荐(1) 编辑
摘要:1. 为kubeadm添加变量 vi /usr/lib/systemd/system/kubelet.service.d/10-kubeadm.conf Environment="KUBELET_NETWORK_ARGS network-plugin=cni --cni-conf-dir=/etc/ 阅读全文
posted @ 2022-08-12 23:20 LeoShi2020 阅读(4292) 评论(0) 推荐(0) 编辑
摘要:1. 查看当前Cgroup状态 [root@master1 cluster]# docker info | grep Cgrou Cgroup Driver: cgroupfs Cgroup Version: 1 2. 修改Cgroup状态 vi /etc/docker/daemon.json { 阅读全文
posted @ 2022-08-12 23:02 LeoShi2020 阅读(97) 评论(0) 推荐(0) 编辑
摘要:1. 查找软件支持的版本 yum --showduplicates list <软件名称> 2. 安装指定的版本 [root@localhost ~]# yum --showduplicates list kubelet | grep 1.21.1 kubelet.x86_64 1.21.1-0 k 阅读全文
posted @ 2022-08-12 21:11 LeoShi2020 阅读(249) 评论(0) 推荐(0) 编辑
摘要:[root@master1 ~]# kubeadm init --kubernetes-version 1.24.3 --apiserver-advertise-address=0.0.0.0 --service-cidr=10.96.0.0/16 --pod-network-cidr=10.250 阅读全文
posted @ 2022-08-12 15:44 LeoShi2020 阅读(3040) 评论(0) 推荐(0) 编辑
摘要:1. 批量执行scp # 将本机文件批量复制到 192.168.1.1-10 这10台服务器上 for i in {1..10};do scp /etc/yum.repos.d/CentOS-Base.repo 192.168.1.${i}:/etc/yum.repos.d/;done END 阅读全文
posted @ 2022-08-12 08:26 LeoShi2020 阅读(37) 评论(0) 推荐(0) 编辑
摘要:1. 查看当前转发的端口 netsh interface portproxy show all 侦听 ipv4: 连接到 ipv4: 地址 端口 地址 端口 * 22222 127.0.0.1 1291 2. 删除转发的端口 netsh interface portproxy delete v4to 阅读全文
posted @ 2022-08-11 19:46 LeoShi2020 阅读(122) 评论(0) 推荐(0) 编辑
摘要:1. Harbor默认subnet 172.21.0.0/16 docker network inspect harbor_harbor [ { "Name": "harbor_harbor", "Id": "15a6c2b48fb12096bf54476a2b9901b6e7cf74001cc68 阅读全文
posted @ 2022-08-11 16:12 LeoShi2020 阅读(126) 评论(0) 推荐(0) 编辑
摘要:1. 生成证书 ssh-keygen -b 2048 -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Created directory ' 阅读全文
posted @ 2022-08-10 17:03 LeoShi2020 阅读(47) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示