Merge pull request #193 from gtaylor/postgres-imagepull

Parameterize postgres chart's imagePullPolicy.
This commit is contained in:
Adnan Abdulhussein
2016-11-04 11:26:21 -07:00
committed by GitHub
4 changed files with 13 additions and 6 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
name: postgresql
version: 0.1.0
version: 0.1.1
description: Chart for PostgreSQL
keywords:
- postgresql
@@ -12,4 +12,4 @@ sources:
- https://github.com/docker-library/postgres
maintainers:
- name: swordbeta
engine: gotpl
engine: gotpl
+2 -1
View File
@@ -46,6 +46,7 @@ The following tables lists the configurable parameters of the PostgresSQL chart
| Parameter | Description | Default |
| ----------------------- | ---------------------------------- | ---------------------------------------------------------- |
| `imageTag` | `postgres` image tag | `9.5.4` |
| `imagePullPolicy` | Image pull policy | `Always` if `imageTag` is `latest`, else `IfNotPresent` |
| `postgresUser` | Username of new user to create. | `potgres` |
| `postgresPassword` | Password for the new user. | random 10 characters |
| `postgresDatabase` | Name for new database to create. | `postgres` |
@@ -78,4 +79,4 @@ $ helm install --name my-release -f values.yaml stable/postgresql
The [postgres](https://github.com/docker-library/postgres) image stores the PostgreSQL data and configurations at the `/var/lib/postgresql/data/pgdata` path of the container.
The chart mounts a [Persistent Volume](kubernetes.io/docs/user-guide/persistent-volumes/) volume at this location. The volume is created using dynamic volume provisioning.
The chart mounts a [Persistent Volume](kubernetes.io/docs/user-guide/persistent-volumes/) volume at this location. The volume is created using dynamic volume provisioning.
+2 -2
View File
@@ -30,7 +30,7 @@ spec:
containers:
- name: {{ template "fullname" . }}
image: "postgres:{{ .Values.imageTag }}"
imagePullPolicy: Always
imagePullPolicy: {{ default "" .Values.imagePullPolicy | quote }}
resources:
requests:
cpu: "{{.Values.cpu}}"
@@ -78,4 +78,4 @@ spec:
claimName: {{ template "fullname" . }}
{{- else }}
emptyDir: {}
{{- end -}}
{{- end -}}
+7 -1
View File
@@ -5,6 +5,12 @@ imageTag: "9.5.4"
cpu: 100m
memory: 256Mi
## Specify a imagePullPolicy
## 'Always' if imageTag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
##
# imagePullPolicy:
## Create a database user
## Default: postgres
# postgresUser:
@@ -20,4 +26,4 @@ persistence:
enabled: true
storageClass: generic
accessMode: ReadWriteOnce
size: 8Gi
size: 8Gi