Main Menu

Search

KUBERNTES: K8S: Kubectl Command To View CoreDNS Pod Configuration - Memory, CPU, IP, State

Below is Kubectl Command To View CoreDNS Pod Configuration - Memory, CPU, IP, State

kubectl describe pod coredns -n kube-system

Below is sample output.
 
 $ kubectl describe pod coredns -n kube-system
Name:                 coredns-f87d5877b-9xwqp
Namespace:            kube-system
Priority:             2000000000
Priority Class Name:  system-cluster-critical
Service Account:      coredns
Node:                 cne1-ha-control1/10.0.1.66
Start Time:           Fri, 13 Oct 2023 04:08:27 +0000
Labels:               k8s-app=kube-dns
                      pod-template-hash=f87d5877b
Annotations:          <none>
Status:               Running
IP:                   10.244.0.2
IPs:
  IP:           10.244.0.2
Controlled By:  ReplicaSet/coredns-f87d5877b
Containers:
  coredns:
    Container ID:  cri-o://1ed580cf5e2cc178a47590954269e6b4eaaf56488a7ea36e78c80de4cc24b7b3
    Image:         container-registry.oracle.com/olcne/coredns:v1.9.3
    Image ID:      container-registry.oracle.com/olcne/coredns@sha256:1736d5ffa6fc5b0b0946411acf0e9059a63b134f95743d8dd874de724fb1d8bb
    Ports:         53/UDP, 53/TCP, 9153/TCP
    Host Ports:    0/UDP, 0/TCP, 0/TCP
    Args:
      -conf
      /etc/coredns/Corefile
    State:          Running
      Started:      Wed, 18 Oct 2023 18:46:40 +0000
    Ready:          True
    Restart Count:  3
    Limits:
      memory:  170Mi
    Requests:
      cpu:        100m
      memory:     70Mi
    Liveness:     http-get http://:8080/health delay=60s timeout=5s period=10s #success=1 #failure=5
    Readiness:    http-get http://:8181/ready delay=0s timeout=1s period=10s #success=1 #failure=3
    Environment:  <none>
    Mounts:
      /etc/coredns from config-volume (ro)
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-v4rbv (ro)
Conditions:
  Type              Status
  Initialized       True 
  Ready             True 
  ContainersReady   True 
  PodScheduled      True 
Volumes:
  config-volume:
    Type:      ConfigMap (a volume populated by a ConfigMap)
    Name:      coredns
    Optional:  false
  kube-api-access-v4rbv:
    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
Node-Selectors:              kubernetes.io/os=linux
Tolerations:                 CriticalAddonsOnly op=Exists
                             node-role.kubernetes.io/control-plane:NoSchedule
                             node-role.kubernetes.io/master:NoSchedule
                             node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:                      <none>

Name:                 coredns-f87d5877b-l24w4
Namespace:            kube-system
Priority:             2000000000
Priority Class Name:  system-cluster-critical
Service Account:      coredns
Node:                 cne1-ha-control1/10.0.1.66
Start Time:           Fri, 13 Oct 2023 05:00:01 +0000
Labels:               k8s-app=kube-dns
                      pod-template-hash=f87d5877b
Annotations:          <none>
Status:               Running
IP:                   10.244.0.3
IPs:
  IP:           10.244.0.3
Controlled By:  ReplicaSet/coredns-f87d5877b
Containers:
  coredns:
    Container ID:  cri-o://f14cb9b54cc64963a758bcbc254f96d919fbf2bc4ca4d9a5e2985d63b62ed105
    Image:         container-registry.oracle.com/olcne/coredns:v1.9.3
    Image ID:      container-registry.oracle.com/olcne/coredns@sha256:1736d5ffa6fc5b0b0946411acf0e9059a63b134f95743d8dd874de724fb1d8bb
    Ports:         53/UDP, 53/TCP, 9153/TCP
    Host Ports:    0/UDP, 0/TCP, 0/TCP
    Args:
      -conf
      /etc/coredns/Corefile
    State:          Running
      Started:      Wed, 18 Oct 2023 18:46:41 +0000
    Ready:          True
    Restart Count:  3
    Limits:
      memory:  170Mi
    Requests:
      cpu:        100m
      memory:     70Mi
    Liveness:     http-get http://:8080/health delay=60s timeout=5s period=10s #success=1 #failure=5
    Readiness:    http-get http://:8181/ready delay=0s timeout=1s period=10s #success=1 #failure=3
    Environment:  <none>
    Mounts:
      /etc/coredns from config-volume (ro)
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-27bhj (ro)
Conditions:
  Type              Status
  Initialized       True 
  Ready             True 
  ContainersReady   True 
  PodScheduled      True 
Volumes:
  config-volume:
    Type:      ConfigMap (a volume populated by a ConfigMap)
    Name:      coredns
    Optional:  false
  kube-api-access-27bhj:
    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
Node-Selectors:              kubernetes.io/os=linux
Tolerations:                 CriticalAddonsOnly op=Exists
                             node-role.kubernetes.io/control-plane:NoSchedule
                             node-role.kubernetes.io/master:NoSchedule
                             node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:                      <none>

No comments:

Post a Comment