【K8s】-- 描述容器中 pod 的状态

命令:kubectl describe pod -n 你的namespace名称 pod 名称

举例:kubectl describe pod -n my-flink --context prod-5 test-record-all-new-mc-taskmanager-1-1

Name:         test-record-all-new-mc-taskmanager-1-1
Namespace:    ky-flink
Priority:     0
Node:         cn-beijing.172.1.1.1/172.1.1.1
Start Time:   Thu, 22 Feb 2024 07:34:55 +0000
Labels:       app=test-record-all-new-mc
              component=taskmanager
              group=my-bigdata
              project=flink-project
              type=flink-native-kubernetes
Annotations:  k8s.aliyun.com/pod-ips: 172.2.2.2
              kubernetes.io/psp: ack.privileged
              prometheus.io/path: /
              prometheus.io/port: 9249
              prometheus.io/scrape: true
Status:       Running
IP:           172.2.2.2
IPs:
  IP:           172.2.2.2
Controlled By:  Deployment/test-record-all-new-mc
Containers:
  flink-main-container:
    Container ID:  containerd://867873459ec791b586c574775a437ced6a1eef61d8abb412d284c065354de74d
    Image:         registry.cn-beijing.aliyuncs.com/my/my-bigdata-flink-project:release-2024012503
    Image ID:      registry.cn-beijing.aliyuncs.com/my/my-bigdata-flink-project@sha256:7bdf8ff064ec48717dbe47abbf7ec33ae3b314a9f4a9876c60185c224cde4769
    Port:          6122/TCP
    Host Port:     0/TCP
    Command:
      /docker-entrypoint.sh
    Args:
      bash
      -c
      kubernetes-taskmanager.sh -Djobmanager.rpc.address='172.5.4.3' -Dpipeline.classpaths='' -Djobmanager.memory.off-heap.size='134217728b' -Dweb.tmpdir='/tmp/flink-web-1e3e0d33-ddd2-4b25-bf0a-56f263cea86d' -Djobmanager.rpc.port='6123' -Drest.address='172.16.101.101' -Djobmanager.memory.jvm-overhead.max='214748368b' -Djobmanager.memory.jvm-overhead.min='214748368b' -Dtaskmanager.resource-id='test-record-all-new-mc-taskmanager-1-1' -Dexecution.target='embedded' -Dpipeline.jars='file:/opt/flink/apps/flink-project.jar' -Djobmanager.memory.jvm-metaspace.size='268435456b' -Djobmanager.memory.heap.size='1530082096b' -D taskmanager.memory.network.min=166429984b -D taskmanager.cpu.cores=0.5 -D taskmanager.memory.task.off-heap.size=0b -D taskmanager.memory.jvm-metaspace.size=268435456b -D external-resources=none -D taskmanager.memory.jvm-overhead.min=214748368b -D taskmanager.memory.framework.off-heap.size=134217728b -D taskmanager.memory.network.max=166429984b -D taskmanager.memory.framework.heap.size=134217728b -D taskmanager.memory.managed.size=10777216b -D taskmanager.memory.task.heap.size=1218657168b -D taskmanager.numberOfTaskSlots=1 -D taskmanager.memory.jvm-overhead.max=214748368b
    State:          Running
      Started:      Thu, 22 Feb 2024 07:34:59 +0000
    Ready:          True
    Restart Count:  0
    Limits:
      cpu:     2
      memory:  4Gi
    Requests:
      cpu:     500m
      memory:  2Gi
    Environment:
      FLINK_TM_JVM_MEM_OPTS:  -Xmx1352874896 -Xms1352874896 -XX:MaxDirectMemorySize=300647712 -XX:MaxMetaspaceSize=268435456
    Mounts:
      /opt/flink/conf from flink-config-volume (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-pv89z (ro)
Conditions:
  Type              Status
  Initialized       True 
  Ready             True 
  ContainersReady   True 
  PodScheduled      True 
Volumes:
  flink-config-volume:
    Type:      ConfigMap (a volume populated by a ConfigMap)
    Name:      flink-config-test-record-all-new-mc
    Optional:  false
  kube-api-access-pv89z:
    Type:                    Projected (a volume that contains injected data from multiple sources)
    TokenExpirationSeconds:  3607
    ConfigMapName:           kube-root-ca.crt
    ConfigMapOptional:       <nil>
    DownwardAPI:             true
QoS Class:                   Burstable
相关推荐
耶啵奶膘17 分钟前
uniapp-是否删除
linux·前端·uni-app
2401_850410831 小时前
文件系统和日志管理
linux·运维·服务器
XMYX-02 小时前
使用 SSH 蜜罐提升安全性和记录攻击活动
linux·ssh
南猿北者4 小时前
docker容器
docker·容器
二十雨辰4 小时前
[linux]docker基础
linux·运维·docker
饮浊酒5 小时前
Linux操作系统 ------(3.文本编译器Vim)
linux·vim
lihuhelihu5 小时前
第3章 CentOS系统管理
linux·运维·服务器·计算机网络·ubuntu·centos·云计算
YCyjs5 小时前
K8S群集调度二
云原生·容器·kubernetes
Hoxy.R5 小时前
K8s小白入门
云原生·容器·kubernetes
矛取矛求5 小时前
Linux系统性能调优技巧
linux