mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Parameterize postgres chart's imagePullPolicy.
Also adjust the default to be IfNotPresent (Kubernetes default) instead of Always.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user