![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Kubernetes
weixin_43405242
这个作者很懒,什么都没留下…
展开
-
找到kubernetes 中消耗内存Cache最多的进程
list_cache.shprintf "%-110s %-5s %-10s %-10s\n" pod_name cache_size PID PROCESS_NAMEfor ID in `grep total_cache */memory.stat |sort -rnk2|head -10|awk -F"_" '{print $5}'|awk -F"." '{print $1}'`; do docker_id=`docker ps |grep $ID|grep -v POD|awk '{原创 2021-12-15 18:57:10 · 475 阅读 · 0 评论 -
Calico for policy and flannel for networking on Kubernetes(cannl)
1. Installing Cannl with Kubernetes API datastore (etcd)1.Ensure that the kubernetes controller manager has the following flags set:--cluster-cidr=10.244.0.0/16 and --allocate-node-cidrs=trueuser this command to check kubectl cluster-info dump | egre原创 2020-10-14 14:44:01 · 198 阅读 · 0 评论 -
Kubernetes 开启iptables后 规则添加以及验证
1. pod通讯通过flannel的udp端口8472通讯1.1包封装图1.不通的情况启动node2的iptables,确定8472udp端口不通的情况,在node1的pod上测试node2上的pod是否能ping通# kubectl get pod -o wideNAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS原创 2020-10-10 12:38:47 · 4155 阅读 · 2 评论 -
如何查看kubernetes etcd数据
1.安装etcdctl下载软件:https://github.com/etcd-io/etcd/releases/download/v3.3.10/etcd-v3.3.10-linux-amd64.tar.gz安装tar -zxvf etcd-v3.3.10-linux-amd64.tar.gz cd etcd-v3.3.10-linux-amd64cp etcd-v3.3.10-linux-amd64/etcdctl /usr/bin2. 在kubernetes master上查询et原创 2020-09-29 18:26:30 · 1031 阅读 · 0 评论