[bitnami/joomla] Add hostAliases (#5247)

This commit is contained in:
Javier J. Salmerón-García
2021-01-28 13:17:57 +01:00
committed by GitHub
parent eaefbc16ad
commit 085b3cea6e
4 changed files with 16 additions and 5 deletions

View File

@@ -27,4 +27,4 @@ name: joomla
sources:
- https://github.com/bitnami/bitnami-docker-joomla
- http://www.joomla.org/
version: 10.0.1
version: 10.1.0

View File

@@ -96,6 +96,7 @@ The following table lists the configurable parameters of the Joomla! chart and t
| `initContainers` | Add additional init containers to the pod (evaluated as a template) | `nil` |
| `lifecycleHooks` | LifecycleHook to set additional configuration at startup Evaluated as a template | `` |
| `livenessProbe` | Liveness probe configuration | `Check values.yaml file` |
| `hostAliases` | Add deployment host aliases | `Check values.yaml` |
| `joomlaSkipInstall` | Skip joomla bootstrap (`no` / `yes`) | `no` |
| `joomlaUsername` | User of the application | `user` |
| `joomlaPassword` | Application password | _random 10 character alphanumeric string_ |

View File

@@ -60,10 +60,11 @@ spec:
{{- if .Values.initContainers }}
initContainers: {{- include "common.tplvalues.render" (dict "value" .Values.initContainers "context" $) | nindent 8 }}
{{- end }}
hostAliases:
- ip: "127.0.0.1"
hostnames:
- "status.localhost"
{{- if .Values.hostAliases }}
# yamllint disable rule:indentation
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.hostAliases "context" $) | nindent 8 }}
# yamllint enable rule:indentation
{{- end }}
containers:
- name: joomla
image: {{ template "joomla.image" . }}

View File

@@ -48,6 +48,15 @@ fullnameOverride:
##
replicaCount: 1
## Deployment pod host aliases
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
##
hostAliases:
# Necessary for apache-exporter to work
- ip: "127.0.0.1"
hostnames:
- "status.localhost"
## Skip Joomla! installation wizard. Useful for migrations and restoring from SQL dump
## ref: https://github.com/bitnami/bitnami-docker-joomla#configuration
##