1 ## postgres image repository
3 ## postgres image version
4 ## ref: https://hub.docker.com/r/library/postgres/tags/
8 ## Specify a imagePullPolicy
9 ## 'Always' if imageTag is 'latest', else set to 'IfNotPresent'
10 ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
14 ## Specify imagePullSecrets
15 ## ref: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
17 # imagePullSecrets: myregistrykey
19 ## Create a database user
21 #postgresUser: "dmaap"
22 ## Default: random 10 character string
23 #postgresPassword: "onapdemodb"
26 ## Default: the postgres user
27 #postgresDatabase: "dmaap"
29 ## Specify initdb arguments, e.g. --data-checksums
30 ## ref: https://github.com/docker-library/docs/blob/master/postgres/content.md#postgres_initdb_args
31 ## ref: https://www.postgresql.org/docs/current/static/app-initdb.html
34 ## Use an alternate scheduler, e.g. "stork".
35 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
39 ## Specify runtime config parameters as a dict, using camelCase, e.g.
40 ## {"sharedBuffers": "500MB"}
41 ## ref: https://www.postgresql.org/docs/current/static/runtime-config.html
44 ## Persist data to a persitent volume
48 ## A manually managed Persistent Volume and Claim
49 ## Requires persistence.enabled: true
50 ## If defined, PVC must be created manually before volume will be bound
53 ## database data Persistent Volume Storage Class
54 ## If defined, storageClassName: <storageClass>
55 ## If set to "-", storageClassName: "", which disables dynamic provisioning
56 ## If undefined (the default) or set to null, no storageClassName spec is
57 ## set, choosing the default provisioner. (gp2 on AWS, standard on
58 ## GKE, AWS & OpenStack)
61 accessMode: ReadWriteOnce
63 subPath: "postgresql-db"
64 mountPath: /var/lib/postgresql/data/pgdata
70 image: wrouesnel/postgres_exporter
72 imagePullPolicy: IfNotPresent
77 ## Define additional custom metrics
78 ## ref: https://github.com/wrouesnel/postgres_exporter#adding-new-metrics-via-a-config-file
81 # query: "SELECT d.datname AS name, CASE WHEN pg_catalog.has_database_privilege(d.datname, 'CONNECT') THEN pg_catalog.pg_database_size(d.datname) ELSE 0 END AS size FROM pg_catalog.pg_database d where datname not in ('template0', 'template1', 'postgres')"
85 # description: "Name of the database"
88 # description: "Size of the database in bytes"
90 ## Configure resource requests and limits
91 ## ref: http://kubernetes.io/docs/user-guide/compute-resources/
102 ## Manually set NodePort value
103 ## Requires service.type: NodePort
107 ## Enable creation of NetworkPolicy resources.
111 ## The Policy model to apply. When set to false, only pods with the correct
112 ## client label will have network access to the port PostgreSQL is listening
113 ## on. When true, PostgreSQL will accept connections from any source
114 ## (with the correct destination port).
118 ## Node labels and tolerations for pod assignment
119 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
120 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#taints-and-tolerations-beta-feature