- 博客(5)
- 资源 (1)
- 收藏
- 关注
转载 Kublet PLEG不健康问题排障
1. 发现问题某个Node频繁出现“PLEG is not healthy: pleg was last seen active 3m46.752815514s ago; threshold is 3m0s”错误,频率在5-10分钟就会出现一次。使用kubectl get pods --all-namespaces,发现有一个istio-ingressgateway-6bbdd58f8c-nlgnd一直处于Terminating状态,也就是杀不死。到Node节点上,使用docker logs --tai
2021-07-28 17:50:59 1858
原创 1 node(s) didn‘t match node selector, 2 node(s) didn‘t find available persistent volumes to bind.
1. 发现问题PVapiVersion: v1kind: PersistentVolumemetadata: name: pv-ghost namespace: ghostspec: capacity: storage: 10Gi accessModes: - ReadWriteOnce persistentVolumeReclaimPolicy: Retain storageClassName: local-storage local: pat
2021-07-27 15:50:38 2591
转载 迁移pod到其他节点
把节点node07-ingress上的pod,迁移到其他节点。# kubectl drain --ignore-daemonsets --delete-local-data node07-ingress
2021-07-23 10:40:25 777
转载 sed输出指定行
# sed -n 8p file #print line 8# sed -n -e 1p -e 8p file #print line 1 and line 8# sed -n 1,8p file #print line 1 to line 8# sed -n -e 1,8p -e 20p file #print line 1-8 and line 20-n:取消默认输出。sed命令会默认把输入行打印到屏幕上,所以如果想精准的控制输出,就需要使用参数-n。-e:进行多项编辑
2021-07-07 09:48:45 4664 1
转载 awk输出指定列
// 打印所有列# awk '{print $0}' file // 打印第一列# awk '{print $1}' file // 打印第一和第三列# awk '{print $1, $3}' file // 打印第三列和第一列,注意先后顺序# cat file | awk '{print $3, $1}' // 打印第三列和最后一列# cat file | awk '{p
2021-07-05 15:42:21 3818
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人