Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

K8SPXC-1367: add readinessProbes, livenessProbes fields for pmm #472

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 22 additions & 12 deletions charts/pxc-db/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,18 +239,28 @@ The chart can be customized using the following configurable parameters:
| `logcollector.resources.limits` | Log collector resource limits | `{}` |
| `logcollector.containerSecurityContext` | A custom Kubernetes Security Context for a Container to be used instead of the default one | `{}` |
| |
| `pmm.enabled` | Enable integration with [Percona Monitoring and Management software](https://www.percona.com/doc/kubernetes-operator-for-pxc/monitoring.html) | `false` |
| `pmm.image.repository` | PMM Container image repository | `percona/pmm-client` |
| `pmm.image.tag` | PMM Container image tag | `2.44.0` |
| `pmm.imagePullSecrets` | PMM Container pull secret | `[]` |
| `pmm.imagePullPolicy` | The policy used to update images | `` |
| `pmm.serverHost` | PMM server related K8S service hostname | `monitoring-service` |
| `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 | `""` |
| `pmm.containerSecurityContext` | A custom Kubernetes Security Context for a Container to be used instead of the default one | `{}` |
| `pmm.enabled` | Enable integration with [Percona Monitoring and Management software](https://www.percona.com/doc/kubernetes-operator-for-pxc/monitoring.html) | `false` |
| `pmm.image.repository` | PMM Container image repository | `percona/pmm-client` |
| `pmm.image.tag` | PMM Container image tag | `2.44.0` |
| `pmm.imagePullSecrets` | PMM Container pull secret | `[]` |
| `pmm.imagePullPolicy` | The policy used to update images | `` |
| `pmm.serverHost` | PMM server related K8S service hostname | `monitoring-service` |
| `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 | `""` |
| `pmm.containerSecurityContext` | A custom Kubernetes Security Context for a Container to be used instead of the default one | `{}` |
| `pmm.readinessProbes.failureThreshold` | When a probe fails, Kubernetes will try failureThreshold times before giving up | `5` |
| `pmm.readinessProbes.initialDelaySeconds`| Number of seconds after the container has started before liveness or readiness probes are initiated | `15` |
| `pmm.readinessProbes.periodSeconds` | How often (in seconds) to perform the probe | `30` |
| `pmm.readinessProbes.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed | `1` |
| `pmm.readinessProbes.timeoutSeconds` | Number of seconds after which the probe times out | `15` |
| `pmm.livenessProbes.failureThreshold` | When a probe fails, Kubernetes will try failureThreshold times before giving up | `3` |
| `pmm.livenessProbes.initialDelaySeconds` | Number of seconds after the container has started before liveness or readiness probes are initiated | `300` |
| `pmm.livenessProbes.periodSeconds` | How often (in seconds) to perform the probe | `10` |
| `pmm.livenessProbes.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed | `1` |
| `pmm.livenessProbes.timeoutSeconds` | Number of seconds after which the probe times out | `5` |

| `users.name` | The username of the PXC application user | `""` |
| `users.dbs` | Database that will be applied to the user | `[]` |
Expand Down
4 changes: 4 additions & 0 deletions charts/pxc-db/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,10 @@ spec:
{{- if $pmm.proxysqlParams }}
proxysqlParams: {{ $pmm.proxysqlParams }}
{{- end }}
readinessProbes:
{{ tpl ($pmm.readinessProbes | toYaml) $ | indent 6 }}
livenessProbes:
{{ tpl ($pmm.livenessProbes | toYaml) $ | indent 6 }}
resources:
requests:
{{ tpl ($pmm.resources.requests | toYaml) $ | indent 8 }}
Expand Down
11 changes: 11 additions & 0 deletions charts/pxc-db/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,17 @@ pmm:
tag: 2.44.0
# imagePullPolicy: Always
imagePullSecrets: []
readinessProbes:
initialDelaySeconds: 15
timeoutSeconds: 15
periodSeconds: 30
successThreshold: 1
failureThreshold: 5
livenessProbes:
initialDelaySeconds: 300
timeoutSeconds: 5
periodSeconds: 10
successThreshold: 1
serverHost: monitoring-service
serverUser: admin
# pxcParams: "--disable-tablestats-limit=2000"
Expand Down
Loading