From 81573d0366942b54704e55014b49c8f0ac882e61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marius=20Andr=C3=A9=20Elsfjordstrand=20Beck?= Date: Mon, 2 Nov 2020 10:53:33 +0100 Subject: [PATCH] rethinkdb: Add startup probe to rethinkdb cluster/proxy/admin containers --- bases/rethinkdb/admin/admin-deployment.yaml | 7 +++++-- bases/rethinkdb/cluster/cluster-statefulset.yaml | 7 +++++-- bases/rethinkdb/proxy/proxy-daemonset.yaml | 7 +++++-- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/bases/rethinkdb/admin/admin-deployment.yaml b/bases/rethinkdb/admin/admin-deployment.yaml index d6318b52..0b227a6c 100644 --- a/bases/rethinkdb/admin/admin-deployment.yaml +++ b/bases/rethinkdb/admin/admin-deployment.yaml @@ -58,17 +58,20 @@ spec: valueFrom: fieldRef: fieldPath: metadata.name + startupProbe: + exec: + command: + - /rethinkdb-probe + failureThreshold: 10 livenessProbe: exec: command: - /rethinkdb-probe - initialDelaySeconds: 5 timeoutSeconds: 5 readinessProbe: exec: command: - /rethinkdb-probe - initialDelaySeconds: 10 timeoutSeconds: 5 volumes: - name: secrets diff --git a/bases/rethinkdb/cluster/cluster-statefulset.yaml b/bases/rethinkdb/cluster/cluster-statefulset.yaml index 4e2c1d65..110337c1 100644 --- a/bases/rethinkdb/cluster/cluster-statefulset.yaml +++ b/bases/rethinkdb/cluster/cluster-statefulset.yaml @@ -57,17 +57,20 @@ spec: valueFrom: fieldRef: fieldPath: metadata.name + startupProbe: + exec: + command: + - /rethinkdb-probe + failureThreshold: 10 livenessProbe: exec: command: - /rethinkdb-probe - initialDelaySeconds: 10 timeoutSeconds: 5 readinessProbe: exec: command: - /rethinkdb-probe - initialDelaySeconds: 10 timeoutSeconds: 5 volumes: - name: datadir diff --git a/bases/rethinkdb/proxy/proxy-daemonset.yaml b/bases/rethinkdb/proxy/proxy-daemonset.yaml index 73761f81..7f1b109b 100644 --- a/bases/rethinkdb/proxy/proxy-daemonset.yaml +++ b/bases/rethinkdb/proxy/proxy-daemonset.yaml @@ -58,17 +58,20 @@ spec: valueFrom: fieldRef: fieldPath: metadata.name + startupProbe: + exec: + command: + - /rethinkdb-probe + failureThreshold: 10 livenessProbe: exec: command: - /rethinkdb-probe - initialDelaySeconds: 15 timeoutSeconds: 5 readinessProbe: exec: command: - /rethinkdb-probe - initialDelaySeconds: 10 timeoutSeconds: 5 volumes: - name: secrets