From 613c120c6867965a14eeba27d63eccc8c11d483a Mon Sep 17 00:00:00 2001 From: EJ Etherington Date: Tue, 26 Mar 2019 09:43:59 -0700 Subject: [PATCH] trying some liveness and readiness probes. Removing ranges on default configmap --- .../templates/fairwinds.deployment-dashboard.yaml | 13 +++++++++++++ .../templates/fairwinds.deployment-webook.yaml | 13 +++++++++++++ charts/fairwinds/values.yaml | 6 ++---- 3 files changed, 28 insertions(+), 4 deletions(-) diff --git a/charts/fairwinds/templates/fairwinds.deployment-dashboard.yaml b/charts/fairwinds/templates/fairwinds.deployment-dashboard.yaml index ef3c33d1..a1e81b68 100644 --- a/charts/fairwinds/templates/fairwinds.deployment-dashboard.yaml +++ b/charts/fairwinds/templates/fairwinds.deployment-dashboard.yaml @@ -37,6 +37,19 @@ spec: name: dashboard ports: - containerPort: 8080 + livenessProbe: + exec: + command: + - sh + - -c + - ps -ef | grep fairwinds + initialDelaySeconds: 5 + periodSeconds: 5 + readinessProbe: + tcpSocket: + port: 8080 + initialDelaySeconds: 15 + periodSeconds: 20 resources: limits: cpu: 100m diff --git a/charts/fairwinds/templates/fairwinds.deployment-webook.yaml b/charts/fairwinds/templates/fairwinds.deployment-webook.yaml index 3a2926be..bc8ad4f7 100644 --- a/charts/fairwinds/templates/fairwinds.deployment-webook.yaml +++ b/charts/fairwinds/templates/fairwinds.deployment-webook.yaml @@ -37,6 +37,19 @@ spec: name: webhook ports: - containerPort: 9876 + livenessProbe: + exec: + command: + - sh + - -c + - ps -ef | grep fairwinds + initialDelaySeconds: 5 + periodSeconds: 5 + readinessProbe: + tcpSocket: + port: 8080 + initialDelaySeconds: 15 + periodSeconds: 20 resources: limits: cpu: 100m diff --git a/charts/fairwinds/values.yaml b/charts/fairwinds/values.yaml index 08b4348f..f90fa859 100644 --- a/charts/fairwinds/values.yaml +++ b/charts/fairwinds/values.yaml @@ -8,11 +8,9 @@ config: | require: true limits: cpu: - min: 0.1 - max: 1 + require: true memory: - min: 10m - max: 2000M + require: true healthChecks: readiness: require: true