Skip to content

Commit

Permalink
feat: Helm updates to device-coap and device-bacnet for v3 C SDK (#226)
Browse files Browse the repository at this point in the history
Signed-off-by: Bryon Nevis <[email protected]>
  • Loading branch information
bnevis-i authored May 31, 2023
1 parent ed08fec commit fa11870
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright (C) 2022 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#

# C SDK in EdgeX 3.0 does not yet support common config;
# Use env var override for what is normally in common config

apiVersion: v1
kind: ConfigMap
metadata:
name: edgex-device-c-sdk-environment
data:
CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
DATABASE_HOST: edgex-redis
REGISTRY_HOST: edgex-core-consul
{{- if (eq .Values.edgex.features.messagebusbackend "redis") }}
MESSAGEBUS_HOST: edgex-redis
{{- end }}
{{- if (eq .Values.edgex.features.messagebusbackend "mqtt") }}
MESSAGEBUS_TYPE: mqtt
MESSAGEBUS_PROTOCOL: tcp
MESSAGEBUS_HOST: edgex-mqtt-broker
MESSAGEBUS_PORT: "1883"
{{- end }}
{{- if .Values.edgex.security.enabled }}
MESSAGEBUS_AUTHMODE: usernamepassword
MESSAGEBUS_SECRETNAME: message-bus
{{- else }}
MESSAGEBUS_AUTHMODE: none
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ spec:
- "/device-bacnet-ip/device-bacnet-c"
- "-cp=consul://edgex-core-consul:8500"
- "--registry"
- "--confdir=/res"
{{- end}}
ports:
- containerPort: {{.Values.edgex.port.device.bacnet}}
Expand All @@ -63,6 +62,8 @@ spec:
envFrom:
- configMapRef:
name: edgex-common-variables
- configMapRef:
name: edgex-device-c-sdk-environment
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ spec:
- "/device-coap"
- "-cp=consul://edgex-core-consul:8500"
- "--registry"
- "--confdir=/res"
{{- end}}
ports:
- containerPort: {{.Values.edgex.port.device.coap}}
Expand All @@ -63,6 +62,8 @@ spec:
envFrom:
- configMapRef:
name: edgex-common-variables
- configMapRef:
name: edgex-device-c-sdk-environment
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
Expand Down
6 changes: 3 additions & 3 deletions deployment/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,9 @@ edgex:
runAsUser: 2002
runAsGroup: 2001
tlsHost: edgex
addConsulRoles: "app-external-mqtt-trigger,app-http-export,app-metrics-influxdb,app-mqtt-export,app-rfid-llrp-inventory,app-sample,device-bacnet,device-coap,device-gpio,device-modbus,device-mqtt,device-onvif-camera,device-rfid-llrp,device-snmp,device-usb-camera"
addServiceTokens: "app-external-mqtt-trigger,app-http-export,app-metrics-influxdb,app-mqtt-export,app-rfid-llrp-inventory,app-sample,device-bacnet,device-coap,device-gpio,device-modbus,device-mqtt,device-onvif-camera,device-rest,device-rfid-llrp,device-snmp,device-usb-camera,device-virtual"
addKnownSecrets: "redisdb[app-external-mqtt-trigger;app-http-export;app-metrics-influxdb;app-mqtt-export;app-rfid-llrp-inventory;app-sample;device-bacnet;device-coap;device-gpio;device-modbus;device-mqtt;device-onvif-camera;device-rest;device-rfid-llrp;device-snmp;device-usb-camera;device-virtual],message-bus[app-external-mqtt-trigger;app-http-export;app-metrics-influxdb;app-mqtt-export;app-rfid-llrp-inventory;app-sample;device-bacnet;device-coap;device-gpio;device-modbus;device-mqtt;device-onvif-camera;device-rest;device-rfid-llrp;device-snmp;device-usb-camera;device-virtual]"
addConsulRoles: "app-external-mqtt-trigger,app-http-export,app-metrics-influxdb,app-mqtt-export,app-rfid-llrp-inventory,app-sample,device-bacnet-ip,device-coap,device-gpio,device-modbus,device-mqtt,device-onvif-camera,device-rfid-llrp,device-snmp,device-usb-camera"
addServiceTokens: "app-external-mqtt-trigger,app-http-export,app-metrics-influxdb,app-mqtt-export,app-rfid-llrp-inventory,app-sample,device-bacnet-ip,device-coap,device-gpio,device-modbus,device-mqtt,device-onvif-camera,device-rest,device-rfid-llrp,device-snmp,device-usb-camera,device-virtual"
addKnownSecrets: "redisdb[app-external-mqtt-trigger;app-http-export;app-metrics-influxdb;app-mqtt-export;app-rfid-llrp-inventory;app-sample;device-bacnet-ip;device-coap;device-gpio;device-modbus;device-mqtt;device-onvif-camera;device-rest;device-rfid-llrp;device-snmp;device-usb-camera;device-virtual],message-bus[app-external-mqtt-trigger;app-http-export;app-metrics-influxdb;app-mqtt-export;app-rfid-llrp-inventory;app-sample;device-bacnet-ip;device-coap;device-gpio;device-modbus;device-mqtt;device-onvif-camera;device-rest;device-rfid-llrp;device-snmp;device-usb-camera;device-virtual]"

# resources defines the cpu and memory limits and requests for the respective application
resources:
Expand Down

0 comments on commit fa11870

Please sign in to comment.