[bitnami/nginx] Add hostAlias (#5277)

This commit is contained in:
Javier J. Salmerón-García
2021-01-28 13:21:12 +01:00
committed by GitHub
parent ba9cc6ed40
commit fddd86e6e4
4 changed files with 12 additions and 2 deletions

View File

@@ -25,4 +25,4 @@ name: nginx
sources:
- https://github.com/bitnami/bitnami-docker-nginx
- http://www.nginx.org
version: 8.4.3
version: 8.5.0

View File

@@ -81,6 +81,7 @@ The following tables lists the configurable parameters of the NGINX chart and th
| `image.pullPolicy` | NGINX image pull policy | `IfNotPresent` |
| `image.pullSecrets` | Specify docker-registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) |
| `image.debug` | Set to true if you would like to see extra information on logs | `false` |
| `hostAliases` | Add deployment host aliases | `[]` |
| `command` | Override default container command (useful when using custom images) | `nil` |
| `args` | Override default container args (useful when using custom images) | `nil` |
| `extraEnvVars` | Extra environment variables to be set on NGINX containers | `[]` |
@@ -121,7 +122,7 @@ The following tables lists the configurable parameters of the NGINX chart and th
| `extraVolumes` | Array to add extra volumes | `[]` (evaluated as a template) |
| `extraVolumeMounts` | Array to add extra mount | `[]` (evaluated as a template) |
| `sidecars` | Attach additional containers to nginx pods | `nil` |
| `initContainers` | Additional init containers (this value is evaluated as a template) | `[]` |
| `initContainers` | Additional init containers (this value is evaluated as a template) | `[]` |
### Custom NGINX application parameters

View File

@@ -33,6 +33,9 @@ spec:
{{- end }}
spec:
{{- include "nginx.imagePullSecrets" . | nindent 6 }}
{{- if .Values.hostAliases }}
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.hostAliases "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.affinity }}
affinity: {{- include "common.tplvalues.render" (dict "value" .Values.affinity "context" $) | nindent 8 }}
{{- else }}

View File

@@ -43,6 +43,11 @@ image:
##
kubeVersion:
## Deployment pod host aliases
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
##
hostAliases: []
## Kubernetes Cluster Domain
##
clusterDomain: cluster.local
@@ -492,6 +497,7 @@ ldapDaemon:
sidecars:
## Extra init containers
##
initContainers:
## Configure the ingress resource that allows you to access the