K8S
文章平均质量分 55
寒蝉_yc
这个作者很懒,什么都没留下…
展开
-
k8s使用jq进行拆分遍历服务
使用json获取包含pvc的podkubectl get pod --all-namespaces -o=json | jq -c '.items[] | {name: .metadata.name, namespace: .metadata.namespace, claimName:.spec.volumes[] | select( has ("persistentVolumeClaim") ).persistentVolumeClaim.claimName }'使用json获取包含pvc的depl原创 2021-12-28 15:11:52 · 643 阅读 · 4 评论 -
kubectl top与docker stats内存不一致
名称类型单位说明container_memory_rssgauge字节数 bytesRSS内存,即常驻内存集(Resident Set Size),是分配给进程使用实际物理内存,而不是磁盘上缓存的虚拟内存。RSS内存包括所有分配的栈内存和堆内存,以及加载到物理内存中的共享库占用的内存空间,但不包括进入交换分区的内存。container_memory_usage_bytesgauge字节数 bytes当前使用的内存量,包括所有使用的内存,不管有没有被访问。con...原创 2020-09-10 14:16:43 · 2759 阅读 · 0 评论