openyurtio / yurt-device-controller

This repository contains the device-controller that leverages EdgeX Foundry to manage edge devices
Apache License 2.0
14 stars 15 forks source link

[Question]Is there the demo:edgex device creating by k8s API? #29

Open snowfly568790005 opened 2 years ago

snowfly568790005 commented 2 years ago

What happened: I dont know how to create device/deviceprofile by k8s API when i want integrate openyurt with thingsboard cloud like.So I can compare the two device provide way: k8s API and MQTT API What you expected to happen: give the demo by k8s API with java client better How to reproduce it (as minimally and precisely as possible): Anything else we need to know?: Is there any project about cloud web consol which can manage device/device profile/edgex instances /protocals such like IoT Cloud ManageMent Suite(for Edgex or Other Gateway)?

rambohe-ch commented 2 years ago

/assign @wawlian @qclc

qclc commented 2 years ago

Device/deviceProfile can be regarded as a common Custom Resource. At present, there is no demo related to the client, but the general implementation steps are the same as accessing other custom resources: 1. First, generate the client corresponding to the custom resource; 2. Then use the client to access related custom resources in k8s. (The definitions of the above two CRDs are in the following two directories: device_types.go and deviceprofile_types.go) @snowfly568790005

wawlian commented 2 years ago

@snowfly568790005 we will sync the api definitions to an individual repo yurt-device-controller-api and generate versioned clientsets convenient for other projects in about 1~2 weeks. Demos will be added there either.

wawlian commented 1 year ago

This task depends on yurt-iot-manager 98