Skip to content

Commit

Permalink
Customize for Doc Cloud.
Browse files Browse the repository at this point in the history
Use Kubernetes mounted ca_file.
Filter out blank lines.
  • Loading branch information
cdmurph32 committed Mar 1, 2019
1 parent 45a0be0 commit 3d6dafc
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Helm, maintained by the CNCF, allows the Kubernetes administrator to install, up
To install and configure defaults with Helm:

```
$ helm install --name my-release -f my_values.yaml https://github.com/splunk/splunk-connect-for-kubernetes/releases/download/v1.0.1/splunk-connect-for-kubernetes-1.0.1.tgz
$ helm install --name my-release -f my_values.yaml https://github.com/adobe-platform/splunk-connect-for-kubernetes/releases/download/v1.0.2/splunk-connect-for-kubernetes-1.0.2.tgz
```

To learn more about using and modifying charts, see:
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/splunk-connect-for-kubernetes/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: splunk-connect-for-kubernetes
version: 1.0.1
version: 1.0.2
description: Collect logs, objects (metadata), and metrics with Splunk.
home: https://github.com/splunk/splunk-connect-for-kubernetes/tree/master/helm-chart
sources:
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/splunk-kubernetes-logging/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
version: 1.0.1
version: 1.0.2
name: splunk-kubernetes-logging
description: Collect logs with Splunk.
home: https://github.com/splunk/splunk-connect-for-kubernetes/tree/master/helm-chart/charts/splunk-kubernetes-logging
Expand Down
8 changes: 8 additions & 0 deletions helm-chart/splunk-kubernetes-logging/templates/configMap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,14 @@ data:
output.conf: |-
<label @SPLUNK>
# filter to remove empty lines
<filter tail.containers.**>
@type grep
<exclude>
key log
pattern ^$
</exclude>
</filter>
# = filters for container logs =
{{- range $name, $logDef := .Values.logs }}
{{- if and $logDef.from.pod $logDef.multiline }}
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/splunk-kubernetes-metrics/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
version: 1.0.1
version: 1.0.2
name: splunk-kubernetes-metrics
description: Collect metrics with Splunk.
home: https://github.com/splunk/splunk-connect-for-kubernetes/tree/master/helm-chart/charts/splunk-kubernetes-metrics
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/splunk-kubernetes-objects/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
version: 1.0.1
version: 1.0.2
name: splunk-kubernetes-objects
description: Collect Kubernetes objects with Splunk.
home: https://github.com/splunk/splunk-connect-for-kubernetes/tree/master/helm-chart/charts/splunk-kubernetes-objects
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ data:
{{- if $.Values.kubernetes.clientKey }}
client_key /fluentd/etc/splunk/k8s_client_key
{{- end }}
{{- if $.Values.kubernetes.caFile }}
ca_file /fluentd/etc/splunk/k8s_ca_file
{{- end }}
ca_file /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
{{- with $.Values.kubernetes.bearerTokenFile }}
bearer_token_file {{ . }}
{{- end }}
Expand Down

0 comments on commit 3d6dafc

Please sign in to comment.