Add hostIPC option for PostgreSQL HA StatefulSet (#9154)

This commit is contained in:
Hayden James
2022-02-22 02:40:55 -05:00
committed by GitHub
parent e4de89b8a5
commit a780b18b49
4 changed files with 6 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: 8.4.3
version: 8.4.4

View File

@@ -108,6 +108,7 @@ Additionally, if `persistence.resourcePolicy` is set to `keep`, you should manua
| `postgresql.containerPort` | PostgreSQL port | `5432` |
| `postgresql.hostAliases` | Deployment pod host aliases | `[]` |
| `postgresql.hostNetwork` | Specify if host network should be enabled for PostgreSQL pod | `false` |
| `postgresql.hostIPC` | Specify if host IPC should be enabled for PostgreSQL pod | `false` |
| `postgresql.podAnnotations` | Additional pod annotations | `{}` |
| `postgresql.priorityClassName` | Pod priority class | `""` |
| `postgresql.podAffinityPreset` | PostgreSQL pod affinity preset. Ignored if `postgresql.affinity` is set. Allowed values: `soft` or `hard` | `""` |

View File

@@ -73,6 +73,7 @@ spec:
topologySpreadConstraints: {{- include "common.tplvalues.render" (dict "value" .Values.topologySpreadConstraints "context" .) | nindent 8 }}
{{- end }}
hostNetwork: {{ .Values.postgresql.hostNetwork }}
hostIPC: {{ .Values.postgresql.hostIPC }}
initContainers:
{{- if .Values.postgresql.tls.enabled }}
- name: init-chmod-tls

View File

@@ -164,6 +164,9 @@ postgresql:
## @param postgresql.hostNetwork Specify if host network should be enabled for PostgreSQL pod
##
hostNetwork: false
## @param postgresql.hostIPC Specify if host IPC should be enabled for PostgreSQL pod
##
hostIPC: false
## @param postgresql.podAnnotations Additional pod annotations
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
##