Files
auricom-home-cluster/cluster/apps/home/node-red/helm-release.yaml
2021-05-22 01:23:33 +00:00

86 lines
2.4 KiB
YAML

---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: node-red
namespace: home
spec:
releaseName: node-red
interval: 5m
chart:
spec:
# renovate: registryUrl=https://k8s-at-home.com/charts/
chart: node-red
version: 7.4.0
sourceRef:
kind: HelmRepository
name: k8s-at-home-charts
namespace: flux-system
interval: 5m
values:
image:
repository: nodered/node-red
tag: 1.3.5-12-minimal
env:
TZ: "Europe/Paris"
NODE_RED_ENABLE_PROJECTS: "true"
NODE_RED_ENABLE_SAFE_MODE: "false"
podSecurityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
persistence:
data:
enabled: true
mountPath: /data
existingClaim: node-red-config
service:
annotations:
prometheus.io/probe: "true"
prometheus.io/protocol: "http"
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/auth-url: "http://authelia.networking.svc.cluster.local/api/verify"
nginx.ingress.kubernetes.io/auth-signin: "https://login.${SECRET_CLUSTER_DOMAIN}/"
hosts:
- host: node-red.${SECRET_CLUSTER_DOMAIN}
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- node-red.${SECRET_CLUSTER_DOMAIN}
addons:
codeserver:
enabled: true
image:
repository: codercom/code-server
tag: 3.10.2
workingDir: "/data/projects"
args:
- --auth
- "none"
- --user-data-dir
- "/data/projects/.vscode"
- --extensions-dir
- "/data/projects/.vscode"
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/auth-url: "http://authelia.networking.svc.cluster.local/api/verify"
nginx.ingress.kubernetes.io/auth-signin: "https://login.${SECRET_CLUSTER_DOMAIN}/"
hosts:
- host: node-red-config.${SECRET_CLUSTER_DOMAIN}
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- node-red-config.${SECRET_CLUSTER_DOMAIN}
volumeMounts:
- name: data
mountPath: /data