Checking status of EKS node errors
Closed this issue · 1 comments
egegunes commented
$ kubectl status node ip-10-1-18-107.eu-west-2.compute.internal
Node/ip-10-1-18-107.eu-west-2.compute.internal, created 48s ago
linux Ubuntu 20.04.5 LTS (amd64), kernel 5.15.0-1026-aws, kubelet v1.22.16, kube-proxy v1.22.16
cloudprovider eu-west-2eu-west-2b m5.4xlarge
images 4
Current: Resource is Ready
MemoryPressure KubeletHasSufficientMemory, kubelet has sufficient memory available for 49s
DiskPressure KubeletHasNoDiskPressure, kubelet has no disk pressure for 49s
PIDPressure KubeletHasSufficientPID, kubelet has sufficient PID available for 49s
Ready KubeletReady, kubelet is posting ready status. AppArmor enabled for 18s
Lease for 40s, renew in 0s
Inferred memory limits for BestEffort: 62.8GB, for Burstable: 62.8GB
allocatable: pods:234, cpu:15890m, mem:62.8GB, ephemeral-storage:73.6GB
kubelet-api/stats/summary:
node overall: cpu 0.013core/sec, mem 1.6GB, workingSet 444.4MB, rss 200.9MB, pageFaults/major 38.3k/187, processes 412/4.1M (rlimit)
network: rx/tx 0B/0B, rx/tx errors
E0103 07:19:21.882546 1821521 plugin.go:111] "Failed to render a resource" err="template: Node.tmpl:138:145: executing \"node_stats_summary_resources\" at <\"\">: invalid value; expected float64" obj=&{Object:map[apiVersion:v1 kind:Node metadata:map[annotations:map[node.alpha.kubernetes.io/ttl:0 volumes.kubernetes.io/controller-managed-attach-detach:true] creationTimestamp:2023-01-03T07:18:31Z labels:map[alpha.eksctl.io/cluster-name:ege-test-cluster1 alpha.eksctl.io/instance-id:i-0eb433b5660d32c3c alpha.eksctl.io/nodegroup-name:ng-1 beta.kubernetes.io/arch:amd64 beta.kubernetes.io/instance-type:m5.4xlarge beta.kubernetes.io/os:linux failure-domain.beta.kubernetes.io/region:eu-west-2 failure-domain.beta.kubernetes.io/zone:eu-west-2b k8s.io/cloud-provider-aws:c9179923e51a9a6bc80301b94d867724 kubernetes.io/arch:amd64 kubernetes.io/hostname:ip-10-1-18-107 kubernetes.io/os:linux node-lifecycle:on-demand node.kubernetes.io/instance-type:m5.4xlarge topology.kubernetes.io/region:eu-west-2 topology.kubernetes.io/zone:eu-west-2b] managedFields:[map[apiVersion:v1 fieldsType:FieldsV1 fieldsV1:map[f:metadata:map[f:labels:map[f:k8s.io/cloud-provider-aws:map[]]]] manager:aws-cloud-controller-manager operation:Update time:2023-01-03T07:18:31Z] map[apiVersion:v1 fieldsType:FieldsV1 fieldsV1:map[f:metadata:map[f:annotations:map[f:node.alpha.kubernetes.io/ttl:map[]]]] manager:kube-controller-manager operation:Update time:2023-01-03T07:18:31Z] map[apiVersion:v1 fieldsType:FieldsV1 fieldsV1:map[f:status:map[f:conditions:map[k:{"type":"DiskPressure"}:map[f:lastHeartbeatTime:map[]] k:{"type":"MemoryPressure"}:map[f:lastHeartbeatTime:map[]] k:{"type":"PIDPressure"}:map[f:lastHeartbeatTime:map[]] k:{"type":"Ready"}:map[f:lastHeartbeatTime:map[] f:lastTransitionTime:map[] f:message:map[] f:reason:map[] f:status:map[]]] f:images:map[]]] manager:kubelet operation:Update subresource:status time:2023-01-03T07:19:01Z]] name:ip-10-1-18-107.eu-west-2.compute.internal resourceVersion:2575 uid:fc548ef9-1755-4110-a034-d16fa650f4d4] spec:map[providerID:aws:///eu-west-2b/i-0eb433b5660d32c3c] status:map[addresses:[map[address:10.1.18.107 type:InternalIP] map[address:35.178.175.185 type:ExternalIP] map[address:ip-10-1-18-107.eu-west-2.compute.internal type:Hostname] map[address:ip-10-1-18-107.eu-west-2.compute.internal type:InternalDNS] map[address:ec2-35-178-175-185.eu-west-2.compute.amazonaws.com type:ExternalDNS]] allocatable:map[attachable-volumes-aws-ebs:25 cpu:15890m ephemeral-storage:73674347602 hugepages-1Gi:0 hugepages-2Mi:0 memory:61347516Ki pods:234] capacity:map[attachable-volumes-aws-ebs:25 cpu:16 ephemeral-storage:81106868Ki hugepages-1Gi:0 hugepages-2Mi:0 memory:64346812Ki pods:234] conditions:[map[lastHeartbeatTime:2023-01-03T07:19:01Z lastTransitionTime:2023-01-03T07:18:30Z message:kubelet has sufficient memory available reason:KubeletHasSufficientMemory status:False type:MemoryPressure] map[lastHeartbeatTime:2023-01-03T07:19:01Z lastTransitionTime:2023-01-03T07:18:30Z message:kubelet has no disk pressure reason:KubeletHasNoDiskPressure status:False type:DiskPressure] map[lastHeartbeatTime:2023-01-03T07:19:01Z lastTransitionTime:2023-01-03T07:18:30Z message:kubelet has sufficient PID available reason:KubeletHasSufficientPID status:False type:PIDPressure] map[lastHeartbeatTime:2023-01-03T07:19:01Z lastTransitionTime:2023-01-03T07:19:01Z message:kubelet is posting ready status. AppArmor enabled reason:KubeletReady status:True type:Ready]] daemonEndpoints:map[kubeletEndpoint:map[Port:10250]] images:[map[names:[602401143452.dkr.ecr.eu-west-2.amazonaws.com/amazon-k8s-cni@sha256:3b6db8b6fb23424366ef91d7e9e818e42291316fa81c00c2c75dcafa614340c5 602401143452.dkr.ecr.eu-west-2.amazonaws.com/amazon-k8s-cni:v1.10.1-eksbuild.1] sizeBytes:107971097] map[names:[602401143452.dkr.ecr.eu-west-2.amazonaws.com/amazon-k8s-cni-init@sha256:6c70af7bf257712105a89a896b2afb86c86ace865d32eb73765bf29163a08c56 602401143452.dkr.ecr.eu-west-2.amazonaws.com/amazon-k8s-cni-init:v1.10.1-eksbuild.1] sizeBytes:106951309] map[names:[602401143452.dkr.ecr.eu-west-2.amazonaws.com/eks/kube-proxy@sha256:c8abb4b8efc94090458f34e5f456791d9f7f57b5c99517b6b4e197305c1f10f6 602401143452.dkr.ecr.eu-west-2.amazonaws.com/eks/kube-proxy:v1.22.6-eksbuild.1] sizeBytes:35948825] map[names:[602401143452.dkr.ecr.eu-west-2.amazonaws.com/eks/pause:3.5] sizeBytes:298689]] nodeInfo:map[architecture:amd64 bootID:fa0ff84e-36c7-4a36-a409-c24627e3d15a containerRuntimeVersion:containerd://1.5.9 kernelVersion:5.15.0-1026-aws kubeProxyVersion:v1.22.16 kubeletVersion:v1.22.16 machineID:ec265890b7b8475dacc114e8d2dd1c15 operatingSystem:linux osImage:Ubuntu 20.04.5 LTS systemUUID:ec265890-b7b8-475d-acc1-14e8d2dd1c15]]]}
it errors with Failed to render a resource" err="template: Node.tmpl:138:145: executing \"node_stats_summary_resources\" at <\"\">: invalid value; expected float64
, let me know if I need to provide more info.
egegunes commented
tested again with latest version (0.7.8) and error is gone.