diff --git a/metricbeat/templates/daemonset.yaml b/metricbeat/templates/daemonset.yaml index 6bc6441e3..3c030a2fd 100644 --- a/metricbeat/templates/daemonset.yaml +++ b/metricbeat/templates/daemonset.yaml @@ -93,22 +93,8 @@ spec: - "-E" - "http.enabled=true" livenessProbe: - exec: - command: - - sh - - -c - - | - #!/usr/bin/env bash -e - curl --fail 127.0.0.1:5066 {{ toYaml .Values.livenessProbe | indent 10 }} readinessProbe: - exec: - command: - - sh - - -c - - | - #!/usr/bin/env bash -e - metricbeat test output {{ toYaml .Values.readinessProbe | indent 10 }} resources: {{ toYaml .Values.resources | indent 10 }} diff --git a/metricbeat/templates/deployment.yaml b/metricbeat/templates/deployment.yaml index 69ae29573..6c1dc6bd0 100644 --- a/metricbeat/templates/deployment.yaml +++ b/metricbeat/templates/deployment.yaml @@ -68,21 +68,8 @@ spec: - "-E" - "http.enabled=true" livenessProbe: - exec: - command: - - sh - - -c - - | - #!/usr/bin/env bash -e - curl --fail 127.0.0.1:5066 +{{ toYaml .Values.livenessProbe | indent 10 }} readinessProbe: - exec: - command: - - sh - - -c - - | - #!/usr/bin/env bash -e - metricbeat test output {{ toYaml .Values.readinessProbe | indent 10 }} resources: {{ toYaml .Values.resources | indent 10 }} diff --git a/metricbeat/values.yaml b/metricbeat/values.yaml index 4e8b501f6..6f8591a73 100755 --- a/metricbeat/values.yaml +++ b/metricbeat/values.yaml @@ -91,12 +91,26 @@ imagePullPolicy: "IfNotPresent" imagePullSecrets: [] livenessProbe: + exec: + command: + - sh + - -c + - | + #!/usr/bin/env bash -e + curl --fail 127.0.0.1:5066 failureThreshold: 3 initialDelaySeconds: 10 periodSeconds: 10 timeoutSeconds: 5 readinessProbe: + exec: + command: + - sh + - -c + - | + #!/usr/bin/env bash -e + metricbeat test output failureThreshold: 3 initialDelaySeconds: 10 periodSeconds: 10