[bitnami/postgresql-ha] Add hostAliases (#5301)

This commit is contained in:
Javier J. Salmerón-García
2021-01-29 15:07:47 +01:00
committed by GitHub
parent 59ea7074dd
commit b2c322aab6
5 changed files with 22 additions and 1 deletions

View File

@@ -27,4 +27,4 @@ name: postgresql-ha
sources:
- https://github.com/bitnami/bitnami-docker-postgresql
- https://www.postgresql.org/
version: 6.4.1
version: 6.5.0

View File

@@ -75,6 +75,7 @@ The following table lists the configurable parameters of the PostgreSQL HA chart
| `postgresqlImage.pullPolicy` | PostgreSQL with Repmgr image pull policy | `IfNotPresent` |
| `postgresqlImage.pullSecrets` | Specify docker-registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) |
| `postgresqlImage.debug` | Specify if debug logs should be enabled | `false` |
| `postgresql.hostAliases` | Add deployment host aliases | `[]` |
| `postgresql.labels` | Map of labels to add to the statefulset. Evaluated as a template | `{}` |
| `postgresql.podLabels` | Map of labels to add to the pods. Evaluated as a template | `{}` |
| `postgresql.replicaCount` | The number of replicas to deploy | `2` |
@@ -164,6 +165,7 @@ The following table lists the configurable parameters of the PostgreSQL HA chart
| `pgpool.customUsers.passwords` | Comma or semicolon separated list of the associated passwords for the users to be added to pgpool_passwd | `nil` |
| `pgpool.customUsersSecret` | Name of a secret containing the usernames and passwords of accounts that will be added to pgpool_passwd | `nil` |
| `pgpool.srCheckDatabase` | Name of the database to perform streaming replication checks | `postgres` |
| `pgpool.hostAliases` | Add deployment host aliases | `[]` |
| `pgpool.labels` | Map of labels to add to the deployment. Evaluated as a template | `{}` |
| `pgpool.podLabels` | Map of labels to add to the pods. Evaluated as a template | `{}` |
| `pgpool.replicaCount` | The number of replicas to deploy | `1` |

View File

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

View File

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

View File

@@ -146,6 +146,11 @@ postgresql:
##
updateStrategyType: RollingUpdate
## Deployment pod host aliases
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
##
hostAliases: []
## Additional pod annotations
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
##
@@ -175,6 +180,7 @@ postgresql:
nodeAffinityPreset:
## Node affinity type
## Allowed values: soft, hard
##
type: ""
## Node label key to match
## E.g.
@@ -517,6 +523,11 @@ pgpool:
## users above
# passwords: 'pass01;pass02'
## Deployment pod host aliases
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
##
hostAliases: []
## Alternatively, you can provide the name of a secret containing this information.
## The secret must contain the keys "usernames" and "passwords" respectively.
##
@@ -622,6 +633,7 @@ pgpool:
nodeAffinityPreset:
## Node affinity type
## Allowed values: soft, hard
##
type: ""
## Node label key to match
## E.g.
@@ -1003,6 +1015,7 @@ persistence:
## selector:
## matchLabels:
## app: my-app
##
selector: {}
## PgPool service parameters