node
Node.js is a runtime environment built on V8 JavaScript engine. Its event-driven, non-blocking I/O model enables the development of fast, scalable, and data-intensive server applications.
About this chart
Node.js packaged by Bitnami
Node.js is a runtime environment built on V8 JavaScript engine. Its event-driven, non-blocking I/O model enables the development of fast, scalable, and data-intensive server applications.
Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.
Azure-ready Charts with Containers from marketplace.azurecr.io
This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.
$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo
TL;DR
$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/node
Introduction
This chart bootstraps a Node deployment on a Kubernetes cluster using the Helm package manager.
It clones and deploys a Node.js application from a Git repository. Optionally, you can set up an Ingress resource to access your application and provision an external database using the Kubernetes service catalog and the Open Service Broker for Azure.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.
Prerequisites
- Kubernetes 1.19+
- Helm 3.2.0+
- PV provisioner support in the underlying infrastructure
- ReadWriteMany volumes for deployment scaling
Installing the Chart
To install the chart with the release name my-release:
$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/node
These commands deploy Node.js on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation. Also includes support for MariaDB chart out of the box.
Due that the Helm Chart clones the application on the /app volume while the container is initializing, a persistent volume is not required.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release deployment:
$ helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Force target Kubernetes version (using Helm capabilities if not set) | "" |
nameOverride | String to partially override node.fullname template (will maintain the release name) | "" |
fullnameOverride | String to fully override node.fullname template | "" |
namespaceOverride | Override namespace for resources | "" |
commonLabels | Add labels to all the deployed resources | {} |
commonAnnotations | Add annotations to all the deployed resources | {} |
Node parameters
| Name | Description | Value |
|---|---|---|
installCommand | Override default container install command (useful when using custom images or repositories) | ["/bin/bash","-ec","npm install"] |
command | Override default container command (useful when using custom images) | ["/bin/bash","-ec","npm start"] |
args | Override default container args (useful when using custom images) | [] |
hostAliases | Deployment pod host aliases | [] |
extraEnvVars | Extra environment variables to be set on Node container | [] |
extraEnvVarsCM | Name of existing ConfigMap containing extra environment variables | "" |
extraEnvVarsSecret | Name of existing Secret containing extra environment variables | "" |
mongodb.enabled | Whether to install or not the MongoDB® chart | true |
mongodb.auth.enabled | Whether to enable auth or not for the MongoDB® chart | true |
mongodb.auth.rootPassword | MongoDB® admin password | "" |
mongodb.auth.username | MongoDB® custom user | user |
mongodb.auth.database | MongoDB® custom database | test_db |
mongodb.auth.password | MongoDB® custom password | secret_password |
externaldb.enabled | Enables or disables external database (ignored if mongodb.enabled=true) | false |
externaldb.ssl | Set to true if your external database has ssl enabled | false |
externaldb.secretName | Secret containing existing database credentials | "" |
externaldb.type | Only if using Kubernetes Service Catalog you can specify the kind of broker used. Available options are osba | gce |
externaldb.broker.serviceInstanceName | If you provide the serviceInstanceName, the chart will create a ServiceBinding for that ServiceInstance | "" |
Node deployment parameters
| Name | Description | Value |
|---|---|---|
image.registry | NodeJS image registry | docker.io |
image.repository | NodeJS image repository | bitnami/node |
image.tag | NodeJS image tag (immutable tags are recommended) | 16.18.0-debian-11-r0 |
image.digest | NodeJS image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
image.pullPolicy | NodeJS image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] |
image.debug | Set to true if you would like to see extra information on logs | false |
replicaCount | Specify the number of replicas for the application | 1 |
updateStrategy.type | Strategy to use to replace existing pods. | RollingUpdate |
containerPorts.http | Specify the port where your application will be running | 3000 |
podAffinityPreset | Pod affinity preset. Ignored if affinity is set. Allowed values: soft or hard | "" |
podAntiAffinityPreset | Pod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hard | soft |
nodeAffinityPreset.type | Node affinity preset type. Ignored if affinity is set. Allowed values: soft or hard | "" |
nodeAffinityPreset.key | Node label key to match Ignored if affinity is set. | "" |
nodeAffinityPreset.values | Node label values to match. Ignored if affinity is set. | [] |
affinity | Affinity for pod assignment. Evaluated as a template. | {} |
nodeSelector | Node labels for pod assignment. Evaluated as a template. | {} |
tolerations | Tolerations for pod assignment. Evaluated as a template. | [] |
podAnnotations | Additional pod annotations | {} |
podLabels | Additional labels for Node pods | {} |
extraDeploy | Array of extra objects to deploy with the release (evaluated as a template) | [] |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the the deployment(s)/statefulset(s) | ["sleep"] |
diagnosticMode.args | Args to override all containers in the the deployment(s)/statefulset(s) | ["infinity"] |
livenessProbe.enabled | Enable livenessProbe | true |
livenessProbe.path | Request path for livenessProbe | / |
livenessProbe.initialDelaySeconds | Initial delay seconds for livenessProbe | 60 |
livenessProbe.periodSeconds | Period seconds for livenessProbe |
Deploy node with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has node on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartnode is pinned at v19.1.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply