diff --git a/charts/node-red/Chart.yaml b/charts/node-red/Chart.yaml index 0c335c20..93eeb26f 100644 --- a/charts/node-red/Chart.yaml +++ b/charts/node-red/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: 1.0.6-12 description: Node-RED is low-code programming for event-driven applications name: node-red -version: 3.2.0 +version: 3.3.0 keywords: - nodered - node-red diff --git a/charts/node-red/README.md b/charts/node-red/README.md index a457cc6e..2053af96 100644 --- a/charts/node-red/README.md +++ b/charts/node-red/README.md @@ -88,6 +88,7 @@ The following tables lists the configurable parameters of the Node-RED chart and | `affinity` | Affinity settings for pod assignment | `{}` | | `podAnnotations` | Key-value pairs to add as pod annotations | `{}` | | `deploymentAnnotations` | Key-value pairs to add as deployment annotations | `{}` | +| `hostAliases` | Specify /etc/hosts entries | `[]` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, diff --git a/charts/node-red/templates/deployment.yaml b/charts/node-red/templates/deployment.yaml index d19a25ba..71ba8f55 100644 --- a/charts/node-red/templates/deployment.yaml +++ b/charts/node-red/templates/deployment.yaml @@ -100,6 +100,10 @@ spec: {{- else }} emptyDir: {} {{ end }} + {{- if .Values.hostAliases }} + hostAliases: +{{ toYaml .Values.hostAliases | indent 8 }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} diff --git a/charts/node-red/values.yaml b/charts/node-red/values.yaml index 3f135b92..ac75189e 100644 --- a/charts/node-red/values.yaml +++ b/charts/node-red/values.yaml @@ -69,6 +69,14 @@ service: ## Set the externalTrafficPolicy in the Service to either Cluster or Local # externalTrafficPolicy: Cluster +hostAliases: [] + # Use hostAliases to add custom entries to /etc/hosts - mapping IP addresses to hostnames. + # ref: https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ + # - ip: "192.168.1.100" + # hostnames: + # - "example.com" + # - "www.example.com" + ingress: enabled: false annotations: {}