Merge pull request #920 from juan131/node_extra_envs

[bitnami/node] Allow using extra env. variables
This commit is contained in:
Carlos Rodríguez Hernández
2018-11-11 09:22:13 +01:00
committed by GitHub
4 changed files with 13 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
name: node
version: 6.2.3
version: 6.3.0
appVersion: 8.12.0
description: Event-driven I/O server-side JavaScript environment based on V8
keywords:

View File

@@ -58,13 +58,14 @@ The following table lists the configurable parameters of the Node chart and thei
| `image.pullPolicy` | NodeJS image pull policy | `IfNotPresent` |
| `image.pullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) |
| `git.registry` | Git image registry | `docker.io` |
| `git.repository` | Git image name | `bitnami/git` |
| `git.repository` | Git image name | `bitnami/git` |
| `git.tag` | Git image tag | `latest` |
| `git.pullPolicy` | Git image pull policy | `Always` if `imageTag` is `latest`, else `IfNotPresent` |
| `repository` | Repo of the application | `https://github.com/bitnami/sample-mean.git` |
| `revision` | Revision to checkout | `master` |
| `replicas` | Number of replicas for the application | `1` |
| `applicationPort` | Port where the application will be running | `3000` |
| `extraEnv` | Any extra environment variables to be pass to the pods | `{}` |
| `service.type` | Kubernetes Service type | `ClusterIP` |
| `service.port` | Kubernetes Service port | `80` |
| `service.annotations` | Annotations for the Service | {} |

View File

@@ -106,6 +106,9 @@ spec:
{{- end }}
- name: DATA_FOLDER
value: "/app"
{{- if .Values.extraEnv }}
{{ toYaml .Values.extraEnv | indent 8 }}
{{- end }}
workingDir: /app
command: ['/bin/bash', '-c', 'useradd bitnami && su bitnami -c "PATH=/opt/bitnami/node/bin:$PATH npm start"']
ports:

View File

@@ -23,6 +23,9 @@ image:
# pullSecrets:
# - myRegistrKeySecretName
## Bitnami git image version
## ref: https://hub.docker.com/r/bitnami/git/tags/
##
git:
registry: docker.io
repository: bitnami/git
@@ -41,10 +44,13 @@ revision: master
##
replicas: 1
## Specify the port where your applucation will be running
## Specify the port where your application will be running
##
applicationPort: 3000
# Define custom environment variables to pass to the image here
extraEnv: {}
## Kubernetes Service Configuration
service:
## For minikube, set this to NodePort, elsewhere use LoadBalancer