logging-demo

by Helm

Helm chartv3.17.10App 3.17.10

A Helm chart for Kubernetes

About this chart

Logging Operator DemoApp Application

Logging Operator is a managed centralized logging component based on fluentd and fluent-bit.

tl;dr:

$ helm repo add banzaicloud-stable https://kubernetes-charts.banzaicloud.com/
$ helm repo update
$ helm install banzaicloud-stable/logging-demo

Introduction

This chart demonstrates the use of the Logging Operator with an Log-Generator deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

Installing the Chart

To install the chart with the release name logging-demo:

$ helm install --namespace logging --name logging-demo banzaicloud-stable/logging-demo

Uninstalling the Chart

To uninstall/delete the logging-demo deployment:

$ helm delete logging-demo

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

Configuration

The following tables lists the configurable parameters of the logging-demo chart and their default values.

ParameterDescriptionDefault
nameOverrideOverride name of app``
fullnameOverrideOverride full name of app``
loggingOperator.fluentd.metrics.serviceMonitorEnable to create ServiceMonitor for Prometheus operatorfalse
loggingOperator.fluentd.metrics.prometheusAnnotationsAdd prometheus labels to fluent pods.false
loggingOperator.fluentd.metrics.portMetrics Port.``
loggingOperator.fluentd.metrics.pathMetrics Path``
loggingOperator.fluentd.metrics.timeoutScrape timeout.``
loggingOperator.fluentd.metrics.intervalScrape interval.``
loggingOperator.fluentd.logLevelFluentD loglevel fatal,error,warn,info,debug,traceinfo
loggingOperator.fluentbit.metrics.serviceMonitorEnable to create ServiceMonitor for Prometheus operatorfalse
loggingOperator.fluentbit.metrics.prometheusAnnotationsAdd prometheus labels to fluent pods.false
loggingOperator.fluentbit.metrics.portMetrics Port.``
loggingOperator.fluentbit.metrics.pathMetrics Path``
loggingOperator.fluentbit.metrics.timeoutScrape timeout.``
loggingOperator.fluentbit.metrics.intervalScrape interval.``
loggingOperator.fluentd.security.roleBasedAccessControlCreateEnable fluentd RBACtrue
loggingOperator.fluentd.security.podSecurityPolicyCreateEnable fluentd PSPtrue
loggingOperator.fluentd.security.serviceAccountSet fluentd Service Account``
loggingOperator.fluentbit.security.roleBasedAccessControlCreateEnable fluentbit RBACtrue
loggingOperator.fluentbit.security.podSecurityPolicyCreateEnable fluentbit PSPtrue
loggingOperator.fluentbit.security.serviceAccountSet fluentbit Service Account``
elasticsearch.enabledEnable ElasticSearch logging outputfalse
loki.enabledEnable Grafana Loki logging outputfalse
kafka.enabledEnable Kafka logging outputfalse
minio.enabledEnable Minio logging output and install chartfalse
cloudwatch.enabledEnable AWS Cloudwatch logging outputfalse
cloudwatch.aws.secret_keyAWS Secret Access Key``
cloudwatch.aws.access_keyAWS Access Key ID``
cloudwatch.aws.regionAWS CLoudWatch Region``
cloudwatch.aws.log_group_nameAWS CLoudWatch Log Group``
cloudwatch.aws.log_stream_nameAWS CLoudWatch Log Stream``
logdna.enabledEnable LogDNA logging outputfalse
logdna.api_keyLogDNA Api key``
logdna.hostnameHostname``
logdna.appApplication name``
logGenerator.enabledEnable Demo Log-Gen applicationtrue
loggingOperator.tls.enabledEnabled TLS communication between componentstrue
loggingOperator.tls.fluentdSecretNameSpecified secret name, which contain tls certsThis will overwrite automatic Helm certificate generation.
loggingOperator.tls.fluentbitSecretNameSpecified secret name, which contain tls certsThis will overwrite automatic Helm certificate generation.
loggingOperator.tls.sharedKeyShared key between nodes (fluentd-fluentbit)[autogenerated]

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

$ helm install --name my-release -f values.yaml banzaicloud-stable/logging-demo

Tip: You can use the default values.yaml

Deploy logging-demo with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has logging-demo on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartlogging-demo is pinned at v3.17.10 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply