Skip to content

Commit

Permalink
finish
Browse files Browse the repository at this point in the history
  • Loading branch information
mosheavni committed Mar 24, 2021
1 parent 89b89d8 commit f6d7eb7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
2 changes: 1 addition & 1 deletion filebeat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ logzio-k8s-logs logzio-helm/logzio-k8s-logs
```shell
filebeatConfig:
customConfig:
customConfig: |-
filebeat.autodiscover:
#....
# your autodiscover config
Expand Down
17 changes: 8 additions & 9 deletions filebeat/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ metadata:
labels:
k8s-app: filebeat
data:
# filebeat.yml: |-
{{- if eq .Values.configType "standard" }}
{{- if eq .Values.configType "standard" }}
filebeat.yml: |-
filebeat.inputs:
- type: container
paths:
Expand All @@ -52,7 +52,8 @@ data:
hosts: ["${LOGZIO_LOGS_LISTENER_HOST}:5015"]
ssl:
certificate_authorities: ['/etc/pki/tls/certs/SectigoRSADomainValidationSecureServerCA.crt']
{{- else if eq .Values.configType "autodiscover" }}
{{- else if eq .Values.configType "autodiscover" }}
filebeat.yml: |-
filebeat.autodiscover:
providers:
- type: kubernetes
Expand All @@ -79,10 +80,8 @@ data:
hosts: ["${LOGZIO_LOGS_LISTENER_HOST}:5015"]
ssl:
certificate_authorities: ['/etc/pki/tls/certs/SectigoRSADomainValidationSecureServerCA.crt']
{{- else if eq .Values.configType "custom" }}
filebeat.yml: |-
{{- range $config := fromYaml .Values.filebeatConfig.customConfig }}
{{- toYaml $config | nindent 4 }}
{{- end }}
{{- end }}
{{- else if eq .Values.configType "custom" }}
filebeat.yml:
{{- toYaml .Values.filebeatConfig.customConfig | nindent 4 }}
{{- end }}
{{- end }}
6 changes: 1 addition & 5 deletions filebeat/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,7 @@ logzioCert:
configType: standard

filebeatConfig:
customConfig:
from-values: |-
hiri:
- biri
- hello
customConfig: ''
extraFields:
# environment: production
# foo: bar
Expand Down

0 comments on commit f6d7eb7

Please sign in to comment.