[bitnami/odoo] Add hostAliases (#5286)

This commit is contained in:
Javier J. Salmerón-García
2021-01-28 13:12:15 +01:00
committed by GitHub
parent 8d01caa64e
commit f58e6657ed
4 changed files with 16 additions and 5 deletions
+1 -1
View File
@@ -31,4 +31,4 @@ name: orangehrm
sources:
- https://github.com/bitnami/bitnami-docker-orangehrm
- https://www.orangehrm.com
version: 10.0.2
version: 10.1.0
+1
View File
@@ -101,6 +101,7 @@ The following table lists the configurable parameters of the OrangeHRM chart and
| `nodeAffinityPreset.type` | Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` |
| `nodeAffinityPreset.key` | Node label key to match Ignored if `affinity` is set. | `""` |
| `nodeAffinityPreset.values` | Node label values to match. Ignored if `affinity` is set. | `[]` |
| `hostAliases` | Add deployment host aliases | `Check values.yaml` |
| `nodeSelector` | Node labels for pod assignment | `{}` (The value is evaluated as a template) |
| `orangehrmUsername` | User of the application | `admin` |
| `orangehrmPassword` | Application password | _random 10 character long alphanumeric string_ |
+5 -4
View File
@@ -51,10 +51,11 @@ spec:
{{- if .Values.tolerations }}
tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.tolerations "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 }}
initContainers:
{{- if .Values.initContainers }}
{{- include "common.tplvalues.render" (dict "value" .Values.initContainers "context" $) | nindent 8 }}
+9
View File
@@ -43,6 +43,15 @@ nameOverride:
##
fullnameOverride:
## 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"
## Number of replicas (requires ReadWriteMany PVC support)
##
replicaCount: 1