Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node Red #1020

Merged
merged 1 commit into from
Jun 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cluster/apps/home/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
This namespace is intended to be for home oriented things including home-automation

Currently implementing:

* [zwavejs2mqtt](https://artifacthub.io/packages/helm/k8s-at-home/zwavejs2mqtt) for managing zwave devices. Uses websockets for home-assistant, but mqtt for other apps such as node-red.
* [ser2sock](https://artifacthub.io/packages/helm/k8s-at-home/ser2sock), for exposing zwave/zigbee adapters as tcp/ip resources. May move to [akri](https://github.com/project-akri/akri) in the future
* [network-ups-tools](https://networkupstools.org) for UPS monitoring
[emqx](https://www.emqx.io) for MQTT brokering
* [Node-Red](https://nodered.org/) for some automation

Note: Apps may be in use that aren't currently part of the cluster and this may seem confusing. Reach out with any questions via a 'Discussion' issue. I'm usually good about responding. If I don't, one of my robots will.
1 change: 1 addition & 0 deletions cluster/apps/home/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ resources:
- ser2sock
- network-ups-tools
- emqx
- node-red
66 changes: 66 additions & 0 deletions cluster/apps/home/node-red/helm-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: &app node-red
namespace: home
spec:
interval: 15m
chart:
spec:
chart: kah-common-chart
version: 1.1.2
sourceRef:
kind: HelmRepository
name: k8s-at-home-charts
namespace: flux-system
interval: 15m
install:
createNamespace: true
values:
global:
nameOverride: *app
image:
repository: ghcr.io/k8s-at-home/node-red
tag: v2.2.2
env:
TZ: "${TZ}"
FLOWS: flows.json
NODE_RED_ENABLE_PROJECTS: "true"
NODE_RED_ENABLE_SAFE_MODE: "false"
service:
main:
ports:
http:
port: 1880
ingress:
main:
enabled: true
ingressClassName: traefik
annotations:
hajimari.io/appName: "Node-RED"
hajimari.io/instance: "bloop-quarky"
hajimari.io/enable: "true"
hajimari.io/icon: "graph-outline"
cert-manager.io/cluster-issuer: letsencrypt-production
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.middlewares: networking-rfc-1918@kubernetescrd
hosts:
- host: &host "{{ .Release.Name }}.${XYZ_DOMAIN}"
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- *host
persistence:
config:
enabled: true
existingClaim: node-red-config-v1
mountPath: "/data"
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
memory: 500Mi
6 changes: 6 additions & 0 deletions cluster/apps/home/node-red/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- helm-release.yaml
- pvc-config.yaml
13 changes: 13 additions & 0 deletions cluster/apps/home/node-red/pvc-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: node-red-config-v1
namespace: home
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: ceph-block