In this lab we are going to install and configure Node-Red using the Local Storage Provider for Storage Workload to run on k3s or RKE cluster
There are 2 methods provided to install Node-Red, the Easy Method with Rancher and Helm, or the Manual Method which include the needed yaml files.
Rancher
Kubernetes Cluster
Default StorageClass
LoadBalancer
Select App & Marketplace -> Chart Repositories
Name: k8s-at-home
Index url: https://k8s-at-home.com/charts/
You should now see the k8s-at-home Repo
Click on Values YAML and change/add the following items
env:
FLOWS: flows.json
NODE_OPTIONS: null
NODE_RED_ENABLE_PROJECTS: true
NODE_RED_ENABLE_SAFE_MODE: null
TZ: UTC
GUID: "1000"
PUID: "1000"
persistence:
data:
enabled: true
accessMode: ReadWriteOnce
size: 1Gi
service:
main:
type: LoadBalancer
ports:
http:
port: 1880
Cluster Explorer -> Services
kubectl create -f nodered-deployment.yaml
kubectl create -f nodered-service-lb.yaml
kubectl get svc -n nodered
Example:
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
nodered LoadBalancer 10.43.233.129 10.0.11.102 80:31063/TCP 8m33s
This example tells us that Node-Red is now available on 10.0.11.102 on port 80





