Comments (3)
I like this very much @beasteers!
from node-red-chart.
@beasteers
I think combining UI (1) and flow_refresh.py
(2) would not work together. I use an UI/Dev Instance with a PVC to develop the flows and settings etc. Like an native instance on a single server. Your option 1.
Later I use the settings, flows etc. and pass them to the helm values together with the side car to install additional node modules from scratch. No matter on which node the pod is starting and with out any PVC. Or on an different cluster. Changes are only deployed with helm upgrade. The node-red interface should not be used (RO, Adminonly) otherwise the newly deployed settings from UI will be lost if the pod is starting on a different node. This approach should cover the kubernetes micro service architecture, with may node-red pods all deployed from main code basis.
Of course, the flow_refresh.py
is no perfect at all. External npm packages, themes etc. can not installed this way, as the node-red api do not have this option.
As you mentioned bevor an initContainer could be install npm packages like themes etc. before the container is starting. Actually I have not installed any npm packages via an initContainer.
from node-red-chart.
U should not import flows from an config file with the sidecar when you have enabled the projects mode in node red. You will have two diffrent sources of truth.
If you clone or push from a remote, node red will not auto install node modules from the package.json aka Dependencies Tab but will alert the user. The user can install the node-modules from the dependencies tab by klick on install button.
The project mode needs an seperate sidecar, which is watching the packages.json an runs the flow-refresh.py on any changes. It should than parse the node modules from the package,json directly instead of the env extranodemodules. May be this could work.
Or a node-red feature itself to autoinstall debendencies when pulling or cloning in projects mode.
from node-red-chart.
Related Issues (20)
- Rollback chart to version 0.7.0
- initContainer breaking access to repositories when using Projects HOT 2
- additional pod labels HOT 5
- Update node-red to 3.0 HOT 1
- Missing curl in sidecar image HOT 4
- Is HA possible? HOT 3
- npm installs fail if hardlinks not supported on file system HOT 2
- npm install from values file HOT 7
- persistence: Keep pvc when uninstalling helm chart HOT 6
- Flow_refresh.sh Script failed in Sidecar Container HOT 6
- Readiness for built-in https scheme support HOT 1
- Sidecar API: ApiException when calling kubernetes HOT 4
- helmfile: Failed to render chart HOT 3
- Implement computed annotations for HOT 4
- Error when enabling certificate and rendering templates HOT 3
- Cannot GET /metrics HOT 1
- Persisence-related chart values not being respected HOT 2
- Make it possible to disable creating role/rolebinding
- PermissonError on Config Map Refresh in SideCar Container
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-red-chart.