Skip to content

Commit

Permalink
fix(deploy): correct readiness, add timeout (default to 2m)
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
  • Loading branch information
leogr authored and poiana committed Jun 8, 2020
1 parent 4ed9d79 commit c55544a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion deploy/helm/falco-exporter/templates/daemonset.yaml
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions deploy/helm/falco-exporter/values.yaml
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion deploy/k8s/falco-exporter/templates/daemonset.yaml
Expand Up @@ -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
Expand All @@ -43,7 +44,7 @@ spec:
port: 9376
readinessProbe:
httpGet:
path: /metrics
path: /readiness
port: 9376
resources:
{}
Expand Down

0 comments on commit c55544a

Please sign in to comment.