Reporting the Service Node Status

The edge side periodically reports the service node status to the central node. In the resource field under route, {node_id} indicates the node name.

Message instance

{
    "header": {
       "id": "",
       "msg_id": "368920fd-f50e-4c82-8d21-e7fd134233ec",
       "parentId": "",
       "parent_msg_id": "",
       "isSync": false,
       "sync": true,
       "timestamp": 1706283182365,
       "version": "",
       "resourceversion": "",
       "nodeId": "",
       "peerInfo": {}
    },
    "router": {
       "source": "",
       "destination": "",
       "option": "",
       "resource": ""
    },
    "route": {
       "source": "edged",
       "group": "meta",
       "operation": "update",
       "resource": "websocket/nodestatus/edge-{node_id}"
    }
    "content": {
        "Status": {
            "addresses": [
                {
                    "address": "127.0.xx.xx",
                    "type": "InternalIP"
                },
                {
                    "address": "123112312313",
                    "type": "Hostname"
                }
            ],
            "allocatable": {
                "cpu": "3",
                "huawei.com/Ascend310": "1",
                "memory": "7038704Ki",
                "pods": "110"
            },
            "capacity": {
                "cpu": "3",
                "huawei.com/Ascend310": "1",
                "memory": "7038704Ki",
                "pods": "110"
            },
            "content": {
                "metadata": {
                    "annotations": {
                        "volumes.kubernetes.io/controller-managed-attach-detach": "true"
                    },
                    "creationTimestamp": null,
                    "labels": {
                        "beta.kubernetes.io/arch": "arm64",
                        "beta.kubernetes.io/os": "linux",
                        "kubernetes.io/arch": "arm64",
                        "kubernetes.io/hostname": "123112312313",
                        "kubernetes.io/os": "linux",
                        "node-role.kubernetes.io/agent": "",
                        "node-role.kubernetes.io/edge": "",
                        "serialNumber": "123112312313"
                    },
                    "name": "123112312313"
                },
                "spec": {},
                "status": {
                    "addresses": [
                        {
                            "address": "127.0.xx.xx",
                            "type": "InternalIP"
                        },
                        {
                            "address": "123112312313",
                            "type": "Hostname"
                        }
                    ],
                    "allocatable": {
                        "cpu": "4",
                        "ephemeral-storage": "1992552Ki",
                        "huawei.com/Ascend310": "1",
                        "hugepages-2Mi": "0",
                        "memory": "8087280Ki",
                        "pods": "110"
                    },
                    "capacity": {
                        "cpu": "4",
                        "ephemeral-storage": "1992552Ki",
                        "huawei.com/Ascend310": "1",
                        "hugepages-2Mi": "0",
                        "memory": "8087280Ki",
                        "pods": "110"
                    },
                    "conditions": [
                        {
                            "lastHeartbeatTime": "2023-05-09T09:25:26Z",
                            "lastTransitionTime": "2023-05-09T09:25:26Z",
                            "message": "kubelet has sufficient memory available",
                            "reason": "KubeletHasSufficientMemory",
                            "status": "False",
                            "type": "MemoryPressure"
                        },
                        {
                            "lastHeartbeatTime": "2023-05-09T09:25:26Z",
                            "lastTransitionTime": "2023-05-09T09:25:26Z",
                            "message": "kubelet has no disk pressure",
                            "reason": "KubeletHasNoDiskPressure",
                            "status": "False",
                            "type": "DiskPressure"
                        },
                        {
                            "lastHeartbeatTime": "2023-05-09T09:25:26Z",
                            "lastTransitionTime": "2023-05-09T09:25:26Z",
                            "message": "kubelet has sufficient PID available",
                            "reason": "KubeletHasSufficientPID",
                            "status": "False",
                            "type": "PIDPressure"
                        },
                        {
                            "lastHeartbeatTime": "2023-05-09T09:25:26Z",
                            "lastTransitionTime": "2023-05-09T09:25:26Z",
                            "message": "edge is posting ready status",
                            "reason": "EdgeReady",
                            "status": "True",
                            "type": "Ready"
                        }
                    ],
                    "daemonEndpoints": {
                        "kubeletEndpoint": {
                            "Port": 0
                        }
                    },
                    "images": [
                        {
                            "names": [
                                "fd.fusiondirector.huawei.com:443/library/test@sha256:e9d4e1f22514b41c850b41b36efead3a532d877be96a36c17c89ce63670d0ca5",
                                "fd.fusiondirector.huawei.com:443/library/test:1.0"
                            ],
                            "sizeBytes": 310316873
                        }
                    ],
                    "nodeInfo": {
                        "architecture": "arm64",
                        "bootID": "571737e1-488a-4000-bcf7-aa80209ec41d",
                        "containerRuntimeVersion": "docker://18.9.0",
                        "kernelVersion": "4.19.90-vhulk2208.3.0.h1277.eulerosv2r10.aarch64",
                        "kubeProxyVersion": "v0.0.0-master+$Format:%H$",
                        "kubeletVersion": "v1.22.6-kubeedge-v0.0.0-master+$Format:%h$",
                        "machineID": "f18209d4e32b47fdb4675faf77be33b4",
                        "operatingSystem": "linux",
                        "osImage": "EulerOS 2.0 (SP10)",
                        "systemUUID": "f18209d4e32b47fdb4675faf77be33b4"
                    }
                }
            }
        }
    }
}

Parameter description

For details about the content message, see the Kubernetes node status description.