[bitnami/phpmyadmin] Add hostAliases (#5291)

This commit is contained in:
Javier J. Salmerón-García
2021-01-28 13:20:49 +01:00
committed by GitHub
parent a027b507d4
commit ba9cc6ed40
4 changed files with 16 additions and 5 deletions

View File

@@ -29,4 +29,4 @@ name: phpmyadmin
sources:
- https://github.com/bitnami/bitnami-docker-phpmyadmin
- https://www.phpmyadmin.net/
version: 8.1.0
version: 8.2.0

View File

@@ -94,6 +94,7 @@ The following tables lists the configurable parameters of the phpMyAdmin chart a
| `readinessProbe` | Readiness probe configuration for PhpMyAdmin | Check `values.yaml` file |
| `customLivenessProbe` | Override default liveness probe | `nil` |
| `customReadinessProbe` | Override default readiness probe | `nil` |
| `hostAliases` | Add deployment host aliases | `Check values.yaml` |
| `updateStrategy` | Strategy to use to update Pods | Check `values.yaml` file |
| `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` |

View File

@@ -30,10 +30,11 @@ spec:
{{- end }}
spec:
{{- include "phpmyadmin.imagePullSecrets" . | nindent 6 }}
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 }}
{{- if .Values.affinity }}
affinity: {{- include "common.tplvalues.render" ( dict "value" .Values.affinity "context" $) | nindent 8 }}
{{- else }}

View File

@@ -57,6 +57,15 @@ extraDeploy: []
command: []
args: []
## 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"
## An array to add extra env vars to configure phpMyAdmin
## For example:
# extraEnvVars: