A minimal stateless Express service, with its configuration injected from a Rune configmap as environment variables.
browser/client ──▶ node-hello ×2 (express) [namespace: demo]
expose: node-hello.local env ← configmap
What it demonstrates: a stateless HTTP service plus envFrom — keys in the node-hello-settings configmap land in the container as env vars, so config changes don't require an image rebuild.
- A running
runedand configuredruneCLI (quick start). - Docker.
docker build -t node-hello:dev ./apprune lint deploy/app.yaml
rune cast deploy/app.yaml
rune get services -n demoecho "127.0.0.1 node-hello.local" | sudo tee -a /etc/hosts
curl http://node-hello.local/api/hello
# {"message":"hello from node on rune","instance":"f6e5d4c3b2a1"}In dev mode the ingress binds :8080, so use http://node-hello.local:8080.
rune create config node-hello-settings -n demo --from-literal=GREETING="howdy from a configmap"
rune restart node-hello -n demo # instances pick up env on restart
curl http://node-hello.local/api/hello
# {"message":"howdy from a configmap", ...}rune delete -f deploy/app.yaml