Add tolerations and node selector to postgresql (#1850)

This commit is contained in:
Mike Splain
2017-09-04 14:31:51 -05:00
committed by Michael Goodness
parent ad63c70638
commit 10a3ab3be3
4 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: postgresql
version: 0.8.1
version: 0.8.2
description: Object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance.
keywords:
- postgresql
+2
View File
@@ -70,6 +70,8 @@ The following tables lists the configurable parameters of the PostgresSQL chart
| `service.type` | k8s service type exposing ports, e.g. `NodePort`| `ClusterIP` |
| `networkPolicy.enabled` | Enable NetworkPolicy | `false` |
| `networkPolicy.allowExternal` | Don't require client label for connections | `true` |
| `nodeSelector` | Node labels for pod assignment | {} |
| `tolerations` | Toleration labels for pod assignment | [] |
The above parameters map to the env variables defined in [postgres](http://github.com/docker-library/postgres). For more information please refer to the [postgres](http://github.com/docker-library/postgres) image documentation.
@@ -13,6 +13,14 @@ spec:
labels:
app: {{ template "postgresql.fullname" . }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
{{- end }}
containers:
- name: {{ template "postgresql.fullname" . }}
image: "{{ .Values.image }}:{{ .Values.imageTag }}"
+6
View File
@@ -89,3 +89,9 @@ networkPolicy:
## (with the correct destination port).
##
allowExternal: true
## Node labels and tolerations for pod assignment
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#taints-and-tolerations-beta-feature
nodeSelector: {}
tolerations: []