From 84e549e571fc30a627fd67c815b045849e352e47 Mon Sep 17 00:00:00 2001 From: Andrzej Joskowski Date: Tue, 14 Sep 2021 11:43:47 +0200 Subject: [PATCH 1/2] Added a possibility to configure readinessProbe timeouts for operator deployment --- helm/cassandra-operator/templates/deployment.yaml | 6 +++--- helm/cassandra-operator/values.yaml | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/helm/cassandra-operator/templates/deployment.yaml b/helm/cassandra-operator/templates/deployment.yaml index aaf04690d..2a73279cc 100644 --- a/helm/cassandra-operator/templates/deployment.yaml +++ b/helm/cassandra-operator/templates/deployment.yaml @@ -43,9 +43,9 @@ spec: exec: command: - /health - initialDelaySeconds: 4 - periodSeconds: 10 - failureThreshold: 1 + initialDelaySeconds: {{ .Values.readinessProbe.timeouts.initialDelaySeconds }} + periodSeconds: {{ .Values.readinessProbe.timeouts.periodSeconds }} + failureThreshold: {{ .Values.readinessProbe.timeouts.failureThreshold }} resources: {{ toYaml .Values.resources | indent 10 }} env: diff --git a/helm/cassandra-operator/values.yaml b/helm/cassandra-operator/values.yaml index 98bf79fff..3bd2f2b05 100644 --- a/helm/cassandra-operator/values.yaml +++ b/helm/cassandra-operator/values.yaml @@ -18,6 +18,12 @@ resources: cpu: 1 memory: 512Mi +readinessProbe: + timeouts: + initialDelaySeconds: 4 + periodSeconds: 10 + failureThreshold: 1 + ## If true, create & deploy the CRD ## createCustomResource: true From 4981ed7562e54a4fd21138473fef129eae7dcf3a Mon Sep 17 00:00:00 2001 From: Andrzej Joskowski Date: Wed, 15 Sep 2021 07:10:06 +0200 Subject: [PATCH 2/2] docs --- .../1_customizable_install_with_helm.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/website/docs/3_configuration_deployment/1_customizable_install_with_helm.md b/website/docs/3_configuration_deployment/1_customizable_install_with_helm.md index 993b462d0..85b2338c6 100644 --- a/website/docs/3_configuration_deployment/1_customizable_install_with_helm.md +++ b/website/docs/3_configuration_deployment/1_customizable_install_with_helm.md @@ -26,6 +26,9 @@ The following tables lists the configurable parameters of the Cassandra Operator | `image.imagePullSecrets.name` | Name of the secret to connect to docker registry | - | | `rbacEnable` | If true, create & use RBAC resources | `true` | | `resources` | Pod resource requests & limits | `{}` | +| `readinessProbe.timeouts.initialDelaySeconds` | Specifies timeout before first probe attempt | `4` | +| `readinessProbe.timeouts.periodSeconds` | Specifies probe interval | `10` | +| `readinessProbe.timeouts.failureThreshold` | When a probe fails, after time specified in this field Pod will be marked as `Undready` | `1` | | `metricService` | deploy service for metrics | `false` | | `debug.enabled` | activate DEBUG log level and enable shareProcessNamespace (allowing ephemeral container usage) | `false` |