Skip to content

Commit d364c8b

Browse files
committed
add support for valur for nodeSelector
Signed-off-by: Alexandre Peixoto Ferreira <[email protected]>
1 parent 054c253 commit d364c8b

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

chart/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ Kubernetes primarily manages CPU, memory, storage, and network, while leaving ot
2020
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).
2121
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.
2222

23+
## Values
24+
25+
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.
26+
2327
## Pre-requisites
2428

2529
- k8s > 1.18 (before this the plugin interface used a different directory which requires a different configuration)

chart/templates/common.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ spec:
2020
node.kubernetes.io/bootstrap-checkpoint: "true"
2121
spec:
2222
nodeSelector:
23-
smarter-device-manager : enabled
23+
{{- toYaml .Values.configuration.nodeSelector | nindent 8 }}
2424
tolerations:
2525
- key: "smarter.type"
2626
operator: "Equal"

chart/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ image:
1010
tag: ""
1111
pullPolicy: IfNotPresent
1212

13+
configuration:
14+
nodeSelector:
15+
smarter-device-manager: enabled
16+
1317
# If a specific configurations is used it can be provided by uncommenting this lines
1418
# config:
1519
# - devicematch: ^snd$

0 commit comments

Comments
 (0)