Back to Charts

⚠️ Repo Archive Notice

stable/fluentd/README.md

latest6.3 KB
Original Source

⚠️ Repo Archive Notice

As of Nov 13, 2020, charts in this repo will no longer be updated. For more information, see the Helm Charts Deprecation and Archive Notice, and Update.

fluentd

Fluentd collects events from various data sources and writes them to files, RDBMS, NoSQL, IaaS, SaaS, Hadoop and so on. Fluentd helps you unify your logging infrastructure (Learn more about the Unified Logging Layer).

DEPRECATION NOTICE

This chart is deprecated and no longer supported.

TL;DR;

console
$ helm install stable/fluentd

Introduction

This chart bootstraps an fluentd deployment on a Kubernetes cluster using the Helm package manager.

Installing the Chart

To install the chart with the release name my-release:

console
$ helm install stable/fluentd --name my-release

The command deploys fluentd on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Uninstalling the Chart

To uninstall/delete the my-release deployment:

console
$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Autoscaling

By enabling autoscaling the chart will use statefulset with hpa instead of deployment with PVC. Please be noted to statefulset limitation The autoscaling is disabled by default for backward compatibility

Configuration

The following table lists the configurable parameters of the fluentd chart and their default values.

ParameterDescriptionDefault
useStatefulSetDeploy as a StatefulSet regardless of whether autoscaling is enablednil
affinitynode/pod affinities{}
configMapsFluentd configurationSee values.yaml
output.hostoutput hostelasticsearch-client.default.svc.cluster.local
output.portoutput port9200
output.schemeoutput schemehttp
output.sslVersionoutput ssl versionTLSv1
output.buffer_chunk_limitoutput buffer chunk limit2M
output.buffer_queue_limitoutput buffer queue limit8
deployment.labelsAdditional labels for pods{}
image.pullPolicyImage pull policyIfNotPresent
image.repositoryImage repositorygcr.io/google-containers/fluentd-elasticsearch
image.tagImage tagv2.4.0
imagePullSecretsSpecify image pull secretsnil (does not add image pull secrets to deployed pods)
extraEnvVarsAdds additional environment variables to the deployment (in yaml syntax){} See values.yaml
extraVolumeMountsMount extra volumes (in yaml syntax)`` See values.yaml
extraVolumesExtra volumes (in yaml syntax)`` See values.yaml
ingress.enabledenable ingressfalse
ingress.labelslist of labels for the ingress ruleSee values.yaml
ingress.annotationslist of annotations for the ingress rulekubernetes.io/ingress.class: nginx See values.yaml
ingress.hostshost definition for ingressSee values.yaml
ingress.tlstls rules for ingressSee values.yaml
nodeSelectornode labels for pod assignment{}
replicaCountdesired number of pods1 ???
resourcespod resource requests & limits{}
plugins.enabledEnable Plugins Installationfalse
plugins.pluginsListList of plugins to install[]
rbac.createSpecifies whether RBAC resources should be createdtrue
serviceAccount.createSpecifies whether a service account should be created.true
serviceAccount.nameName of the service account.
priorityClassNamepriorityClassNamenil
service.loadBalancerIPIf service.type is LoadBalancer set custom IP load balancer IP addressnil
service.portsport definition for the serviceSee values.yaml
service.typetype of serviceClusterIP
service.annotationslist of annotations for the service{}
tolerationsList of node taints to tolerate[]
persistence.enabledEnable buffer persistencefalse
persistence.accessModeAccess mode for buffer persistenceReadWriteOnce
persistence.sizeVolume size for buffer persistence10Gi
autoscaling.enabledSet this to true to enable autoscalingfalse
autoscaling.minReplicasSet minimum number of replicas2
autoscaling.maxReplicasSet maximum number of replicas5
autoscaling.metricsmetrics used for autoscalingSee values.yaml
terminationGracePeriodSecondsOptional duration in seconds the pod needs to terminate gracefully30
metrics.enabledSet this to true to enable Prometheus metrics HTTP endpointfalse
metrics.service.portPrometheus metrics HTTP endpoint port24231
metrics.serviceMonitor.enabledSet this to true to create ServiceMonitor for Prometheus operatorfalse
metrics.serviceMonitor.additionalLabelsAdditional labels that can be used so ServiceMonitor will be discovered by Prometheus{}
metrics.serviceMonitor.namespaceOptional namespace in which to create ServiceMonitornil
metrics.serviceMonitor.intervalScrape interval. If not set, the Prometheus default scrape interval is usednil
metrics.serviceMonitor.scrapeTimeoutScrape timeout. If not set, the Prometheus default scrape timeout is usednil

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

console
$ helm install stable/fluentd --name my-release \
  --set=image.tag=v0.0.2,resources.limits.cpu=200m

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

console
$ helm install stable/fluentd --name my-release -f values.yaml

Tip: You can use the default values.yaml