-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add
fluentd.apiServerUrl
property
- Loading branch information
1 parent
e70b1a0
commit 3d22f2b
Showing
13 changed files
with
256 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
fluentd: | ||
apiServerUrl: "https://kubernetes.default.svc:443" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
# Source: sumologic/templates/events/fluentd/configmap.yaml | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: RELEASE-NAME-sumologic-fluentd-events | ||
labels: | ||
app: RELEASE-NAME-sumologic-fluentd-events | ||
chart: "sumologic-%CURRENT_CHART_VERSION%" | ||
release: "RELEASE-NAME" | ||
heritage: "Helm" | ||
data: | ||
fluent.conf: |- | ||
@include events.conf | ||
events.conf: | | ||
<source> | ||
@type events | ||
deploy_namespace sumologic | ||
kubernetes_url "https://kubernetes.default.svc:443" | ||
</source> | ||
# Prevent fluentd from handling records containing its own logs. | ||
<match fluentd.**> | ||
@type null | ||
</match> | ||
# expose the Fluentd metrics to Prometheus | ||
<source> | ||
@type prometheus | ||
metrics_path /metrics | ||
port 24231 | ||
</source> | ||
<source> | ||
@type prometheus_output_monitor | ||
</source> | ||
<source> | ||
@type http | ||
port 9880 | ||
bind 0.0.0.0 | ||
</source> | ||
<match kubernetes.**> | ||
@type copy | ||
<store> | ||
@type sumologic | ||
@id sumologic.endpoint.events | ||
sumo_client "k8s_2.4.0" | ||
endpoint "#{ENV['SUMO_ENDPOINT_DEFAULT_EVENTS_SOURCE']}" | ||
data_type logs | ||
disable_cookies true | ||
verify_ssl "true" | ||
proxy_uri "" | ||
compress "true" | ||
compress_encoding "gzip" | ||
<buffer> | ||
@type file | ||
path /fluentd/buffer/events | ||
@include buffer.output.conf | ||
</buffer> | ||
</store> | ||
</match> | ||
<system> | ||
log_level info | ||
</system> | ||
buffer.output.conf: | | ||
compress "gzip" | ||
flush_interval "5s" | ||
flush_thread_count "8" | ||
chunk_limit_size "1m" | ||
total_limit_size "128m" | ||
queued_chunks_limit_size "128" | ||
overflow_action drop_oldest_chunk | ||
retry_max_interval "10m" | ||
retry_forever "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
fluentd: | ||
apiServerUrl: null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
--- | ||
# Source: sumologic/templates/events/fluentd/configmap.yaml | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: RELEASE-NAME-sumologic-fluentd-events | ||
labels: | ||
app: RELEASE-NAME-sumologic-fluentd-events | ||
chart: "sumologic-%CURRENT_CHART_VERSION%" | ||
release: "RELEASE-NAME" | ||
heritage: "Helm" | ||
data: | ||
fluent.conf: |- | ||
@include events.conf | ||
events.conf: | | ||
<source> | ||
@type events | ||
deploy_namespace sumologic | ||
</source> | ||
# Prevent fluentd from handling records containing its own logs. | ||
<match fluentd.**> | ||
@type null | ||
</match> | ||
# expose the Fluentd metrics to Prometheus | ||
<source> | ||
@type prometheus | ||
metrics_path /metrics | ||
port 24231 | ||
</source> | ||
<source> | ||
@type prometheus_output_monitor | ||
</source> | ||
<source> | ||
@type http | ||
port 9880 | ||
bind 0.0.0.0 | ||
</source> | ||
<match kubernetes.**> | ||
@type copy | ||
<store> | ||
@type sumologic | ||
@id sumologic.endpoint.events | ||
sumo_client "k8s_2.4.0" | ||
endpoint "#{ENV['SUMO_ENDPOINT_DEFAULT_EVENTS_SOURCE']}" | ||
data_type logs | ||
disable_cookies true | ||
verify_ssl "true" | ||
proxy_uri "" | ||
compress "true" | ||
compress_encoding "gzip" | ||
<buffer> | ||
@type file | ||
path /fluentd/buffer/events | ||
@include buffer.output.conf | ||
</buffer> | ||
</store> | ||
</match> | ||
<system> | ||
log_level info | ||
</system> | ||
buffer.output.conf: | | ||
compress "gzip" | ||
flush_interval "5s" | ||
flush_thread_count "8" | ||
chunk_limit_size "1m" | ||
total_limit_size "128m" | ||
queued_chunks_limit_size "128" | ||
overflow_action drop_oldest_chunk | ||
retry_max_interval "10m" | ||
retry_forever "true" |
7 changes: 7 additions & 0 deletions
7
tests/helm/events/static/watchResourceEventsOverrides_apiServerUrl.input.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
fluentd: | ||
apiServerUrl: "https://kubernetes.default.svc:443" | ||
events: | ||
enabled: true | ||
watchResourceEventsOverrides: | ||
pods: "v2" | ||
events: "events.k8s.io/v3" |
Oops, something went wrong.