Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
charts/timescaledb-single: added resources to pgBouncer and postgres-…
Browse files Browse the repository at this point in the history
…exporter container
  • Loading branch information
joschiwald committed Mar 11, 2023
1 parent 47fc17c commit 3da4882
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
2 changes: 2 additions & 0 deletions charts/timescaledb-single/docs/admin-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ The following table lists the configurable parameters of the TimescaleDB Helm ch
| `pgBouncer.enabled` | If enabled, run a [pgBouncer](https://www.pgbouncer.org/) sidecar | `false` |
| `pgBouncer.port` | The port on which the Load Balancer should listen for pgBouncer requests | `6432` |
| `pgBouncer.pg_hba` | The `pg_hba` to be used by pgBouncer | A `pg_hba` allowing non-superuser ssl-only connections |
| `pgBouncer.resources` | Any resources you wish to assign to the pgBouncer container | `{}` |
| `pgBouncer.userListSecretName` | If set, a [user authentication file](https://www.pgbouncer.org/config.html#authentication-file-format) to be used by pgBouncer. | `nil` |
| `podManagementPolicy` | Either [`OrderedReady` or `Parallel`](https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies) | `OrderedReady` |
| `podMonitor.enabled` | Enable deployment of podMonitor used with prometheus-operator. | `false` |
Expand All @@ -82,6 +83,7 @@ The following table lists the configurable parameters of the TimescaleDB Helm ch
| `prometheus.image.pullPolicy` | The pull policy for the postgres\_exporter | `IfNotPresent` |
| `prometheus.image.repository` | The postgres\_exporter docker repo | `quay.io/prometheuscommunity/postgres_exporter` |
| `prometheus.image.tag` | The tag of the postgres\_exporter image | `v0.11.0` |
| `prometheus.resources` | Any resources you wish to assign to the postgres-exporter container | `{}` |
| `rbac.create` | Create required role and rolebindings | `true` |
| `replicaCount` | Amount of pods to spawn | `3` |
| `resources` | Any resources you wish to assign to the timescaledb container | `{}` |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ spec:
- -i
- /usr/sbin/pgbouncer
- /etc/pgbouncer/pgbouncer-sidecar.ini
resources:
{{- toYaml .Values.pgBouncer.resources | nindent 10 }}
{{- end }}

{{- if or .Values.backup.enabled .Values.backup.enable }}
Expand Down Expand Up @@ -451,6 +453,8 @@ spec:
{{- if .Values.prometheus.env }}
{{ .Values.prometheus.env | default list | toYaml | nindent 8 }}
{{- end }}
resources:
{{- toYaml .Values.prometheus.resources | nindent 10 }}
{{- end }}

{{- with .Values.nodeSelector }}
Expand Down
6 changes: 6 additions & 0 deletions charts/timescaledb-single/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,9 @@
],
"type": "integer"
},
"resources": {
"$ref": "#/definitions/resources"
},
"userListSecretName": {
"description": "A pointer to a SecretName containing user/password pairs in the format expected by pgbouncer\nhttps://www.pgbouncer.org/config.html#authentication-file-format\n",
"type": [
Expand Down Expand Up @@ -641,6 +644,9 @@
"image": {
"type": "object"
},
"resources": {
"$ref": "#/definitions/resources"
},
"volumeMounts": {
"items": {
"type": "object"
Expand Down
4 changes: 4 additions & 0 deletions charts/timescaledb-single/values.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ properties:
type: object
image:
type: object
resources:
"$ref": "#/definitions/resources"
volumes:
type:
- array
Expand Down Expand Up @@ -401,6 +403,8 @@ properties:
type:
- object
- "null"
resources:
"$ref": "#/definitions/resources"
nodeSelector:
type: object
podAnnotations:
Expand Down
9 changes: 5 additions & 4 deletions charts/timescaledb-single/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ pgBouncer:
- hostssl all all ::0/0 md5
- hostnossl all all 0.0.0.0/0 reject
- hostnossl all all ::0/0 reject
resources: {}
# Secret should contain user/password pairs in the format expected by pgbouncer
# https://www.pgbouncer.org/config.html#authentication-file-format
# example:
Expand Down Expand Up @@ -531,13 +532,13 @@ prometheus:
# secretKeyRef:
# name: myapplication-passwords
# key: standby
# Additional volumes for prometheus, e.g., to support additional queries.
# These should be a Volume, as this allows you to inject any kind of Volume
# https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.16/#volume-v1-core

resources: {}
# Extra custom CLI arguments for postgres_exporter.
args: []
# - --collector.database=disabled
# Additional volumes for prometheus, e.g., to support additional queries.
# These should be a Volume, as this allows you to inject any kind of Volume
# https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.16/#volume-v1-core
volumes:
# - name: exporter-config
# configMap:
Expand Down

0 comments on commit 3da4882

Please sign in to comment.