Accessing API server from edgeNode

36 views
Skip to first unread message

Xin

unread,
Oct 25, 2022, 3:11:13 AM10/25/22
to KubeEdge
Hi All,

I created a CRD called EdgeDevice and I was trying to query the CRD from kubeedge node but got the following error:
Error GET EdgeDevice resource, error: 
Get\"https://127.0.0.1:10550/apis/shifu.edgenesis.io/v1alpha1/namespaces/devices/edgedevices/edgedevice-kubedge1\": dial tcp 127.0.0.1:10550: connect: connection refused\n","stream":"stderr","time":"2022-10-25T07:04:01.805319678Z"}

I followed https://edgemesh.netlify.app/guide/edge-kube-api.html and https://edgemesh.netlify.app/guide/ to setup EdgeMesh, but still get the error above.
EdgeMesh is running successfully and I can do:
{"apiVersion":"v1","items":[],"kind":"ServiceList"} 
which indicates Edge-Kube API endpoint is working.
More over, when I do: 
curl 127.0.0.1:10550/apis/shifu.edgenesis.io/v1alpha1/namespaces/devices/edgedevices/edgedevice-kubedge1
{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {

  },
  "status": "Failure",
  "message": "edgedevices.shifu.edgenesis.io \"edgedevice-kubedge1\" not found",
  "reason": "NotFound",
  "details": {
    "name": "edgedevice-kubedge1",
    "group": "shifu.edgenesis.io",
    "kind": "edgedevices"
  },
  "code": 404

I got different result from log.
Anyone encountered similar issue of know how to resolve this?

Thanks!
Xin
Reply all
Reply to author
Forward
0 new messages