logging-demo
by Helm
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
- Logging Operator available on the cluster
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.
| Parameter | Description | Default |
|---|---|---|
nameOverride | Override name of app | `` |
fullnameOverride | Override full name of app | `` |
loggingOperator.fluentd.metrics.serviceMonitor | Enable to create ServiceMonitor for Prometheus operator | false |
loggingOperator.fluentd.metrics.prometheusAnnotations | Add prometheus labels to fluent pods. | false |
loggingOperator.fluentd.metrics.port | Metrics Port. | `` |
loggingOperator.fluentd.metrics.path | Metrics Path | `` |
loggingOperator.fluentd.metrics.timeout | Scrape timeout. | `` |
loggingOperator.fluentd.metrics.interval | Scrape interval. | `` |
loggingOperator.fluentd.logLevel | FluentD loglevel fatal,error,warn,info,debug,trace | info |
loggingOperator.fluentbit.metrics.serviceMonitor | Enable to create ServiceMonitor for Prometheus operator | false |
loggingOperator.fluentbit.metrics.prometheusAnnotations | Add prometheus labels to fluent pods. | false |
loggingOperator.fluentbit.metrics.port | Metrics Port. | `` |
loggingOperator.fluentbit.metrics.path | Metrics Path | `` |
loggingOperator.fluentbit.metrics.timeout | Scrape timeout. | `` |
loggingOperator.fluentbit.metrics.interval | Scrape interval. | `` |
loggingOperator.fluentd.security.roleBasedAccessControlCreate | Enable fluentd RBAC | true |
loggingOperator.fluentd.security.podSecurityPolicyCreate | Enable fluentd PSP | true |
loggingOperator.fluentd.security.serviceAccount | Set fluentd Service Account | `` |
loggingOperator.fluentbit.security.roleBasedAccessControlCreate | Enable fluentbit RBAC | true |
loggingOperator.fluentbit.security.podSecurityPolicyCreate | Enable fluentbit PSP | true |
loggingOperator.fluentbit.security.serviceAccount | Set fluentbit Service Account | `` |
elasticsearch.enabled | Enable ElasticSearch logging output | false |
loki.enabled | Enable Grafana Loki logging output | false |
kafka.enabled | Enable Kafka logging output | false |
minio.enabled | Enable Minio logging output and install chart | false |
cloudwatch.enabled | Enable AWS Cloudwatch logging output | false |
cloudwatch.aws.secret_key | AWS Secret Access Key | `` |
cloudwatch.aws.access_key | AWS Access Key ID | `` |
cloudwatch.aws.region | AWS CLoudWatch Region | `` |
cloudwatch.aws.log_group_name | AWS CLoudWatch Log Group | `` |
cloudwatch.aws.log_stream_name | AWS CLoudWatch Log Stream | `` |
logdna.enabled | Enable LogDNA logging output | false |
logdna.api_key | LogDNA Api key | `` |
logdna.hostname | Hostname | `` |
logdna.app | Application name | `` |
logGenerator.enabled | Enable Demo Log-Gen application | true |
loggingOperator.tls.enabled | Enabled TLS communication between components | true |
loggingOperator.tls.fluentdSecretName | Specified secret name, which contain tls certs | This will overwrite automatic Helm certificate generation. |
loggingOperator.tls.fluentbitSecretName | Specified secret name, which contain tls certs | This will overwrite automatic Helm certificate generation. |
loggingOperator.tls.sharedKey | Shared 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartlogging-demo is pinned at v3.17.10 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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