Skip to content

Commit

Permalink
Merge branch 'main' into container-sec
Browse files Browse the repository at this point in the history
  • Loading branch information
tplavcic authored Jan 31, 2024
2 parents 83bb716 + 9d9d3d1 commit 741213b
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 15 deletions.
2 changes: 1 addition & 1 deletion charts/pg-db/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: pg-db
description: 'A Helm chart to deploy the PostgreSQL database with the Percona Operator for PostgreSQL'
type: application
version: 2.3.2
version: 2.3.3
appVersion: 2.3.1
home: https://docs.percona.com/percona-operator-for-postgresql/2.0/
maintainers:
Expand Down
3 changes: 2 additions & 1 deletion charts/pg-db/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ The chart can be customized using the following configurable parameters:
| `pmm.serverHost` | PMM server related K8S service hostname | `monitoring-service` |
| `pmm.resources.requests.memory` | Container resource request for RAM | `200M` |
| `pmm.resources.requests.cpu` | Container resource request for CPU | `500m` |
| `patroni.dynamicConfiguration` | Add custom configuration for patroni | `{}` |
| `patroni.dynamicConfiguration.postgresql.parameters` | Custom PostgreSQL configuration options | `{}` |
| `patroni.dynamicConfiguration.postgresql.pg_hba` | PostgreSQL Host-Based Authentication section | `{}` |
| `extensions.image` | Image for the custom PostgreSQL extension loader sidecar container | `""` |
| `extensions.imagePullPolicy` | Policy for the custom extension sidecar container | `Always` |
| `extensions.storage.type` | The cloud storage type used for backups. Only s3 type is currently supported. | `""` |
Expand Down
4 changes: 3 additions & 1 deletion charts/pg-db/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,9 @@ pmm:
# max_worker_processes: 2
# shared_buffers: 1GB
# work_mem: 2MB
#
# pg_hba:
# - host all mytest 123.123.123.123/32 reject

# extensions:
# image: percona/percona-postgresql-operator:2.3.1
# imagePullPolicy: Always
Expand Down
2 changes: 1 addition & 1 deletion charts/psmdb-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: "1.15.0"
description: A Helm chart for deploying the Percona Operator for MongoDB
name: psmdb-operator
home: https://docs.percona.com/percona-operator-for-mongodb/
version: 1.15.1
version: 1.15.2
maintainers:
- name: tplavcic
email: [email protected]
Expand Down
21 changes: 12 additions & 9 deletions charts/psmdb-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,12 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- containerPort: 60000
- containerPort: 8080
protocol: TCP
name: metrics
- containerPort: 8081
protocol: TCP
name: health
command:
- percona-server-mongodb-operator
env:
Expand All @@ -65,14 +68,14 @@ spec:
value: "{{ .Values.env.resyncPeriod }}"
- name: DISABLE_TELEMETRY
value: "{{ .Values.disableTelemetry }}"
# livenessProbe:
# httpGet:
# path: /
# port: metrics
# readinessProbe:
# httpGet:
# path: /
# port: metrics
livenessProbe:
httpGet:
path: /healthz
port: health
readinessProbe:
httpGet:
path: /healthz
port: health
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
Expand Down
2 changes: 1 addition & 1 deletion charts/pxc-db/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: 1.13.0
description: A Helm chart for installing Percona XtraDB Cluster Databases using the PXC Operator.
name: pxc-db
home: https://www.percona.com/doc/kubernetes-operator-for-pxc/kubernetes.html
version: 1.13.4
version: 1.13.6
maintainers:
- name: tplavcic
email: [email protected]
Expand Down
2 changes: 2 additions & 0 deletions charts/pxc-db/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ The chart can be customized using the following configurable parameters:
| `pmm.serverUser` | Username for accessing PXC database internals | `admin` |
| `pmm.resources.requests` | PMM Container resource requests | `{"memory": "150M", "cpu": "300m"}` |
| `pmm.resources.limits` | PMM Container resource limits | `{}` |
| `pmm.pxcParams` | Additional parameters which will be passed to the [pmm-admin add mysql](https://docs.percona.com/percona-monitoring-and-management/setting-up/client/mysql.html#add-service) command for `pxc` Pods | `""` |
| `pmm.proxysqlParams` | Additional parameters which will be passed to the [pmm-admin add proxysql](https://docs.percona.com/percona-monitoring-and-management/setting-up/client/proxysql.html) command for `proxysql` Pods | `""` |
| |
| `backup.enabled` | Enables backups for PXC cluster | `true` |
| `backup.allowParallel` | Allow taking multiple backups in parallel | `true` |
Expand Down
6 changes: 6 additions & 0 deletions charts/pxc-db/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,12 @@ spec:
{{- end }}
serverHost: {{ $pmm.serverHost }}
serverUser: {{ $pmm.serverUser }}
{{- if $pmm.pxcParams }}
pxcParams: {{ $pmm.pxcParams }}
{{- end }}
{{- if $pmm.proxysqlParams }}
proxysqlParams: {{ $pmm.proxysqlParams }}
{{- end }}
resources:
requests:
{{ tpl ($pmm.resources.requests | toYaml) $ | indent 8 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/pxc-db/templates/s3-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apiVersion: v1
kind: Secret
metadata:
name: {{ include "pxc-database.fullname" $ }}-s3-{{ $key }}
namespace: {{ .Release.Namespace }}
namespace: {{ $.Release.Namespace }}
labels:
{{ include "pxc-database.labels" $ | indent 4 }}
type: Opaque
Expand Down
2 changes: 2 additions & 0 deletions charts/pxc-db/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,8 @@ pmm:
imagePullSecrets: []
serverHost: monitoring-service
serverUser: admin
# pxcParams: "--disable-tablestats-limit=2000"
# proxysqlParams: "--custom-labels=CUSTOM-LABELS"
resources:
requests:
memory: 150M
Expand Down

0 comments on commit 741213b

Please sign in to comment.