From c55544abdb0d78bca3e11da9640ed726edb983e5 Mon Sep 17 00:00:00 2001 From: Leonardo Grasso Date: Tue, 26 May 2020 13:49:10 +0200 Subject: [PATCH] fix(deploy): correct readiness, add timeout (default to 2m) Signed-off-by: Leonardo Grasso --- deploy/helm/falco-exporter/templates/daemonset.yaml | 3 ++- deploy/helm/falco-exporter/values.yaml | 1 + deploy/k8s/falco-exporter/templates/daemonset.yaml | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/deploy/helm/falco-exporter/templates/daemonset.yaml b/deploy/helm/falco-exporter/templates/daemonset.yaml index 63084c7..1ecb958 100644 --- a/deploy/helm/falco-exporter/templates/daemonset.yaml +++ b/deploy/helm/falco-exporter/templates/daemonset.yaml @@ -30,6 +30,7 @@ spec: - /usr/bin/falco-exporter - --client-hostname={{ .Values.falco.grpcHostname }} - --client-port={{ .Values.falco.grpcPort }} + - --timeout={{ .Values.falco.grpcTimeout }} - --listen-address=0.0.0.0:{{ .Values.service.port }} ports: - name: metrics @@ -41,7 +42,7 @@ spec: port: {{ .Values.service.port }} readinessProbe: httpGet: - path: /metrics + path: /readiness port: {{ .Values.service.port }} resources: {{- toYaml .Values.resources | nindent 12 }} diff --git a/deploy/helm/falco-exporter/values.yaml b/deploy/helm/falco-exporter/values.yaml index 1f4c191..2099635 100644 --- a/deploy/helm/falco-exporter/values.yaml +++ b/deploy/helm/falco-exporter/values.yaml @@ -25,6 +25,7 @@ fullnameOverride: "" falco: grpcHostname: falco-grpc.default.svc.cluster.local grpcPort: 5060 + grpcTimeout: 2m serviceAccount: # Specifies whether a service account should be created diff --git a/deploy/k8s/falco-exporter/templates/daemonset.yaml b/deploy/k8s/falco-exporter/templates/daemonset.yaml index bcb79b7..be07384 100644 --- a/deploy/k8s/falco-exporter/templates/daemonset.yaml +++ b/deploy/k8s/falco-exporter/templates/daemonset.yaml @@ -32,6 +32,7 @@ spec: - /usr/bin/falco-exporter - --client-hostname=falco-grpc.default.svc.cluster.local - --client-port=5060 + - --timeout=2m - --listen-address=0.0.0.0:9376 ports: - name: metrics @@ -43,7 +44,7 @@ spec: port: 9376 readinessProbe: httpGet: - path: /metrics + path: /readiness port: 9376 resources: {}