上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: k8集群未启动,报错信息如下 The connection to the server 192.168.37.201:6443 was refused - did you specify the right host or port? 首先查看systemctl status kubelet.ser 阅读全文
posted @ 2020-12-24 14:36 frantzz 阅读(1041) 评论(0) 推荐(0) 编辑
摘要: 1.查看k8集群各个组件的状态,kubectl get cs --all-namespaces 发现scheduler组件和controller-manager组件Unhealthy 2.报错表示连不上本地的10251和10252端口,那么首先查看其监听的端口是否存在 ss -ntlpu |grep 阅读全文
posted @ 2020-12-21 11:14 frantzz 阅读(1598) 评论(0) 推荐(0) 编辑
摘要: 32c64g内存的服务器,不到半天就告警了,告警信息是cpu和mem负载高。 1.关机重启机器 2.进去查看有哪些高负载进程,top shift+m,查看: 分析: 高cpu的进程属于apiserver,正常k8组件 。 排查过程: (1)docker stats查看那个容器资源使用大 (2)doc 阅读全文
posted @ 2020-12-18 10:27 frantzz 阅读(755) 评论(0) 推荐(0) 编辑
摘要: kubecl describe pod <pod名>,查看pod信息找到该微服务对应的image 1.docker pull <镜像名> 2.然后启动镜像并进入容器: docker run --rm -ti <镜像名> bash 3.执行启动脚本或者命令<pod的执行命令> 阅读全文
posted @ 2020-12-11 11:55 frantzz 阅读(366) 评论(0) 推荐(0) 编辑
摘要: ip a查看下机器的虚拟网卡名字,我的是ens192 -- 1.cd /etc/netplan 2.配置50-cloud-init.yam 3.netplan apply 4.验证 ifconfig -a 阅读全文
posted @ 2020-12-11 11:48 frantzz 阅读(105) 评论(0) 推荐(0) 编辑
摘要: helm是k8的包管理工具charts->helm仓库->release(pod/service)helm install --name {helm包名} {charts本地目录}->将charts安装到helm里面的同时部署到k8上(--name指定helm里面包的名字)--1.批量删除helm 阅读全文
posted @ 2020-12-09 12:07 frantzz 阅读(1644) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash ip=$1 user=$2 password=$3 expect <<EOF set timeout 30 spawn ssh $user@$ip expect { "yes/no" { send "yes\n";exp_continue } "password" { sen 阅读全文
posted @ 2020-12-07 17:23 frantzz 阅读(2236) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash for i in `cat /root/soft/ip.txt` do /usr/bin/expect << EOF spawn /usr/bin/ssh root@$i expect { "UNIX password" { send "Huawei@123\r" } } e 阅读全文
posted @ 2020-12-07 17:20 frantzz 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 该脚本实现自动化无需人机交互登陆远程多个ip(密码都一样)执行命令重启vspc服务。 1.创建ip_list_path 2. sh restartVspc.sh <密码> #!/bin/bash set -eux set timeout 30 password=$1 vspc_ip_list_pat 阅读全文
posted @ 2020-12-07 16:40 frantzz 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 先给虚拟机安装网卡。 配置ip:参考一下截图 更改适配器配置(找到目前的网卡,属性进去,配置ipv4属性) 阅读全文
posted @ 2020-11-20 11:04 frantzz 阅读(88) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 9 下一页