Adds initial Node.js Helm chart - #6
Conversation
Initializes a Helm chart for deploying Node.js applications on Kubernetes. The chart includes configurations for: - Deployment - Service - Ingress - Autoscaling - ConfigMaps for Nginx - Secrets management This provides a foundation for easily deploying and managing Node.js applications within a Kubernetes cluster.
Updates chart and app versions to the initial development release 0.0.1. This reflects the start of the nodejs-helm feature development.
Initializes a Helm chart for deploying Node.js applications on Kubernetes. The chart includes configurations for: - Deployment - Service - Ingress - Autoscaling - ConfigMaps for Nginx - Secrets management This provides a foundation for easily deploying and managing Node.js applications within a Kubernetes cluster. fix(chart): Correct appVersion for nodejs chart Initializes chart version to 0.0.1 Updates chart and app versions to the initial development release 0.0.1. This reflects the start of the nodejs-helm feature development.
|
|
||
| {{- if .Values.nodejs.env.envFromSecretsManager.enabled }} | ||
| --- | ||
| apiVersion: external-secrets.io/v1beta1 |
There was a problem hiding this comment.
The ExternalSecret here is still on external-secrets.io/v1beta1, but we changed every other chart in this repo to v1. Please update the apiVersion
| - name: http | ||
| containerPort: {{ .Values.nodejs.port | default "3000" }} | ||
| protocol: TCP | ||
| livenessProbe: |
There was a problem hiding this comment.
The livenessProbe and readinessProbe in the deployment template currently render unconditionally, but their defaults are commented out in values.yaml. On a stock install, this generates empty keys, causing the Pod spec to fail validation. To avoid this, it is advisable to wrap them in {{- with .Values.livenessProbe }} blocks to ensure they only render when defined
| # Virtual Host Configs | ||
| ## | ||
| upstream nodejs_upstream { | ||
| server localhost:3000; |
There was a problem hiding this comment.
Port 3000 is currently hard-coded, and if someone changes the default port number in the values.yaml in the future, this configuration will still use port 3000, which will cause problems. Worth templating that line
…chart - Add optional preDeployJob (Helm pre-install/pre-upgrade hook) with its own Job and Secret templates, mirroring the nextjs chart pattern - Add nodejs.env.existingSecretName to allow mounting an externally managed Secret instead of the one rendered by the chart - Support custom ingress backend service name/port per path via dig - Wrap nginx/nodejs liveness and readiness probes in `with` so they're omitted when unset - Bump external-secrets ExternalSecret apiVersion to v1 - Template the nginx upstream port from .Values.nodejs.port - Bump chart version to 0.1.0
Initializes a Helm chart for deploying Node.js applications on Kubernetes.
The chart includes configurations for:
This provides a foundation for easily deploying and managing Node.js applications within a Kubernetes cluster.