diff --git a/stable/postgresql/Chart.yaml b/stable/postgresql/Chart.yaml index 503e90f933..fa571d8bcd 100644 --- a/stable/postgresql/Chart.yaml +++ b/stable/postgresql/Chart.yaml @@ -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 \ No newline at end of file +engine: gotpl diff --git a/stable/postgresql/README.md b/stable/postgresql/README.md index efc192745c..ba08531763 100644 --- a/stable/postgresql/README.md +++ b/stable/postgresql/README.md @@ -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. \ No newline at end of file +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. diff --git a/stable/postgresql/templates/deployment.yaml b/stable/postgresql/templates/deployment.yaml index 2b2195c7ee..dc571ee732 100644 --- a/stable/postgresql/templates/deployment.yaml +++ b/stable/postgresql/templates/deployment.yaml @@ -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 -}} \ No newline at end of file + {{- end -}} diff --git a/stable/postgresql/values.yaml b/stable/postgresql/values.yaml index f56b50860f..311e7095e4 100644 --- a/stable/postgresql/values.yaml +++ b/stable/postgresql/values.yaml @@ -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 \ No newline at end of file + size: 8Gi