Difference between revisions of "Kubectl describe daemonset"
Jump to navigation
Jump to search
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
+ | [[kubectl describe ds -n kube-system]] | ||
+ | [[kubectl describe ds -n kube-system aws-node]] | ||
+ | [[kubectl describe ds -n kube-system aws-node]] | grep -w Image | ||
+ | |||
+ | [[aws-node]] version | ||
+ | [[kubectl describe ds -n kube-system aws-node]] | grep [[amazon-k8s-cni]]: | cut -d : -f 3 | ||
+ | [[v1.16.3-eksbuild.2]] | ||
+ | |||
+ | |||
+ | == Example == | ||
+ | [[kubectl describe ds -n kube-system aws-node]] | ||
+ | Name: [[aws-node]] | ||
+ | Selector: [[k8s-app=aws-node]] | ||
+ | Node-Selector: <none> | ||
+ | Labels: app.kubernetes.io/instance=aws-vpc-cni | ||
+ | app.kubernetes.io/managed-by=Helm | ||
+ | app.kubernetes.io/name=aws-node | ||
+ | app.kubernetes.io/version=v1.16.3 | ||
+ | helm.sh/chart=aws-vpc-cni-1.16.3 | ||
+ | k8s-app=aws-node | ||
+ | Annotations: deprecated.daemonset.template.generation: 7 | ||
+ | field.cattle.io/publicEndpoints: | ||
+ | [{"nodeName":":ip-10-226-24-219.eu-west-3.compute.internal","addresses": | ||
+ | ["10.226.24.219"],"port":61678,"protocol":"TCP","podName":"kube-sy... | ||
+ | Desired Number of Nodes Scheduled: 5 | ||
+ | Current Number of Nodes Scheduled: 5 | ||
+ | Number of Nodes Scheduled with Up-to-date Pods: 5 | ||
+ | Number of Nodes Scheduled with Available Pods: 4 | ||
+ | Number of Nodes Misscheduled: 0 | ||
+ | Pods Status: 4 Running / 1 Waiting / 0 Succeeded / 0 Failed | ||
+ | Pod Template: | ||
+ | Labels: app.kubernetes.io/instance=aws-vpc-cni | ||
+ | app.kubernetes.io/name=aws-node | ||
+ | k8s-app=aws-node | ||
+ | Service Account: aws-node | ||
+ | [[Init Containers]]: | ||
+ | [[aws-vpc-cni-init]]: | ||
+ | Image: 1234567890.dkr.ecr.eu-west-3.amazonaws.com/amazon-k8s-cni-init:v1.16.3-eksbuild.2 | ||
+ | Port: <none> | ||
+ | Host Port: <none> | ||
+ | Requests: | ||
+ | cpu: 25m | ||
+ | Environment: | ||
+ | DISABLE_TCP_EARLY_DEMUX: false | ||
+ | ENABLE_IPv6: false | ||
+ | Mounts: | ||
+ | /host/opt/cni/bin from cni-bin-dir (rw) | ||
+ | Containers: | ||
+ | aws-node: | ||
+ | Image: 1234567890.dkr.ecr.eu-west-3.amazonaws.com/amazon-k8s-cni:v1.16.3-eksbuild.2 | ||
+ | Port: 61678/TCP | ||
+ | Host Port: 61678/TCP | ||
+ | Requests: | ||
+ | cpu: 25m | ||
+ | Liveness: exec [/app/grpc-health-probe -addr=:50051 -connect-timeout=5s -rpc-timeout=5s] delay=60s timeout=10s period=10s # | ||
+ | success=1 #failure=3 | ||
+ | Readiness: exec [/app/grpc-health-probe -addr=:50051 -connect-timeout=5s -rpc-timeout=5s] delay=1s timeout=10s period=10s | ||
+ | #success=1 #failure=3 | ||
+ | Environment: | ||
+ | ADDITIONAL_ENI_TAGS: {} | ||
+ | ANNOTATE_POD_IP: false | ||
+ | AWS_VPC_CNI_NODE_PORT_SUPPORT: true | ||
+ | AWS_VPC_ENI_MTU: 9001 | ||
+ | AWS_VPC_K8S_CNI_CONFIGURE_RPFILTER: false | ||
+ | AWS_VPC_K8S_CNI_CUSTOM_NETWORK_CFG: true | ||
+ | AWS_VPC_K8S_CNI_EXTERNALSNAT: false | ||
+ | AWS_VPC_K8S_CNI_LOGLEVEL: DEBUG | ||
+ | AWS_VPC_K8S_CNI_LOG_FILE: /host/var/log/aws-routed-eni/ipamd.log | ||
+ | AWS_VPC_K8S_CNI_RANDOMIZESNAT: prng | ||
+ | AWS_VPC_K8S_CNI_VETHPREFIX: eni | ||
+ | AWS_VPC_K8S_PLUGIN_LOG_FILE: /var/log/aws-routed-eni/plugin.log | ||
+ | AWS_VPC_K8S_PLUGIN_LOG_LEVEL: DEBUG | ||
+ | CLUSTER_NAME: YOUR-NAME | ||
+ | DISABLE_INTROSPECTION: false | ||
+ | DISABLE_METRICS: false | ||
+ | DISABLE_NETWORK_RESOURCE_PROVISIONING: false | ||
+ | ENABLE_IPv4: true | ||
+ | ENABLE_IPv6: false | ||
+ | ENABLE_POD_ENI: false | ||
+ | ENABLE_PREFIX_DELEGATION: true | ||
+ | ENI_CONFIG_LABEL_DEF: topology.kubernetes.io/zone | ||
+ | [[VPC_CNI_VERSION]]: v1.16.3 | ||
+ | [[VPC_ID]]: vpc-123123213213123 | ||
+ | WARM_ENI_TARGET: 1 | ||
+ | WARM_PREFIX_TARGET: 1 | ||
+ | MY_NODE_NAME: (v1:spec.nodeName) | ||
+ | MY_POD_NAME: (v1:metadata.name) | ||
+ | Mounts: | ||
+ | /host/etc/cni/net.d from cni-net-dir (rw) | ||
+ | /host/opt/cni/bin from cni-bin-dir (rw) | ||
+ | /host/var/log/aws-routed-eni from log-dir (rw) | ||
+ | /run/xtables.lock from xtables-lock (rw) | ||
+ | /var/run/aws-node from run-dir (rw) | ||
+ | /var/run/dockershim.sock from dockershim (rw) | ||
+ | aws-eks-nodeagent: | ||
+ | Image: 1234567890.dkr.ecr.eu-west-3.amazonaws.com/amazon/aws-network-policy-agent:v1.0.8-eksbuild.1 | ||
+ | Port: <none> | ||
+ | Host Port: <none> | ||
+ | Args: | ||
+ | --enable-ipv6=false | ||
+ | --enable-network-policy=false | ||
+ | --enable-cloudwatch-logs=false | ||
+ | --enable-policy-event-logs=false | ||
+ | --metrics-bind-addr=:8162 | ||
+ | --health-probe-bind-addr=:8163 | ||
+ | --conntrack-cache-cleanup-period=300 | ||
+ | Requests: | ||
+ | cpu: 25m | ||
+ | Environment: | ||
+ | MY_NODE_NAME: (v1:spec.nodeName) | ||
+ | Mounts: | ||
+ | /host/opt/cni/bin from cni-bin-dir (rw) | ||
+ | /sys/fs/bpf from bpf-pin-path (rw) | ||
+ | /var/log/aws-routed-eni from log-dir (rw) | ||
+ | /var/run/aws-node from run-dir (rw) | ||
+ | Volumes: | ||
+ | [[bpf-pin-path]]: | ||
+ | Type: HostPath (bare host directory volume) | ||
+ | Path: /sys/fs/bpf | ||
+ | HostPathType: | ||
+ | [[cni-bin-dir]]: | ||
+ | Type: HostPath (bare host directory volume) | ||
+ | Path: /opt/cni/bin | ||
+ | HostPathType: | ||
+ | cni-net-dir: | ||
+ | Type: HostPath (bare host directory volume) | ||
+ | Path: /etc/cni/net.d | ||
+ | HostPathType: | ||
+ | [[dockershim]]: | ||
+ | Type: HostPath (bare host directory volume) | ||
+ | Path: /var/run/dockershim.sock | ||
+ | HostPathType: | ||
+ | log-dir: | ||
+ | Type: HostPath (bare host directory volume) | ||
+ | Path: /var/log/aws-routed-eni | ||
+ | HostPathType: DirectoryOrCreate | ||
+ | run-dir: | ||
+ | Type: HostPath (bare host directory volume) | ||
+ | Path: /var/run/aws-node | ||
+ | HostPathType: DirectoryOrCreate | ||
+ | [[xtables-lock]]: | ||
+ | Type: HostPath (bare host directory volume) | ||
+ | Path: /run/xtables.lock | ||
+ | HostPathType: | ||
+ | Priority Class Name: [[system-node-critical]] | ||
+ | Events: | ||
+ | Type Reason Age From Message | ||
+ | ---- ------ ---- ---- ------- | ||
+ | Normal SuccessfulCreate 53m daemonset-controller Created pod: aws-node-123456 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Latest revision as of 15:58, 28 February 2024
kubectl describe ds -n kube-system kubectl describe ds -n kube-system aws-node kubectl describe ds -n kube-system aws-node | grep -w Image
aws-node version
kubectl describe ds -n kube-system aws-node | grep amazon-k8s-cni: | cut -d : -f 3 v1.16.3-eksbuild.2
Example[edit]
kubectl describe ds -n kube-system aws-node Name: aws-node Selector: k8s-app=aws-node Node-Selector: <none> Labels: app.kubernetes.io/instance=aws-vpc-cni app.kubernetes.io/managed-by=Helm app.kubernetes.io/name=aws-node app.kubernetes.io/version=v1.16.3 helm.sh/chart=aws-vpc-cni-1.16.3 k8s-app=aws-node Annotations: deprecated.daemonset.template.generation: 7 field.cattle.io/publicEndpoints: [{"nodeName":":ip-10-226-24-219.eu-west-3.compute.internal","addresses": ["10.226.24.219"],"port":61678,"protocol":"TCP","podName":"kube-sy... Desired Number of Nodes Scheduled: 5 Current Number of Nodes Scheduled: 5 Number of Nodes Scheduled with Up-to-date Pods: 5 Number of Nodes Scheduled with Available Pods: 4 Number of Nodes Misscheduled: 0 Pods Status: 4 Running / 1 Waiting / 0 Succeeded / 0 Failed Pod Template: Labels: app.kubernetes.io/instance=aws-vpc-cni app.kubernetes.io/name=aws-node k8s-app=aws-node Service Account: aws-node Init Containers: aws-vpc-cni-init: Image: 1234567890.dkr.ecr.eu-west-3.amazonaws.com/amazon-k8s-cni-init:v1.16.3-eksbuild.2 Port: <none> Host Port: <none> Requests: cpu: 25m Environment: DISABLE_TCP_EARLY_DEMUX: false ENABLE_IPv6: false Mounts: /host/opt/cni/bin from cni-bin-dir (rw) Containers: aws-node: Image: 1234567890.dkr.ecr.eu-west-3.amazonaws.com/amazon-k8s-cni:v1.16.3-eksbuild.2 Port: 61678/TCP Host Port: 61678/TCP Requests: cpu: 25m Liveness: exec [/app/grpc-health-probe -addr=:50051 -connect-timeout=5s -rpc-timeout=5s] delay=60s timeout=10s period=10s # success=1 #failure=3 Readiness: exec [/app/grpc-health-probe -addr=:50051 -connect-timeout=5s -rpc-timeout=5s] delay=1s timeout=10s period=10s #success=1 #failure=3 Environment: ADDITIONAL_ENI_TAGS: {} ANNOTATE_POD_IP: false AWS_VPC_CNI_NODE_PORT_SUPPORT: true AWS_VPC_ENI_MTU: 9001 AWS_VPC_K8S_CNI_CONFIGURE_RPFILTER: false AWS_VPC_K8S_CNI_CUSTOM_NETWORK_CFG: true AWS_VPC_K8S_CNI_EXTERNALSNAT: false AWS_VPC_K8S_CNI_LOGLEVEL: DEBUG AWS_VPC_K8S_CNI_LOG_FILE: /host/var/log/aws-routed-eni/ipamd.log AWS_VPC_K8S_CNI_RANDOMIZESNAT: prng AWS_VPC_K8S_CNI_VETHPREFIX: eni AWS_VPC_K8S_PLUGIN_LOG_FILE: /var/log/aws-routed-eni/plugin.log AWS_VPC_K8S_PLUGIN_LOG_LEVEL: DEBUG CLUSTER_NAME: YOUR-NAME DISABLE_INTROSPECTION: false DISABLE_METRICS: false DISABLE_NETWORK_RESOURCE_PROVISIONING: false ENABLE_IPv4: true ENABLE_IPv6: false ENABLE_POD_ENI: false ENABLE_PREFIX_DELEGATION: true ENI_CONFIG_LABEL_DEF: topology.kubernetes.io/zone VPC_CNI_VERSION: v1.16.3 VPC_ID: vpc-123123213213123 WARM_ENI_TARGET: 1 WARM_PREFIX_TARGET: 1 MY_NODE_NAME: (v1:spec.nodeName) MY_POD_NAME: (v1:metadata.name) Mounts: /host/etc/cni/net.d from cni-net-dir (rw) /host/opt/cni/bin from cni-bin-dir (rw) /host/var/log/aws-routed-eni from log-dir (rw) /run/xtables.lock from xtables-lock (rw) /var/run/aws-node from run-dir (rw) /var/run/dockershim.sock from dockershim (rw) aws-eks-nodeagent: Image: 1234567890.dkr.ecr.eu-west-3.amazonaws.com/amazon/aws-network-policy-agent:v1.0.8-eksbuild.1 Port: <none> Host Port: <none> Args: --enable-ipv6=false --enable-network-policy=false --enable-cloudwatch-logs=false --enable-policy-event-logs=false --metrics-bind-addr=:8162 --health-probe-bind-addr=:8163 --conntrack-cache-cleanup-period=300 Requests: cpu: 25m Environment: MY_NODE_NAME: (v1:spec.nodeName) Mounts: /host/opt/cni/bin from cni-bin-dir (rw) /sys/fs/bpf from bpf-pin-path (rw) /var/log/aws-routed-eni from log-dir (rw) /var/run/aws-node from run-dir (rw) Volumes: bpf-pin-path: Type: HostPath (bare host directory volume) Path: /sys/fs/bpf HostPathType: cni-bin-dir: Type: HostPath (bare host directory volume) Path: /opt/cni/bin HostPathType: cni-net-dir: Type: HostPath (bare host directory volume) Path: /etc/cni/net.d HostPathType: dockershim: Type: HostPath (bare host directory volume) Path: /var/run/dockershim.sock HostPathType: log-dir: Type: HostPath (bare host directory volume) Path: /var/log/aws-routed-eni HostPathType: DirectoryOrCreate run-dir: Type: HostPath (bare host directory volume) Path: /var/run/aws-node HostPathType: DirectoryOrCreate xtables-lock: Type: HostPath (bare host directory volume) Path: /run/xtables.lock HostPathType: Priority Class Name: system-node-critical Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal SuccessfulCreate 53m daemonset-controller Created pod: aws-node-123456
See also[edit]
Advertising: