node-red

by joaquinito2051

Helm chartv1.2.2App 0.19.6

Node-RED is flow-based programming for the Internet of Things

About this chart

Node-RED

Flow-based programming for the Internet of Things

This chart is not maintained by the Node-RED project and any issues with the chart should be raised here

TL;DR;

helm install <helm-repo>/node-red

helm install stable/node-red

Introduction

This code is adopted from the official node-red docker image which runs the Node-RED application

Installing the Chart

To install the chart with the release name my-release:

helm install --name my-release <helm-repo>/node-red

Uninstalling the Chart

helm install --name my-release stable/node-red

To uninstall/delete the my-release deployment:

helm delete my-release --purge

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following tables lists the configurable parameters of the Node-RED chart and their default values.

ParameterDescriptionDefault
image.repositorynode-red imagenodered/node-red-docker
image.tagnode-red image tag0.19.4-v8
image.pullPolicynode-red image pull policyIfNotPresent
strategyTypeSpecifies the strategy used to replace old Pods by new onesRecreate
flowsDefault flows configurationflows.json
nodeOptionsNode.js runtime arguments``
timezoneDefault timezoneUTC
service.typeKubernetes service type for the GUIClusterIP
service.portKubernetes port where the GUI is exposed1880
service.nodePortKubernetes nodePort where the GUI is exposed``
service.annotationsService annotations for the GUI{}
service.labelsCustom labels{}
service.loadBalancerIPLoadbalance IP for the GUI{}
service.loadBalancerSourceRangesList of IP CIDRs allowed access to load balancer (if supported)None
service.externalTrafficPolicySet the externalTrafficPolicy in the Service to either Cluster or LocalCluster
ingress.enabledEnables Ingressfalse
ingress.annotationsIngress annotations{}
ingress.pathIngress path/
ingress.hostsIngress accepted hostnameschart-example.local
ingress.tlsIngress TLS configuration[]
persistence.enabledUse persistent volume to store datafalse
persistence.sizeSize of persistent volume claim5Gi
persistence.existingClaimUse an existing PVC to persist datanil
persistence.storageClassType of persistent volume claim-
persistence.accessModesPersistence access modesReadWriteOnce
persistence.subPathMount a sub dir of the persistent volumenil
resourcesCPU/Memory resource requests/limits{}
nodeSelectorNode labels for pod assignment{}
tolerationsToleration labels for pod assignment[]
affinityAffinity settings for pod assignment{}

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
helm install --name my-release \
  --set config.timezone="America/New_York" \
    <helm-repo>/node-red
helm install --name my-release \

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

helm install --name my-release -f values.yaml <helm-repo>/node-red

helm install --name my-release -f values.yaml stable/node-red Read through the values.yaml file. It has several commented out suggested values.

Deploy node-red with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has node-red on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartnode-red is pinned at v1.2.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply