From c0ab0f7e58dab62ba249ea790bc94779becbf891 Mon Sep 17 00:00:00 2001 From: Chi-Kai Date: Thu, 27 Feb 2025 20:47:30 +0800 Subject: [PATCH] [Issue #1123] Fix LwM2M example for Gateway --- .../lwm2m-deviceshifu-configmap.yaml | 15 -------- .../lwm2m-deviceshifu-deployment.yaml | 38 ------------------- .../lwm2m-deviceshifu-service.yaml | 22 ----------- .../deviceshifu-lwm2m/lwm2m-edgedevice.yaml | 13 ------- 4 files changed, 88 deletions(-) delete mode 100644 examples/lwm2m_gw_http/deviceshifu-lwm2m/lwm2m-deviceshifu-configmap.yaml delete mode 100644 examples/lwm2m_gw_http/deviceshifu-lwm2m/lwm2m-deviceshifu-deployment.yaml delete mode 100644 examples/lwm2m_gw_http/deviceshifu-lwm2m/lwm2m-deviceshifu-service.yaml delete mode 100644 examples/lwm2m_gw_http/deviceshifu-lwm2m/lwm2m-edgedevice.yaml diff --git a/examples/lwm2m_gw_http/deviceshifu-lwm2m/lwm2m-deviceshifu-configmap.yaml b/examples/lwm2m_gw_http/deviceshifu-lwm2m/lwm2m-deviceshifu-configmap.yaml deleted file mode 100644 index 62d03230a..000000000 --- a/examples/lwm2m_gw_http/deviceshifu-lwm2m/lwm2m-deviceshifu-configmap.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: deviceshifu-lwm2m - namespace: deviceshifu -data: - driverProperties: | - driverSku: LwM2M Device - driverImage: lwm2m-device:v0.0.1 - instructions: | - instructions: - read_value: - protocolPropertyList: - ObjectId: /3442/0/130 - EnableObserve: false diff --git a/examples/lwm2m_gw_http/deviceshifu-lwm2m/lwm2m-deviceshifu-deployment.yaml b/examples/lwm2m_gw_http/deviceshifu-lwm2m/lwm2m-deviceshifu-deployment.yaml deleted file mode 100644 index 6d087db6e..000000000 --- a/examples/lwm2m_gw_http/deviceshifu-lwm2m/lwm2m-deviceshifu-deployment.yaml +++ /dev/null @@ -1,38 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app: deviceshifu-lwm2m-deployment - name: deviceshifu-lwm2m-deployment - namespace: deviceshifu -spec: - replicas: 1 - selector: - matchLabels: - app: deviceshifu-lwm2m-deployment - template: - metadata: - labels: - app: deviceshifu-lwm2m-deployment - spec: - containers: - - image: edgehub/deviceshifu-http-lwm2m:nightly - name: deviceshifu-lwm2m - ports: - - containerPort: 8080 - volumeMounts: - - name: deviceshifu-config - mountPath: "/etc/edgedevice/config" - readOnly: true - env: - - name: EDGEDEVICE_NAME - value: "edgedevice-lwm2m" - - name: EDGEDEVICE_NAMESPACE - value: "devices" - - name: LOG_LEVEL - value: debug - volumes: - - name: deviceshifu-config - configMap: - name: deviceshifu-lwm2m - serviceAccountName: edgedevice-sa diff --git a/examples/lwm2m_gw_http/deviceshifu-lwm2m/lwm2m-deviceshifu-service.yaml b/examples/lwm2m_gw_http/deviceshifu-lwm2m/lwm2m-deviceshifu-service.yaml deleted file mode 100644 index 4bd1cc547..000000000 --- a/examples/lwm2m_gw_http/deviceshifu-lwm2m/lwm2m-deviceshifu-service.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app: deviceshifu-lwm2m-deployment - name: deviceshifu-lwm2m-service - namespace: deviceshifu -spec: - ports: - - name: deviceshifu - port: 80 - protocol: TCP - nodePort: 30080 - targetPort: 8080 - - name: lwm2mserver-coap - port: 5683 - protocol: UDP - nodePort: 30000 - targetPort: 5683 - selector: - app: deviceshifu-lwm2m-deployment - type: NodePort diff --git a/examples/lwm2m_gw_http/deviceshifu-lwm2m/lwm2m-edgedevice.yaml b/examples/lwm2m_gw_http/deviceshifu-lwm2m/lwm2m-edgedevice.yaml deleted file mode 100644 index 003c1f9cd..000000000 --- a/examples/lwm2m_gw_http/deviceshifu-lwm2m/lwm2m-edgedevice.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: shifu.edgenesis.io/v1alpha1 -kind: EdgeDevice -metadata: - name: edgedevice-lwm2m - namespace: devices -spec: - sku: "LwM2M Device" - connection: Ethernet - protocol: LwM2M - protocolSettings: - LwM2MSetting: - endpointName: deviceshifu-lwm2m-service - securityMode: None