add support for valur for nodeSelector

Signed-off-by: Alexandre Peixoto Ferreira <alexandref75@gmail.com>
This commit is contained in:
Alexandre Peixoto Ferreira
2022-11-04 09:55:56 -05:00
parent 054c2534e1
commit d364c8b385
3 changed files with 9 additions and 1 deletions

View File

@@ -20,6 +20,10 @@ Kubernetes primarily manages CPU, memory, storage, and network, while leaving ot
In IoT environments, applications can have direct access to sensors and actuators, either directly by interfacing with a device driver on the kernel (e.g. digital I/O pins, temperature sensors, analog inputs, microphones, audio output, video cameras) or indirectly through hardware interfaces (like serial ports, I2C, SPI, bluetooth, LoRa, USB and others). In IoT environments, applications can have direct access to sensors and actuators, either directly by interfacing with a device driver on the kernel (e.g. digital I/O pins, temperature sensors, analog inputs, microphones, audio output, video cameras) or indirectly through hardware interfaces (like serial ports, I2C, SPI, bluetooth, LoRa, USB and others).
Controlled access to these devices is essential to enable a container-based IoT solution. Smarter-device-manager allows containers to have direct access to host devices in a secure way. Controlled access to these devices is essential to enable a container-based IoT solution. Smarter-device-manager allows containers to have direct access to host devices in a secure way.
## Values
The configuration.nodeSelector value allows the nodeSelector to be changed in a higher level chart simplyfyng deploying multiple services at the same time; CNI, DNS and device-manager with a single label for example.
## Pre-requisites ## Pre-requisites
- k8s > 1.18 (before this the plugin interface used a different directory which requires a different configuration) - k8s > 1.18 (before this the plugin interface used a different directory which requires a different configuration)

View File

@@ -20,7 +20,7 @@ spec:
node.kubernetes.io/bootstrap-checkpoint: "true" node.kubernetes.io/bootstrap-checkpoint: "true"
spec: spec:
nodeSelector: nodeSelector:
smarter-device-manager : enabled {{- toYaml .Values.configuration.nodeSelector | nindent 8 }}
tolerations: tolerations:
- key: "smarter.type" - key: "smarter.type"
operator: "Equal" operator: "Equal"

View File

@@ -10,6 +10,10 @@ image:
tag: "" tag: ""
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
configuration:
nodeSelector:
smarter-device-manager: enabled
# If a specific configurations is used it can be provided by uncommenting this lines # If a specific configurations is used it can be provided by uncommenting this lines
# config: # config:
# - devicematch: ^snd$ # - devicematch: ^snd$