values.yaml 61 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379
  1. # helm upgrade --install postgres oci://registry-1.docker.io/bitnamicharts/postgresql -n postgres -f values.yaml --version 11.6.7
  2. # Dump a DB from a pod to disk
  3. # kubectl -n postgres exec -it postgres-postgresql-0 -- bash -c 'PGPASSWORD=<password> pg_dump -U <user> <db name>' > /path/to/db.pgdump
  4. ## @section Global parameters
  5. ## Please, note that this will override the parameters, including dependencies, configured to use the global value
  6. ##
  7. global:
  8. ## @param global.imageRegistry Global Docker image registry
  9. ##
  10. imageRegistry: ""
  11. ## @param global.imagePullSecrets Global Docker registry secret names as an array
  12. ## e.g.
  13. ## imagePullSecrets:
  14. ## - myRegistryKeySecretName
  15. ##
  16. imagePullSecrets: []
  17. ## @param global.storageClass Global StorageClass for Persistent Volume(s)
  18. ##
  19. storageClass: "ceph-block"
  20. postgresql:
  21. ## @param global.postgresql.auth.postgresPassword Password for the "postgres" admin user (overrides `auth.postgresPassword`)
  22. ## @param global.postgresql.auth.username Name for a custom user to create (overrides `auth.username`)
  23. ## @param global.postgresql.auth.password Password for the custom user to create (overrides `auth.password`)
  24. ## @param global.postgresql.auth.database Name for a custom database to create (overrides `auth.database`)
  25. ## @param global.postgresql.auth.existingSecret Name of existing secret to use for PostgreSQL credentials (overrides `auth.existingSecret`).
  26. ## @param global.postgresql.auth.secretKeys.adminPasswordKey Name of key in existing secret to use for PostgreSQL credentials (overrides `auth.secretKeys.adminPasswordKey`). Only used when `global.postgresql.auth.existingSecret` is set.
  27. ## @param global.postgresql.auth.secretKeys.userPasswordKey Name of key in existing secret to use for PostgreSQL credentials (overrides `auth.secretKeys.userPasswordKey`). Only used when `global.postgresql.auth.existingSecret` is set.
  28. ## @param global.postgresql.auth.secretKeys.replicationPasswordKey Name of key in existing secret to use for PostgreSQL credentials (overrides `auth.secretKeys.replicationPasswordKey`). Only used when `global.postgresql.auth.existingSecret` is set.
  29. ##
  30. auth:
  31. postgresPassword: ""
  32. username: ""
  33. password: ""
  34. database: ""
  35. existingSecret: ""
  36. secretKeys:
  37. adminPasswordKey: ""
  38. userPasswordKey: ""
  39. replicationPasswordKey: ""
  40. ## @param global.postgresql.service.ports.postgresql PostgreSQL service port (overrides `service.ports.postgresql`)
  41. ##
  42. service:
  43. ports:
  44. postgresql: ""
  45. ## @section Common parameters
  46. ##
  47. ## @param kubeVersion Override Kubernetes version
  48. ##
  49. kubeVersion: ""
  50. ## @param nameOverride String to partially override common.names.fullname template (will maintain the release name)
  51. ##
  52. nameOverride: ""
  53. ## @param fullnameOverride String to fully override common.names.fullname template
  54. ##
  55. fullnameOverride: ""
  56. ## @param clusterDomain Kubernetes Cluster Domain
  57. ##
  58. clusterDomain: cluster.local
  59. ## @param extraDeploy Array of extra objects to deploy with the release (evaluated as a template)
  60. ##
  61. extraDeploy: []
  62. ## @param commonLabels Add labels to all the deployed resources
  63. ##
  64. commonLabels: {}
  65. ## @param commonAnnotations Add annotations to all the deployed resources
  66. ##
  67. commonAnnotations: {}
  68. ## Enable diagnostic mode in the statefulset
  69. ##
  70. diagnosticMode:
  71. ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
  72. ##
  73. enabled: false
  74. ## @param diagnosticMode.command Command to override all containers in the statefulset
  75. ##
  76. command:
  77. - sleep
  78. ## @param diagnosticMode.args Args to override all containers in the statefulset
  79. ##
  80. args:
  81. - infinity
  82. ## @section PostgreSQL common parameters
  83. ##
  84. ## Bitnami PostgreSQL image version
  85. ## ref: https://hub.docker.com/r/bitnami/postgresql/tags/
  86. ## @param image.registry PostgreSQL image registry
  87. ## @param image.repository PostgreSQL image repository
  88. ## @param image.tag PostgreSQL image tag (immutable tags are recommended)
  89. ## @param image.pullPolicy PostgreSQL image pull policy
  90. ## @param image.pullSecrets Specify image pull secrets
  91. ## @param image.debug Specify if debug values should be set
  92. ##
  93. image:
  94. registry: docker.io
  95. repository: bitnami/postgresql
  96. tag: 14.4.0-debian-11-r0
  97. ## Specify a imagePullPolicy
  98. ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
  99. ## ref: https://kubernetes.io/docs/user-guide/images/#pre-pulling-images
  100. ##
  101. pullPolicy: IfNotPresent
  102. ## Optionally specify an array of imagePullSecrets.
  103. ## Secrets must be manually created in the namespace.
  104. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
  105. ## Example:
  106. ## pullSecrets:
  107. ## - myRegistryKeySecretName
  108. ##
  109. pullSecrets: []
  110. ## Set to true if you would like to see extra information on logs
  111. ##
  112. debug: false
  113. ## Authentication parameters
  114. ## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#setting-the-root-password-on-first-run
  115. ## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#creating-a-database-on-first-run
  116. ## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#creating-a-database-user-on-first-run
  117. ##
  118. auth:
  119. ## @param auth.enablePostgresUser Assign a password to the "postgres" admin user. Otherwise, remote access will be blocked for this user
  120. ##
  121. enablePostgresUser: true
  122. ## @param auth.postgresPassword Password for the "postgres" admin user. Ignored if `auth.existingSecret` with key `postgres-password` is provided
  123. ##
  124. postgresPassword: ""
  125. ## @param auth.username Name for a custom user to create
  126. ##
  127. username: ""
  128. ## @param auth.password Password for the custom user to create. Ignored if `auth.existingSecret` with key `password` is provided
  129. ##
  130. password: ""
  131. ## @param auth.database Name for a custom database to create
  132. ##
  133. database: ""
  134. ## @param auth.replicationUsername Name of the replication user
  135. ##
  136. replicationUsername: repl_user
  137. ## @param auth.replicationPassword Password for the replication user. Ignored if `auth.existingSecret` with key `replication-password` is provided
  138. ##
  139. replicationPassword: ""
  140. ## @param auth.existingSecret Name of existing secret to use for PostgreSQL credentials. `auth.postgresPassword`, `auth.password`, and `auth.replicationPassword` will be ignored and picked up from this secret. The secret might also contains the key `ldap-password` if LDAP is enabled. `ldap.bind_password` will be ignored and picked from this secret in this case.
  141. ##
  142. existingSecret: ""
  143. ## @param auth.secretKeys.adminPasswordKey Name of key in existing secret to use for PostgreSQL credentials. Only used when `auth.existingSecret` is set.
  144. ## @param auth.secretKeys.userPasswordKey Name of key in existing secret to use for PostgreSQL credentials. Only used when `auth.existingSecret` is set.
  145. ## @param auth.secretKeys.replicationPasswordKey Name of key in existing secret to use for PostgreSQL credentials. Only used when `auth.existingSecret` is set.
  146. ##
  147. secretKeys:
  148. adminPasswordKey: postgres-password
  149. userPasswordKey: password
  150. replicationPasswordKey: replication-password
  151. ## @param auth.usePasswordFiles Mount credentials as a files instead of using an environment variable
  152. ##
  153. usePasswordFiles: false
  154. ## @param architecture PostgreSQL architecture (`standalone` or `replication`)
  155. ##
  156. architecture: standalone
  157. ## Replication configuration
  158. ## Ignored if `architecture` is `standalone`
  159. ##
  160. replication:
  161. ## @param replication.synchronousCommit Set synchronous commit mode. Allowed values: `on`, `remote_apply`, `remote_write`, `local` and `off`
  162. ## @param replication.numSynchronousReplicas Number of replicas that will have synchronous replication. Note: Cannot be greater than `readReplicas.replicaCount`.
  163. ## ref: https://www.postgresql.org/docs/current/runtime-config-wal.html#GUC-SYNCHRONOUS-COMMIT
  164. ##
  165. synchronousCommit: "off"
  166. numSynchronousReplicas: 0
  167. ## @param replication.applicationName Cluster application name. Useful for advanced replication settings
  168. ##
  169. applicationName: my_application
  170. ## @param containerPorts.postgresql PostgreSQL container port
  171. ##
  172. containerPorts:
  173. postgresql: 5432
  174. ## Audit settings
  175. ## https://github.com/bitnami/bitnami-docker-postgresql#auditing
  176. ## @param audit.logHostname Log client hostnames
  177. ## @param audit.logConnections Add client log-in operations to the log file
  178. ## @param audit.logDisconnections Add client log-outs operations to the log file
  179. ## @param audit.pgAuditLog Add operations to log using the pgAudit extension
  180. ## @param audit.pgAuditLogCatalog Log catalog using pgAudit
  181. ## @param audit.clientMinMessages Message log level to share with the user
  182. ## @param audit.logLinePrefix Template for log line prefix (default if not set)
  183. ## @param audit.logTimezone Timezone for the log timestamps
  184. ##
  185. audit:
  186. logHostname: false
  187. logConnections: false
  188. logDisconnections: false
  189. pgAuditLog: ""
  190. pgAuditLogCatalog: "off"
  191. clientMinMessages: error
  192. logLinePrefix: ""
  193. logTimezone: ""
  194. ## LDAP configuration
  195. ## @param ldap.enabled Enable LDAP support
  196. ## DEPRECATED ldap.url It will removed in a future, please use 'ldap.uri' instead
  197. ## @param ldap.server IP address or name of the LDAP server.
  198. ## @param ldap.port Port number on the LDAP server to connect to
  199. ## @param ldap.prefix String to prepend to the user name when forming the DN to bind
  200. ## @param ldap.suffix String to append to the user name when forming the DN to bind
  201. ## DEPRECATED ldap.baseDN It will removed in a future, please use 'ldap.basedn' instead
  202. ## DEPRECATED ldap.bindDN It will removed in a future, please use 'ldap.binddn' instead
  203. ## DEPRECATED ldap.bind_password It will removed in a future, please use 'ldap.bindpw' instead
  204. ## @param ldap.basedn Root DN to begin the search for the user in
  205. ## @param ldap.binddn DN of user to bind to LDAP
  206. ## @param ldap.bindpw Password for the user to bind to LDAP
  207. ## DEPRECATED ldap.search_attr It will removed in a future, please use 'ldap.searchAttribute' instead
  208. ## DEPRECATED ldap.search_filter It will removed in a future, please use 'ldap.searchFilter' instead
  209. ## @param ldap.searchAttribute Attribute to match against the user name in the search
  210. ## @param ldap.searchFilter The search filter to use when doing search+bind authentication
  211. ## @param ldap.scheme Set to `ldaps` to use LDAPS
  212. ## DEPRECATED ldap.tls as string is deprecated,please use 'ldap.tls.enabled' instead
  213. ## @param ldap.tls.enabled Se to true to enable TLS encryption
  214. ##
  215. ldap:
  216. enabled: false
  217. server: ""
  218. port: ""
  219. prefix: ""
  220. suffix: ""
  221. basedn: ""
  222. binddn: ""
  223. bindpw: ""
  224. searchAttribute: ""
  225. searchFilter: ""
  226. scheme: ""
  227. tls:
  228. enabled: false
  229. ## @param ldap.uri LDAP URL beginning in the form `ldap[s]://host[:port]/basedn`. If provided, all the other LDAP parameters will be ignored.
  230. ## Ref: https://www.postgresql.org/docs/current/auth-ldap.html
  231. uri: ""
  232. ## @param postgresqlDataDir PostgreSQL data dir folder
  233. ##
  234. postgresqlDataDir: /bitnami/postgresql/data
  235. ## @param postgresqlSharedPreloadLibraries Shared preload libraries (comma-separated list)
  236. ##
  237. postgresqlSharedPreloadLibraries: "pgaudit"
  238. ## Start PostgreSQL pod(s) without limitations on shm memory.
  239. ## By default docker and containerd (and possibly other container runtimes) limit `/dev/shm` to `64M`
  240. ## ref: https://github.com/docker-library/postgres/issues/416
  241. ## ref: https://github.com/containerd/containerd/issues/3654
  242. ##
  243. shmVolume:
  244. ## @param shmVolume.enabled Enable emptyDir volume for /dev/shm for PostgreSQL pod(s)
  245. ##
  246. enabled: true
  247. ## @param shmVolume.sizeLimit Set this to enable a size limit on the shm tmpfs
  248. ## Note: the size of the tmpfs counts against container's memory limit
  249. ## e.g:
  250. ## sizeLimit: 1Gi
  251. ##
  252. sizeLimit: ""
  253. ## TLS configuration
  254. ##
  255. tls:
  256. ## @param tls.enabled Enable TLS traffic support
  257. ##
  258. enabled: false
  259. ## @param tls.autoGenerated Generate automatically self-signed TLS certificates
  260. ##
  261. autoGenerated: false
  262. ## @param tls.preferServerCiphers Whether to use the server's TLS cipher preferences rather than the client's
  263. ##
  264. preferServerCiphers: true
  265. ## @param tls.certificatesSecret Name of an existing secret that contains the certificates
  266. ##
  267. certificatesSecret: ""
  268. ## @param tls.certFilename Certificate filename
  269. ##
  270. certFilename: ""
  271. ## @param tls.certKeyFilename Certificate key filename
  272. ##
  273. certKeyFilename: ""
  274. ## @param tls.certCAFilename CA Certificate filename
  275. ## If provided, PostgreSQL will authenticate TLS/SSL clients by requesting them a certificate
  276. ## ref: https://www.postgresql.org/docs/9.6/auth-methods.html
  277. ##
  278. certCAFilename: ""
  279. ## @param tls.crlFilename File containing a Certificate Revocation List
  280. ##
  281. crlFilename: ""
  282. ## @section PostgreSQL Primary parameters
  283. ##
  284. primary:
  285. ## @param primary.configuration PostgreSQL Primary main configuration to be injected as ConfigMap
  286. ## ref: https://www.postgresql.org/docs/current/static/runtime-config.html
  287. ##
  288. configuration: ""
  289. ## @param primary.pgHbaConfiguration PostgreSQL Primary client authentication configuration
  290. ## ref: https://www.postgresql.org/docs/current/static/auth-pg-hba-conf.html
  291. ## e.g:#
  292. ## pgHbaConfiguration: |-
  293. ## local all all trust
  294. ## host all all localhost trust
  295. ## host mydatabase mysuser 192.168.0.0/24 md5
  296. ##
  297. pgHbaConfiguration: ""
  298. ## @param primary.existingConfigmap Name of an existing ConfigMap with PostgreSQL Primary configuration
  299. ## NOTE: `primary.configuration` and `primary.pgHbaConfiguration` will be ignored
  300. ##
  301. existingConfigmap: ""
  302. ## @param primary.extendedConfiguration Extended PostgreSQL Primary configuration (appended to main or default configuration)
  303. ## ref: https://github.com/bitnami/bitnami-docker-postgresql#allow-settings-to-be-loaded-from-files-other-than-the-default-postgresqlconf
  304. ##
  305. extendedConfiguration: ""
  306. ## @param primary.existingExtendedConfigmap Name of an existing ConfigMap with PostgreSQL Primary extended configuration
  307. ## NOTE: `primary.extendedConfiguration` will be ignored
  308. ##
  309. existingExtendedConfigmap: ""
  310. ## Initdb configuration
  311. ## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#specifying-initdb-arguments
  312. ##
  313. initdb:
  314. ## @param primary.initdb.args PostgreSQL initdb extra arguments
  315. ##
  316. args: ""
  317. ## @param primary.initdb.postgresqlWalDir Specify a custom location for the PostgreSQL transaction log
  318. ##
  319. postgresqlWalDir: ""
  320. ## @param primary.initdb.scripts Dictionary of initdb scripts
  321. ## Specify dictionary of scripts to be run at first boot
  322. ## e.g:
  323. ## scripts:
  324. ## my_init_script.sh: |
  325. ## #!/bin/sh
  326. ## echo "Do something."
  327. ##
  328. scripts: {}
  329. ## @param primary.initdb.scriptsConfigMap ConfigMap with scripts to be run at first boot
  330. ## NOTE: This will override `primary.initdb.scripts`
  331. ##
  332. scriptsConfigMap: ""
  333. ## @param primary.initdb.scriptsSecret Secret with scripts to be run at first boot (in case it contains sensitive information)
  334. ## NOTE: This can work along `primary.initdb.scripts` or `primary.initdb.scriptsConfigMap`
  335. ##
  336. scriptsSecret: ""
  337. ## @param primary.initdb.user Specify the PostgreSQL username to execute the initdb scripts
  338. ##
  339. user: ""
  340. ## @param primary.initdb.password Specify the PostgreSQL password to execute the initdb scripts
  341. ##
  342. password: ""
  343. ## Configure current cluster's primary server to be the standby server in other cluster.
  344. ## This will allow cross cluster replication and provide cross cluster high availability.
  345. ## You will need to configure pgHbaConfiguration if you want to enable this feature with local cluster replication enabled.
  346. ## @param primary.standby.enabled Whether to enable current cluster's primary as standby server of another cluster or not
  347. ## @param primary.standby.primaryHost The Host of replication primary in the other cluster
  348. ## @param primary.standby.primaryPort The Port of replication primary in the other cluster
  349. ##
  350. standby:
  351. enabled: false
  352. primaryHost: ""
  353. primaryPort: ""
  354. ## @param primary.extraEnvVars Array with extra environment variables to add to PostgreSQL Primary nodes
  355. ## e.g:
  356. ## extraEnvVars:
  357. ## - name: FOO
  358. ## value: "bar"
  359. ##
  360. extraEnvVars: []
  361. ## @param primary.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for PostgreSQL Primary nodes
  362. ##
  363. extraEnvVarsCM: ""
  364. ## @param primary.extraEnvVarsSecret Name of existing Secret containing extra env vars for PostgreSQL Primary nodes
  365. ##
  366. extraEnvVarsSecret: ""
  367. ## @param primary.command Override default container command (useful when using custom images)
  368. ##
  369. command: []
  370. ## @param primary.args Override default container args (useful when using custom images)
  371. ##
  372. args: []
  373. ## Configure extra options for PostgreSQL Primary containers' liveness, readiness and startup probes
  374. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
  375. ## @param primary.livenessProbe.enabled Enable livenessProbe on PostgreSQL Primary containers
  376. ## @param primary.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
  377. ## @param primary.livenessProbe.periodSeconds Period seconds for livenessProbe
  378. ## @param primary.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
  379. ## @param primary.livenessProbe.failureThreshold Failure threshold for livenessProbe
  380. ## @param primary.livenessProbe.successThreshold Success threshold for livenessProbe
  381. ##
  382. livenessProbe:
  383. enabled: true
  384. initialDelaySeconds: 30
  385. periodSeconds: 10
  386. timeoutSeconds: 5
  387. failureThreshold: 6
  388. successThreshold: 1
  389. ## @param primary.readinessProbe.enabled Enable readinessProbe on PostgreSQL Primary containers
  390. ## @param primary.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
  391. ## @param primary.readinessProbe.periodSeconds Period seconds for readinessProbe
  392. ## @param primary.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
  393. ## @param primary.readinessProbe.failureThreshold Failure threshold for readinessProbe
  394. ## @param primary.readinessProbe.successThreshold Success threshold for readinessProbe
  395. ##
  396. readinessProbe:
  397. enabled: true
  398. initialDelaySeconds: 5
  399. periodSeconds: 10
  400. timeoutSeconds: 5
  401. failureThreshold: 6
  402. successThreshold: 1
  403. ## @param primary.startupProbe.enabled Enable startupProbe on PostgreSQL Primary containers
  404. ## @param primary.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
  405. ## @param primary.startupProbe.periodSeconds Period seconds for startupProbe
  406. ## @param primary.startupProbe.timeoutSeconds Timeout seconds for startupProbe
  407. ## @param primary.startupProbe.failureThreshold Failure threshold for startupProbe
  408. ## @param primary.startupProbe.successThreshold Success threshold for startupProbe
  409. ##
  410. startupProbe:
  411. enabled: false
  412. initialDelaySeconds: 30
  413. periodSeconds: 10
  414. timeoutSeconds: 1
  415. failureThreshold: 15
  416. successThreshold: 1
  417. ## @param primary.customLivenessProbe Custom livenessProbe that overrides the default one
  418. ##
  419. customLivenessProbe: {}
  420. ## @param primary.customReadinessProbe Custom readinessProbe that overrides the default one
  421. ##
  422. customReadinessProbe: {}
  423. ## @param primary.customStartupProbe Custom startupProbe that overrides the default one
  424. ##
  425. customStartupProbe: {}
  426. ## @param primary.lifecycleHooks for the PostgreSQL Primary container to automate configuration before or after startup
  427. ##
  428. lifecycleHooks: {}
  429. ## PostgreSQL Primary resource requests and limits
  430. ## ref: https://kubernetes.io/docs/user-guide/compute-resources/
  431. ## @param primary.resources.limits The resources limits for the PostgreSQL Primary containers
  432. ## @param primary.resources.requests.memory The requested memory for the PostgreSQL Primary containers
  433. ## @param primary.resources.requests.cpu The requested cpu for the PostgreSQL Primary containers
  434. ##
  435. resources:
  436. limits: {}
  437. requests:
  438. memory: 256Mi
  439. cpu: 250m
  440. ## Pod Security Context
  441. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
  442. ## @param primary.podSecurityContext.enabled Enable security context
  443. ## @param primary.podSecurityContext.fsGroup Group ID for the pod
  444. ##
  445. podSecurityContext:
  446. enabled: true
  447. fsGroup: 1001
  448. ## Container Security Context
  449. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
  450. ## @param primary.containerSecurityContext.enabled Enable container security context
  451. ## @param primary.containerSecurityContext.runAsUser User ID for the container
  452. ##
  453. containerSecurityContext:
  454. enabled: true
  455. runAsUser: 1001
  456. ## @param primary.hostAliases PostgreSQL primary pods host aliases
  457. ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
  458. ##
  459. hostAliases: []
  460. ## @param primary.hostNetwork Specify if host network should be enabled for PostgreSQL pod (postgresql primary)
  461. ##
  462. hostNetwork: false
  463. ## @param primary.hostIPC Specify if host IPC should be enabled for PostgreSQL pod (postgresql primary)
  464. ##
  465. hostIPC: false
  466. ## @param primary.labels Map of labels to add to the statefulset (postgresql primary)
  467. ##
  468. labels: {}
  469. ## @param primary.annotations Annotations for PostgreSQL primary pods
  470. ##
  471. annotations: {}
  472. ## @param primary.podLabels Map of labels to add to the pods (postgresql primary)
  473. ##
  474. podLabels: {}
  475. ## @param primary.podAnnotations Map of annotations to add to the pods (postgresql primary)
  476. ##
  477. podAnnotations: {}
  478. ## @param primary.podAffinityPreset PostgreSQL primary pod affinity preset. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
  479. ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
  480. ##
  481. podAffinityPreset: ""
  482. ## @param primary.podAntiAffinityPreset PostgreSQL primary pod anti-affinity preset. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
  483. ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
  484. ##
  485. podAntiAffinityPreset: soft
  486. ## PostgreSQL Primary node affinity preset
  487. ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
  488. ##
  489. nodeAffinityPreset:
  490. ## @param primary.nodeAffinityPreset.type PostgreSQL primary node affinity preset type. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
  491. ##
  492. type: ""
  493. ## @param primary.nodeAffinityPreset.key PostgreSQL primary node label key to match Ignored if `primary.affinity` is set.
  494. ## E.g.
  495. ## key: "kubernetes.io/e2e-az-name"
  496. ##
  497. key: ""
  498. ## @param primary.nodeAffinityPreset.values PostgreSQL primary node label values to match. Ignored if `primary.affinity` is set.
  499. ## E.g.
  500. ## values:
  501. ## - e2e-az1
  502. ## - e2e-az2
  503. ##
  504. values: []
  505. ## @param primary.affinity Affinity for PostgreSQL primary pods assignment
  506. ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
  507. ## Note: primary.podAffinityPreset, primary.podAntiAffinityPreset, and primary.nodeAffinityPreset will be ignored when it's set
  508. ##
  509. affinity: {}
  510. ## @param primary.nodeSelector Node labels for PostgreSQL primary pods assignment
  511. ## ref: https://kubernetes.io/docs/user-guide/node-selection/
  512. ##
  513. nodeSelector: {}
  514. ## @param primary.tolerations Tolerations for PostgreSQL primary pods assignment
  515. ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
  516. ##
  517. tolerations: []
  518. ## @param primary.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
  519. ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
  520. ##
  521. topologySpreadConstraints: []
  522. ## @param primary.priorityClassName Priority Class to use for each pod (postgresql primary)
  523. ##
  524. priorityClassName: ""
  525. ## @param primary.schedulerName Use an alternate scheduler, e.g. "stork".
  526. ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
  527. ##
  528. schedulerName: ""
  529. ## @param primary.terminationGracePeriodSeconds Seconds PostgreSQL primary pod needs to terminate gracefully
  530. ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
  531. ##
  532. terminationGracePeriodSeconds: ""
  533. ## @param primary.updateStrategy.type PostgreSQL Primary statefulset strategy type
  534. ## @param primary.updateStrategy.rollingUpdate PostgreSQL Primary statefulset rolling update configuration parameters
  535. ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
  536. ##
  537. updateStrategy:
  538. type: RollingUpdate
  539. rollingUpdate: {}
  540. ## @param primary.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the PostgreSQL Primary container(s)
  541. ##
  542. extraVolumeMounts: []
  543. ## @param primary.extraVolumes Optionally specify extra list of additional volumes for the PostgreSQL Primary pod(s)
  544. ##
  545. extraVolumes: []
  546. ## @param primary.sidecars Add additional sidecar containers to the PostgreSQL Primary pod(s)
  547. ## For example:
  548. ## sidecars:
  549. ## - name: your-image-name
  550. ## image: your-image
  551. ## imagePullPolicy: Always
  552. ## ports:
  553. ## - name: portname
  554. ## containerPort: 1234
  555. ##
  556. sidecars: []
  557. ## @param primary.initContainers Add additional init containers to the PostgreSQL Primary pod(s)
  558. ## Example
  559. ##
  560. ## initContainers:
  561. ## - name: do-something
  562. ## image: busybox
  563. ## command: ['do', 'something']
  564. ##
  565. initContainers: []
  566. ## @param primary.extraPodSpec Optionally specify extra PodSpec for the PostgreSQL Primary pod(s)
  567. ##
  568. extraPodSpec: {}
  569. ## PostgreSQL Primary service configuration
  570. ##
  571. service:
  572. ## @param primary.service.type Kubernetes Service type
  573. ##
  574. type: ClusterIP
  575. ## @param primary.service.ports.postgresql PostgreSQL service port
  576. ##
  577. ports:
  578. postgresql: 5432
  579. ## Node ports to expose
  580. ## NOTE: choose port between <30000-32767>
  581. ## @param primary.service.nodePorts.postgresql Node port for PostgreSQL
  582. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
  583. ##
  584. nodePorts:
  585. postgresql: ""
  586. ## @param primary.service.clusterIP Static clusterIP or None for headless services
  587. ## e.g:
  588. ## clusterIP: None
  589. ##
  590. clusterIP: ""
  591. ## @param primary.service.annotations Annotations for PostgreSQL primary service
  592. ##
  593. annotations: {}
  594. ## @param primary.service.loadBalancerIP Load balancer IP if service type is `LoadBalancer`
  595. ## Set the LoadBalancer service type to internal only
  596. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
  597. ##
  598. loadBalancerIP: ""
  599. ## @param primary.service.externalTrafficPolicy Enable client source IP preservation
  600. ## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
  601. ##
  602. externalTrafficPolicy: Cluster
  603. ## @param primary.service.loadBalancerSourceRanges Addresses that are allowed when service is LoadBalancer
  604. ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
  605. ##
  606. ## loadBalancerSourceRanges:
  607. ## - 10.10.10.0/24
  608. ##
  609. loadBalancerSourceRanges: []
  610. ## @param primary.service.extraPorts Extra ports to expose in the PostgreSQL primary service
  611. ##
  612. extraPorts: []
  613. ## @param primary.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
  614. ## If "ClientIP", consecutive client requests will be directed to the same Pod
  615. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
  616. ##
  617. sessionAffinity: None
  618. ## @param primary.service.sessionAffinityConfig Additional settings for the sessionAffinity
  619. ## sessionAffinityConfig:
  620. ## clientIP:
  621. ## timeoutSeconds: 300
  622. ##
  623. sessionAffinityConfig: {}
  624. ## PostgreSQL Primary persistence configuration
  625. ##
  626. persistence:
  627. ## @param primary.persistence.enabled Enable PostgreSQL Primary data persistence using PVC
  628. ##
  629. enabled: true
  630. ## @param primary.persistence.existingClaim Name of an existing PVC to use
  631. ##
  632. existingClaim: ""
  633. ## @param primary.persistence.mountPath The path the volume will be mounted at
  634. ## Note: useful when using custom PostgreSQL images
  635. ##
  636. mountPath: /bitnami/postgresql
  637. ## @param primary.persistence.subPath The subdirectory of the volume to mount to
  638. ## Useful in dev environments and one PV for multiple services
  639. ##
  640. subPath: ""
  641. ## @param primary.persistence.storageClass PVC Storage Class for PostgreSQL Primary data volume
  642. ## If defined, storageClassName: <storageClass>
  643. ## If set to "-", storageClassName: "", which disables dynamic provisioning
  644. ## If undefined (the default) or set to null, no storageClassName spec is
  645. ## set, choosing the default provisioner. (gp2 on AWS, standard on
  646. ## GKE, AWS & OpenStack)
  647. ##
  648. storageClass: ""
  649. ## @param primary.persistence.accessModes PVC Access Mode for PostgreSQL volume
  650. ##
  651. accessModes:
  652. - ReadWriteOnce
  653. ## @param primary.persistence.size PVC Storage Request for PostgreSQL volume
  654. ##
  655. size: 200Gi
  656. ## @param primary.persistence.annotations Annotations for the PVC
  657. ##
  658. annotations: {}
  659. ## @param primary.persistence.selector Selector to match an existing Persistent Volume (this value is evaluated as a template)
  660. ## selector:
  661. ## matchLabels:
  662. ## app: my-app
  663. ##
  664. selector: {}
  665. ## @param primary.persistence.dataSource Custom PVC data source
  666. ##
  667. dataSource: {}
  668. ## @section PostgreSQL read only replica parameters
  669. ##
  670. readReplicas:
  671. ## @param readReplicas.replicaCount Number of PostgreSQL read only replicas
  672. ##
  673. replicaCount: 1
  674. ## @param readReplicas.extraEnvVars Array with extra environment variables to add to PostgreSQL read only nodes
  675. ## e.g:
  676. ## extraEnvVars:
  677. ## - name: FOO
  678. ## value: "bar"
  679. ##
  680. extraEnvVars: []
  681. ## @param readReplicas.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for PostgreSQL read only nodes
  682. ##
  683. extraEnvVarsCM: ""
  684. ## @param readReplicas.extraEnvVarsSecret Name of existing Secret containing extra env vars for PostgreSQL read only nodes
  685. ##
  686. extraEnvVarsSecret: ""
  687. ## @param readReplicas.command Override default container command (useful when using custom images)
  688. ##
  689. command: []
  690. ## @param readReplicas.args Override default container args (useful when using custom images)
  691. ##
  692. args: []
  693. ## Configure extra options for PostgreSQL read only containers' liveness, readiness and startup probes
  694. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
  695. ## @param readReplicas.livenessProbe.enabled Enable livenessProbe on PostgreSQL read only containers
  696. ## @param readReplicas.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
  697. ## @param readReplicas.livenessProbe.periodSeconds Period seconds for livenessProbe
  698. ## @param readReplicas.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
  699. ## @param readReplicas.livenessProbe.failureThreshold Failure threshold for livenessProbe
  700. ## @param readReplicas.livenessProbe.successThreshold Success threshold for livenessProbe
  701. ##
  702. livenessProbe:
  703. enabled: true
  704. initialDelaySeconds: 30
  705. periodSeconds: 10
  706. timeoutSeconds: 5
  707. failureThreshold: 6
  708. successThreshold: 1
  709. ## @param readReplicas.readinessProbe.enabled Enable readinessProbe on PostgreSQL read only containers
  710. ## @param readReplicas.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
  711. ## @param readReplicas.readinessProbe.periodSeconds Period seconds for readinessProbe
  712. ## @param readReplicas.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
  713. ## @param readReplicas.readinessProbe.failureThreshold Failure threshold for readinessProbe
  714. ## @param readReplicas.readinessProbe.successThreshold Success threshold for readinessProbe
  715. ##
  716. readinessProbe:
  717. enabled: true
  718. initialDelaySeconds: 5
  719. periodSeconds: 10
  720. timeoutSeconds: 5
  721. failureThreshold: 6
  722. successThreshold: 1
  723. ## @param readReplicas.startupProbe.enabled Enable startupProbe on PostgreSQL read only containers
  724. ## @param readReplicas.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
  725. ## @param readReplicas.startupProbe.periodSeconds Period seconds for startupProbe
  726. ## @param readReplicas.startupProbe.timeoutSeconds Timeout seconds for startupProbe
  727. ## @param readReplicas.startupProbe.failureThreshold Failure threshold for startupProbe
  728. ## @param readReplicas.startupProbe.successThreshold Success threshold for startupProbe
  729. ##
  730. startupProbe:
  731. enabled: false
  732. initialDelaySeconds: 30
  733. periodSeconds: 10
  734. timeoutSeconds: 1
  735. failureThreshold: 15
  736. successThreshold: 1
  737. ## @param readReplicas.customLivenessProbe Custom livenessProbe that overrides the default one
  738. ##
  739. customLivenessProbe: {}
  740. ## @param readReplicas.customReadinessProbe Custom readinessProbe that overrides the default one
  741. ##
  742. customReadinessProbe: {}
  743. ## @param readReplicas.customStartupProbe Custom startupProbe that overrides the default one
  744. ##
  745. customStartupProbe: {}
  746. ## @param readReplicas.lifecycleHooks for the PostgreSQL read only container to automate configuration before or after startup
  747. ##
  748. lifecycleHooks: {}
  749. ## PostgreSQL read only resource requests and limits
  750. ## ref: https://kubernetes.io/docs/user-guide/compute-resources/
  751. ## @param readReplicas.resources.limits The resources limits for the PostgreSQL read only containers
  752. ## @param readReplicas.resources.requests.memory The requested memory for the PostgreSQL read only containers
  753. ## @param readReplicas.resources.requests.cpu The requested cpu for the PostgreSQL read only containers
  754. ##
  755. resources:
  756. limits: {}
  757. requests:
  758. memory: 256Mi
  759. cpu: 250m
  760. ## Pod Security Context
  761. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
  762. ## @param readReplicas.podSecurityContext.enabled Enable security context
  763. ## @param readReplicas.podSecurityContext.fsGroup Group ID for the pod
  764. ##
  765. podSecurityContext:
  766. enabled: true
  767. fsGroup: 1001
  768. ## Container Security Context
  769. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
  770. ## @param readReplicas.containerSecurityContext.enabled Enable container security context
  771. ## @param readReplicas.containerSecurityContext.runAsUser User ID for the container
  772. ##
  773. containerSecurityContext:
  774. enabled: true
  775. runAsUser: 1001
  776. ## @param readReplicas.hostAliases PostgreSQL read only pods host aliases
  777. ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
  778. ##
  779. hostAliases: []
  780. ## @param readReplicas.hostNetwork Specify if host network should be enabled for PostgreSQL pod (PostgreSQL read only)
  781. ##
  782. hostNetwork: false
  783. ## @param readReplicas.hostIPC Specify if host IPC should be enabled for PostgreSQL pod (postgresql primary)
  784. ##
  785. hostIPC: false
  786. ## @param readReplicas.labels Map of labels to add to the statefulset (PostgreSQL read only)
  787. ##
  788. labels: {}
  789. ## @param readReplicas.annotations Annotations for PostgreSQL read only pods
  790. ##
  791. annotations: {}
  792. ## @param readReplicas.podLabels Map of labels to add to the pods (PostgreSQL read only)
  793. ##
  794. podLabels: {}
  795. ## @param readReplicas.podAnnotations Map of annotations to add to the pods (PostgreSQL read only)
  796. ##
  797. podAnnotations: {}
  798. ## @param readReplicas.podAffinityPreset PostgreSQL read only pod affinity preset. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
  799. ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
  800. ##
  801. podAffinityPreset: ""
  802. ## @param readReplicas.podAntiAffinityPreset PostgreSQL read only pod anti-affinity preset. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
  803. ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
  804. ##
  805. podAntiAffinityPreset: soft
  806. ## PostgreSQL read only node affinity preset
  807. ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
  808. ##
  809. nodeAffinityPreset:
  810. ## @param readReplicas.nodeAffinityPreset.type PostgreSQL read only node affinity preset type. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
  811. ##
  812. type: ""
  813. ## @param readReplicas.nodeAffinityPreset.key PostgreSQL read only node label key to match Ignored if `primary.affinity` is set.
  814. ## E.g.
  815. ## key: "kubernetes.io/e2e-az-name"
  816. ##
  817. key: ""
  818. ## @param readReplicas.nodeAffinityPreset.values PostgreSQL read only node label values to match. Ignored if `primary.affinity` is set.
  819. ## E.g.
  820. ## values:
  821. ## - e2e-az1
  822. ## - e2e-az2
  823. ##
  824. values: []
  825. ## @param readReplicas.affinity Affinity for PostgreSQL read only pods assignment
  826. ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
  827. ## Note: primary.podAffinityPreset, primary.podAntiAffinityPreset, and primary.nodeAffinityPreset will be ignored when it's set
  828. ##
  829. affinity: {}
  830. ## @param readReplicas.nodeSelector Node labels for PostgreSQL read only pods assignment
  831. ## ref: https://kubernetes.io/docs/user-guide/node-selection/
  832. ##
  833. nodeSelector: {}
  834. ## @param readReplicas.tolerations Tolerations for PostgreSQL read only pods assignment
  835. ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
  836. ##
  837. tolerations: []
  838. ## @param readReplicas.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
  839. ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
  840. ##
  841. topologySpreadConstraints: []
  842. ## @param readReplicas.priorityClassName Priority Class to use for each pod (PostgreSQL read only)
  843. ##
  844. priorityClassName: ""
  845. ## @param readReplicas.schedulerName Use an alternate scheduler, e.g. "stork".
  846. ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
  847. ##
  848. schedulerName: ""
  849. ## @param readReplicas.terminationGracePeriodSeconds Seconds PostgreSQL read only pod needs to terminate gracefully
  850. ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
  851. ##
  852. terminationGracePeriodSeconds: ""
  853. ## @param readReplicas.updateStrategy.type PostgreSQL read only statefulset strategy type
  854. ## @param readReplicas.updateStrategy.rollingUpdate PostgreSQL read only statefulset rolling update configuration parameters
  855. ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
  856. ##
  857. updateStrategy:
  858. type: RollingUpdate
  859. rollingUpdate: {}
  860. ## @param readReplicas.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the PostgreSQL read only container(s)
  861. ##
  862. extraVolumeMounts: []
  863. ## @param readReplicas.extraVolumes Optionally specify extra list of additional volumes for the PostgreSQL read only pod(s)
  864. ##
  865. extraVolumes: []
  866. ## @param readReplicas.sidecars Add additional sidecar containers to the PostgreSQL read only pod(s)
  867. ## For example:
  868. ## sidecars:
  869. ## - name: your-image-name
  870. ## image: your-image
  871. ## imagePullPolicy: Always
  872. ## ports:
  873. ## - name: portname
  874. ## containerPort: 1234
  875. ##
  876. sidecars: []
  877. ## @param readReplicas.initContainers Add additional init containers to the PostgreSQL read only pod(s)
  878. ## Example
  879. ##
  880. ## initContainers:
  881. ## - name: do-something
  882. ## image: busybox
  883. ## command: ['do', 'something']
  884. ##
  885. initContainers: []
  886. ## @param readReplicas.extraPodSpec Optionally specify extra PodSpec for the PostgreSQL read only pod(s)
  887. ##
  888. extraPodSpec: {}
  889. ## PostgreSQL read only service configuration
  890. ##
  891. service:
  892. ## @param readReplicas.service.type Kubernetes Service type
  893. ##
  894. type: ClusterIP
  895. ## @param readReplicas.service.ports.postgresql PostgreSQL service port
  896. ##
  897. ports:
  898. postgresql: 5432
  899. ## Node ports to expose
  900. ## NOTE: choose port between <30000-32767>
  901. ## @param readReplicas.service.nodePorts.postgresql Node port for PostgreSQL
  902. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
  903. ##
  904. nodePorts:
  905. postgresql: ""
  906. ## @param readReplicas.service.clusterIP Static clusterIP or None for headless services
  907. ## e.g:
  908. ## clusterIP: None
  909. ##
  910. clusterIP: ""
  911. ## @param readReplicas.service.annotations Annotations for PostgreSQL read only service
  912. ##
  913. annotations: {}
  914. ## @param readReplicas.service.loadBalancerIP Load balancer IP if service type is `LoadBalancer`
  915. ## Set the LoadBalancer service type to internal only
  916. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
  917. ##
  918. loadBalancerIP: ""
  919. ## @param readReplicas.service.externalTrafficPolicy Enable client source IP preservation
  920. ## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
  921. ##
  922. externalTrafficPolicy: Cluster
  923. ## @param readReplicas.service.loadBalancerSourceRanges Addresses that are allowed when service is LoadBalancer
  924. ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
  925. ##
  926. ## loadBalancerSourceRanges:
  927. ## - 10.10.10.0/24
  928. ##
  929. loadBalancerSourceRanges: []
  930. ## @param readReplicas.service.extraPorts Extra ports to expose in the PostgreSQL read only service
  931. ##
  932. extraPorts: []
  933. ## @param readReplicas.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
  934. ## If "ClientIP", consecutive client requests will be directed to the same Pod
  935. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
  936. ##
  937. sessionAffinity: None
  938. ## @param readReplicas.service.sessionAffinityConfig Additional settings for the sessionAffinity
  939. ## sessionAffinityConfig:
  940. ## clientIP:
  941. ## timeoutSeconds: 300
  942. ##
  943. sessionAffinityConfig: {}
  944. ## PostgreSQL read only persistence configuration
  945. ##
  946. persistence:
  947. ## @param readReplicas.persistence.enabled Enable PostgreSQL read only data persistence using PVC
  948. ##
  949. enabled: true
  950. ## @param readReplicas.persistence.mountPath The path the volume will be mounted at
  951. ## Note: useful when using custom PostgreSQL images
  952. ##
  953. mountPath: /bitnami/postgresql
  954. ## @param readReplicas.persistence.subPath The subdirectory of the volume to mount to
  955. ## Useful in dev environments and one PV for multiple services
  956. ##
  957. subPath: ""
  958. ## @param readReplicas.persistence.storageClass PVC Storage Class for PostgreSQL read only data volume
  959. ## If defined, storageClassName: <storageClass>
  960. ## If set to "-", storageClassName: "", which disables dynamic provisioning
  961. ## If undefined (the default) or set to null, no storageClassName spec is
  962. ## set, choosing the default provisioner. (gp2 on AWS, standard on
  963. ## GKE, AWS & OpenStack)
  964. ##
  965. storageClass: ""
  966. ## @param readReplicas.persistence.accessModes PVC Access Mode for PostgreSQL volume
  967. ##
  968. accessModes:
  969. - ReadWriteOnce
  970. ## @param readReplicas.persistence.size PVC Storage Request for PostgreSQL volume
  971. ##
  972. size: 8Gi
  973. ## @param readReplicas.persistence.annotations Annotations for the PVC
  974. ##
  975. annotations: {}
  976. ## @param readReplicas.persistence.selector Selector to match an existing Persistent Volume (this value is evaluated as a template)
  977. ## selector:
  978. ## matchLabels:
  979. ## app: my-app
  980. ##
  981. selector: {}
  982. ## @param readReplicas.persistence.dataSource Custom PVC data source
  983. ##
  984. dataSource: {}
  985. ## @section NetworkPolicy parameters
  986. ## Add networkpolicies
  987. ##
  988. networkPolicy:
  989. ## @param networkPolicy.enabled Enable network policies
  990. ##
  991. enabled: false
  992. ## @param networkPolicy.metrics.enabled Enable network policies for metrics (prometheus)
  993. ## @param networkPolicy.metrics.namespaceSelector [object] Monitoring namespace selector labels. These labels will be used to identify the prometheus' namespace.
  994. ## @param networkPolicy.metrics.podSelector [object] Monitoring pod selector labels. These labels will be used to identify the Prometheus pods.
  995. ##
  996. metrics:
  997. enabled: false
  998. ## e.g:
  999. ## namespaceSelector:
  1000. ## label: monitoring
  1001. ##
  1002. namespaceSelector: {}
  1003. ## e.g:
  1004. ## podSelector:
  1005. ## label: monitoring
  1006. ##
  1007. podSelector: {}
  1008. ## Ingress Rules
  1009. ##
  1010. ingressRules:
  1011. ## @param networkPolicy.ingressRules.primaryAccessOnlyFrom.enabled Enable ingress rule that makes PostgreSQL primary node only accessible from a particular origin.
  1012. ## @param networkPolicy.ingressRules.primaryAccessOnlyFrom.namespaceSelector [object] Namespace selector label that is allowed to access the PostgreSQL primary node. This label will be used to identified the allowed namespace(s).
  1013. ## @param networkPolicy.ingressRules.primaryAccessOnlyFrom.podSelector [object] Pods selector label that is allowed to access the PostgreSQL primary node. This label will be used to identified the allowed pod(s).
  1014. ## @param networkPolicy.ingressRules.primaryAccessOnlyFrom.customRules [object] Custom network policy for the PostgreSQL primary node.
  1015. ##
  1016. primaryAccessOnlyFrom:
  1017. enabled: false
  1018. ## e.g:
  1019. ## namespaceSelector:
  1020. ## label: ingress
  1021. ##
  1022. namespaceSelector: {}
  1023. ## e.g:
  1024. ## podSelector:
  1025. ## label: access
  1026. ##
  1027. podSelector: {}
  1028. ## custom ingress rules
  1029. ## e.g:
  1030. ## customRules:
  1031. ## - from:
  1032. ## - namespaceSelector:
  1033. ## matchLabels:
  1034. ## label: example
  1035. customRules: {}
  1036. ## @param networkPolicy.ingressRules.readReplicasAccessOnlyFrom.enabled Enable ingress rule that makes PostgreSQL read-only nodes only accessible from a particular origin.
  1037. ## @param networkPolicy.ingressRules.readReplicasAccessOnlyFrom.namespaceSelector [object] Namespace selector label that is allowed to access the PostgreSQL read-only nodes. This label will be used to identified the allowed namespace(s).
  1038. ## @param networkPolicy.ingressRules.readReplicasAccessOnlyFrom.podSelector [object] Pods selector label that is allowed to access the PostgreSQL read-only nodes. This label will be used to identified the allowed pod(s).
  1039. ## @param networkPolicy.ingressRules.readReplicasAccessOnlyFrom.customRules [object] Custom network policy for the PostgreSQL read-only nodes.
  1040. ##
  1041. readReplicasAccessOnlyFrom:
  1042. enabled: false
  1043. ## e.g:
  1044. ## namespaceSelector:
  1045. ## label: ingress
  1046. ##
  1047. namespaceSelector: {}
  1048. ## e.g:
  1049. ## podSelector:
  1050. ## label: access
  1051. ##
  1052. podSelector: {}
  1053. ## custom ingress rules
  1054. ## e.g:
  1055. ## CustomRules:
  1056. ## - from:
  1057. ## - namespaceSelector:
  1058. ## matchLabels:
  1059. ## label: example
  1060. customRules: {}
  1061. ## @param networkPolicy.egressRules.denyConnectionsToExternal Enable egress rule that denies outgoing traffic outside the cluster, except for DNS (port 53).
  1062. ## @param networkPolicy.egressRules.customRules [object] Custom network policy rule
  1063. ##
  1064. egressRules:
  1065. # Deny connections to external. This is not compatible with an external database.
  1066. denyConnectionsToExternal: false
  1067. ## Additional custom egress rules
  1068. ## e.g:
  1069. ## customRules:
  1070. ## - to:
  1071. ## - namespaceSelector:
  1072. ## matchLabels:
  1073. ## label: example
  1074. customRules: {}
  1075. ## @section Volume Permissions parameters
  1076. ## Init containers parameters:
  1077. ## volumePermissions: Change the owner and group of the persistent volume(s) mountpoint(s) to 'runAsUser:fsGroup' on each node
  1078. ##
  1079. volumePermissions:
  1080. ## @param volumePermissions.enabled Enable init container that changes the owner and group of the persistent volume
  1081. ##
  1082. enabled: false
  1083. ## @param volumePermissions.image.registry Init container volume-permissions image registry
  1084. ## @param volumePermissions.image.repository Init container volume-permissions image repository
  1085. ## @param volumePermissions.image.tag Init container volume-permissions image tag (immutable tags are recommended)
  1086. ## @param volumePermissions.image.pullPolicy Init container volume-permissions image pull policy
  1087. ## @param volumePermissions.image.pullSecrets Init container volume-permissions image pull secrets
  1088. ##
  1089. image:
  1090. registry: docker.io
  1091. repository: bitnami/bitnami-shell
  1092. tag: 11-debian-11-r5
  1093. pullPolicy: IfNotPresent
  1094. ## Optionally specify an array of imagePullSecrets.
  1095. ## Secrets must be manually created in the namespace.
  1096. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
  1097. ## Example:
  1098. ## pullSecrets:
  1099. ## - myRegistryKeySecretName
  1100. ##
  1101. pullSecrets: []
  1102. ## Init container resource requests and limits
  1103. ## ref: https://kubernetes.io/docs/user-guide/compute-resources/
  1104. ## @param volumePermissions.resources.limits Init container volume-permissions resource limits
  1105. ## @param volumePermissions.resources.requests Init container volume-permissions resource requests
  1106. ##
  1107. resources:
  1108. limits: {}
  1109. requests: {}
  1110. ## Init container' Security Context
  1111. ## Note: the chown of the data folder is done to containerSecurityContext.runAsUser
  1112. ## and not the below volumePermissions.containerSecurityContext.runAsUser
  1113. ## @param volumePermissions.containerSecurityContext.runAsUser User ID for the init container
  1114. ##
  1115. containerSecurityContext:
  1116. runAsUser: 0
  1117. ## @section Other Parameters
  1118. ## Service account for PostgreSQL to use.
  1119. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
  1120. ##
  1121. serviceAccount:
  1122. ## @param serviceAccount.create Enable creation of ServiceAccount for PostgreSQL pod
  1123. ##
  1124. create: false
  1125. ## @param serviceAccount.name The name of the ServiceAccount to use.
  1126. ## If not set and create is true, a name is generated using the common.names.fullname template
  1127. ##
  1128. name: ""
  1129. ## @param serviceAccount.automountServiceAccountToken Allows auto mount of ServiceAccountToken on the serviceAccount created
  1130. ## Can be set to false if pods using this serviceAccount do not need to use K8s API
  1131. ##
  1132. automountServiceAccountToken: true
  1133. ## @param serviceAccount.annotations Additional custom annotations for the ServiceAccount
  1134. ##
  1135. annotations: {}
  1136. ## Creates role for ServiceAccount
  1137. ## @param rbac.create Create Role and RoleBinding (required for PSP to work)
  1138. ##
  1139. rbac:
  1140. create: false
  1141. ## @param rbac.rules Custom RBAC rules to set
  1142. ## e.g:
  1143. ## rules:
  1144. ## - apiGroups:
  1145. ## - ""
  1146. ## resources:
  1147. ## - pods
  1148. ## verbs:
  1149. ## - get
  1150. ## - list
  1151. ##
  1152. rules: []
  1153. ## Pod Security Policy
  1154. ## ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/
  1155. ## @param psp.create Whether to create a PodSecurityPolicy. WARNING: PodSecurityPolicy is deprecated in Kubernetes v1.21 or later, unavailable in v1.25 or later
  1156. ##
  1157. psp:
  1158. create: false
  1159. ## @section Metrics Parameters
  1160. metrics:
  1161. ## @param metrics.enabled Start a prometheus exporter
  1162. ##
  1163. enabled: false
  1164. ## @param metrics.image.registry PostgreSQL Prometheus Exporter image registry
  1165. ## @param metrics.image.repository PostgreSQL Prometheus Exporter image repository
  1166. ## @param metrics.image.tag PostgreSQL Prometheus Exporter image tag (immutable tags are recommended)
  1167. ## @param metrics.image.pullPolicy PostgreSQL Prometheus Exporter image pull policy
  1168. ## @param metrics.image.pullSecrets Specify image pull secrets
  1169. ##
  1170. image:
  1171. registry: docker.io
  1172. repository: bitnami/postgres-exporter
  1173. tag: 0.10.1-debian-11-r6
  1174. pullPolicy: IfNotPresent
  1175. ## Optionally specify an array of imagePullSecrets.
  1176. ## Secrets must be manually created in the namespace.
  1177. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
  1178. ## Example:
  1179. ## pullSecrets:
  1180. ## - myRegistryKeySecretName
  1181. ##
  1182. pullSecrets: []
  1183. ## @param metrics.customMetrics Define additional custom metrics
  1184. ## ref: https://github.com/wrouesnel/postgres_exporter#adding-new-metrics-via-a-config-file
  1185. ## customMetrics:
  1186. ## pg_database:
  1187. ## 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_bytes FROM pg_catalog.pg_database d where datname not in ('template0', 'template1', 'postgres')"
  1188. ## metrics:
  1189. ## - name:
  1190. ## usage: "LABEL"
  1191. ## description: "Name of the database"
  1192. ## - size_bytes:
  1193. ## usage: "GAUGE"
  1194. ## description: "Size of the database in bytes"
  1195. ##
  1196. customMetrics: {}
  1197. ## @param metrics.extraEnvVars Extra environment variables to add to PostgreSQL Prometheus exporter
  1198. ## see: https://github.com/wrouesnel/postgres_exporter#environment-variables
  1199. ## For example:
  1200. ## extraEnvVars:
  1201. ## - name: PG_EXPORTER_DISABLE_DEFAULT_METRICS
  1202. ## value: "true"
  1203. ##
  1204. extraEnvVars: []
  1205. ## PostgreSQL Prometheus exporter containers' Security Context
  1206. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
  1207. ## @param metrics.containerSecurityContext.enabled Enable PostgreSQL Prometheus exporter containers' Security Context
  1208. ## @param metrics.containerSecurityContext.runAsUser Set PostgreSQL Prometheus exporter containers' Security Context runAsUser
  1209. ## @param metrics.containerSecurityContext.runAsNonRoot Set PostgreSQL Prometheus exporter containers' Security Context runAsNonRoot
  1210. ##
  1211. containerSecurityContext:
  1212. enabled: true
  1213. runAsUser: 1001
  1214. runAsNonRoot: true
  1215. ## Configure extra options for PostgreSQL Prometheus exporter containers' liveness, readiness and startup probes
  1216. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
  1217. ## @param metrics.livenessProbe.enabled Enable livenessProbe on PostgreSQL Prometheus exporter containers
  1218. ## @param metrics.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
  1219. ## @param metrics.livenessProbe.periodSeconds Period seconds for livenessProbe
  1220. ## @param metrics.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
  1221. ## @param metrics.livenessProbe.failureThreshold Failure threshold for livenessProbe
  1222. ## @param metrics.livenessProbe.successThreshold Success threshold for livenessProbe
  1223. ##
  1224. livenessProbe:
  1225. enabled: true
  1226. initialDelaySeconds: 5
  1227. periodSeconds: 10
  1228. timeoutSeconds: 5
  1229. failureThreshold: 6
  1230. successThreshold: 1
  1231. ## @param metrics.readinessProbe.enabled Enable readinessProbe on PostgreSQL Prometheus exporter containers
  1232. ## @param metrics.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
  1233. ## @param metrics.readinessProbe.periodSeconds Period seconds for readinessProbe
  1234. ## @param metrics.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
  1235. ## @param metrics.readinessProbe.failureThreshold Failure threshold for readinessProbe
  1236. ## @param metrics.readinessProbe.successThreshold Success threshold for readinessProbe
  1237. ##
  1238. readinessProbe:
  1239. enabled: true
  1240. initialDelaySeconds: 5
  1241. periodSeconds: 10
  1242. timeoutSeconds: 5
  1243. failureThreshold: 6
  1244. successThreshold: 1
  1245. ## @param metrics.startupProbe.enabled Enable startupProbe on PostgreSQL Prometheus exporter containers
  1246. ## @param metrics.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
  1247. ## @param metrics.startupProbe.periodSeconds Period seconds for startupProbe
  1248. ## @param metrics.startupProbe.timeoutSeconds Timeout seconds for startupProbe
  1249. ## @param metrics.startupProbe.failureThreshold Failure threshold for startupProbe
  1250. ## @param metrics.startupProbe.successThreshold Success threshold for startupProbe
  1251. ##
  1252. startupProbe:
  1253. enabled: false
  1254. initialDelaySeconds: 10
  1255. periodSeconds: 10
  1256. timeoutSeconds: 1
  1257. failureThreshold: 15
  1258. successThreshold: 1
  1259. ## @param metrics.customLivenessProbe Custom livenessProbe that overrides the default one
  1260. ##
  1261. customLivenessProbe: {}
  1262. ## @param metrics.customReadinessProbe Custom readinessProbe that overrides the default one
  1263. ##
  1264. customReadinessProbe: {}
  1265. ## @param metrics.customStartupProbe Custom startupProbe that overrides the default one
  1266. ##
  1267. customStartupProbe: {}
  1268. ## @param metrics.containerPorts.metrics PostgreSQL Prometheus exporter metrics container port
  1269. ##
  1270. containerPorts:
  1271. metrics: 9187
  1272. ## PostgreSQL Prometheus exporter resource requests and limits
  1273. ## ref: https://kubernetes.io/docs/user-guide/compute-resources/
  1274. ## @param metrics.resources.limits The resources limits for the PostgreSQL Prometheus exporter container
  1275. ## @param metrics.resources.requests The requested resources for the PostgreSQL Prometheus exporter container
  1276. ##
  1277. resources:
  1278. limits: {}
  1279. requests: {}
  1280. ## Service configuration
  1281. ##
  1282. service:
  1283. ## @param metrics.service.ports.metrics PostgreSQL Prometheus Exporter service port
  1284. ##
  1285. ports:
  1286. metrics: 9187
  1287. ## @param metrics.service.clusterIP Static clusterIP or None for headless services
  1288. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#choosing-your-own-ip-address
  1289. ##
  1290. clusterIP: ""
  1291. ## @param metrics.service.sessionAffinity Control where client requests go, to the same pod or round-robin
  1292. ## Values: ClientIP or None
  1293. ## ref: https://kubernetes.io/docs/user-guide/services/
  1294. ##
  1295. sessionAffinity: None
  1296. ## @param metrics.service.annotations [object] Annotations for Prometheus to auto-discover the metrics endpoint
  1297. ##
  1298. annotations:
  1299. prometheus.io/scrape: "true"
  1300. prometheus.io/port: "{{ .Values.metrics.service.ports.metrics }}"
  1301. ## Prometheus Operator ServiceMonitor configuration
  1302. ##
  1303. serviceMonitor:
  1304. ## @param metrics.serviceMonitor.enabled Create ServiceMonitor Resource for scraping metrics using Prometheus Operator
  1305. ##
  1306. enabled: false
  1307. ## @param metrics.serviceMonitor.namespace Namespace for the ServiceMonitor Resource (defaults to the Release Namespace)
  1308. ##
  1309. namespace: ""
  1310. ## @param metrics.serviceMonitor.interval Interval at which metrics should be scraped.
  1311. ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
  1312. ##
  1313. interval: ""
  1314. ## @param metrics.serviceMonitor.scrapeTimeout Timeout after which the scrape is ended
  1315. ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
  1316. ##
  1317. scrapeTimeout: ""
  1318. ## @param metrics.serviceMonitor.labels Additional labels that can be used so ServiceMonitor will be discovered by Prometheus
  1319. ##
  1320. labels: {}
  1321. ## @param metrics.serviceMonitor.selector Prometheus instance selector labels
  1322. ## ref: https://github.com/bitnami/charts/tree/master/bitnami/prometheus-operator#prometheus-configuration
  1323. ##
  1324. selector: {}
  1325. ## @param metrics.serviceMonitor.relabelings RelabelConfigs to apply to samples before scraping
  1326. ##
  1327. relabelings: []
  1328. ## @param metrics.serviceMonitor.metricRelabelings MetricRelabelConfigs to apply to samples before ingestion
  1329. ##
  1330. metricRelabelings: []
  1331. ## @param metrics.serviceMonitor.honorLabels Specify honorLabels parameter to add the scrape endpoint
  1332. ##
  1333. honorLabels: false
  1334. ## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in prometheus.
  1335. ##
  1336. jobLabel: ""
  1337. ## Custom PrometheusRule to be defined
  1338. ## The value is evaluated as a template, so, for example, the value can depend on .Release or .Chart
  1339. ## ref: https://github.com/coreos/prometheus-operator#customresourcedefinitions
  1340. ##
  1341. prometheusRule:
  1342. ## @param metrics.prometheusRule.enabled Create a PrometheusRule for Prometheus Operator
  1343. ##
  1344. enabled: false
  1345. ## @param metrics.prometheusRule.namespace Namespace for the PrometheusRule Resource (defaults to the Release Namespace)
  1346. ##
  1347. namespace: ""
  1348. ## @param metrics.prometheusRule.labels Additional labels that can be used so PrometheusRule will be discovered by Prometheus
  1349. ##
  1350. labels: {}
  1351. ## @param metrics.prometheusRule.rules PrometheusRule definitions
  1352. ## Make sure to constraint the rules to the current postgresql service.
  1353. ## rules:
  1354. ## - alert: HugeReplicationLag
  1355. ## expr: pg_replication_lag{service="{{ printf "%s-metrics" (include "common.names.fullname" .) }}"} / 3600 > 1
  1356. ## for: 1m
  1357. ## labels:
  1358. ## severity: critical
  1359. ## annotations:
  1360. ## description: replication for {{ include "common.names.fullname" . }} PostgreSQL is lagging by {{ "{{ $value }}" }} hour(s).
  1361. ## summary: PostgreSQL replication is lagging by {{ "{{ $value }}" }} hour(s).
  1362. ##
  1363. rules: []