Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Commit

Permalink
nr old helm
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsumaui committed Jun 2, 2023
1 parent 930f40d commit fd7f2b6
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 30 deletions.
71 changes: 71 additions & 0 deletions cluster/apps/home/node-red/helm-release-bad.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: node-red
namespace: home
spec:
interval: 15m
chart:
spec:
chart: app-template
version: 1.5.0
sourceRef:
kind: HelmRepository
name: bjw-s-charts
namespace: flux-system
install:
createNamespace: true
remediation:
retries: 5
upgrade:
remediation:
retries: 5
values:
image:
# repository: ghcr.io/k8s-at-home/node-red
# tag: v2.2.2
repository: nodered/node-red
tag: 2.2.3
env:
TZ: "Europe/London"
service:
main:
ports:
http:
port: 1880
ingress:
main:
enabled: true
ingressClassName: "nginx"
annotations:
ingress.kubernetes.io/whitelist-source-range: 192.168.167.0/24
nginx.ingress.kubernetes.io/auth-url: https://auth.${SECRET_DOMAIN}/oauth2/auth
nginx.ingress.kubernetes.io/auth-signin: https://auth.${SECRET_DOMAIN}/oauth2/start
hajimari.io/enable: "true"
hajimari.io/icon: "home-automation"
hosts:
- host: &host "nodered.${SECRET_DOMAIN}"
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- *host
# podSecurityContext:
# runAsUser: 568
# runAsGroup: 568
# fsGroup: 568
# fsGroupChangePolicy: "OnRootMismatch"
persistence:
data:
enabled: true
mountPath: /data
existingClaim: node-red-pvc
resources:
requests:
memory: 250Mi
cpu: 500m
limits:
memory: 1500Mi
cpu: 2000m
45 changes: 15 additions & 30 deletions cluster/apps/home/node-red/helm-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,58 +5,43 @@ metadata:
name: node-red
namespace: home
spec:
interval: 15m
interval: 5m
chart:
spec:
chart: app-template
version: 1.5.0
# renovate: registryUrl=https://k8s-at-home.com/charts/
chart: node-red
version: 10.1.2
sourceRef:
kind: HelmRepository
name: bjw-s-charts
name: k8s-at-home-charts
namespace: flux-system
install:
createNamespace: true
remediation:
retries: 5
upgrade:
remediation:
retries: 5
interval: 5m
values:
image:
# repository: ghcr.io/k8s-at-home/node-red
# tag: v2.2.2
repository: nodered/node-red
tag: 2.2.3
env:
TZ: "Europe/London"
service:
main:
ports:
http:
port: 1880
NODE_RED_ENABLE_PROJECTS: "true"
NODE_RED_ENABLE_SAFE_MODE: "false"
ingress:
main:
enabled: true
ingressClassName: "nginx"
ingressClassName: nginx
annotations:
ingress.kubernetes.io/whitelist-source-range: 192.168.167.0/24
nginx.ingress.kubernetes.io/auth-url: https://auth.${SECRET_DOMAIN}/oauth2/auth
nginx.ingress.kubernetes.io/auth-signin: https://auth.${SECRET_DOMAIN}/oauth2/start
hajimari.io/enable: "true"
hajimari.io/icon: "home-automation"
hosts:
- host: &host "nodered.${SECRET_DOMAIN}"
paths:
- path: /
pathType: Prefix
- host: nodered.${SECRET_DOMAIN}
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- *host
# podSecurityContext:
# runAsUser: 568
# runAsGroup: 568
# fsGroup: 568
# fsGroupChangePolicy: "OnRootMismatch"
- hosts:
- nodered.${SECRET_DOMAIN}
persistence:
data:
enabled: true
Expand Down

0 comments on commit fd7f2b6

Please sign in to comment.