logging-operator

by Helm

Helm chartv3.17.10App 3.17.10

A Helm chart to install Banzai Cloud logging-operator

About this chart

Logging operator Chart

Logging operator Managed centralized logging component fluentd and fluent-bit instance on cluster.

tl;dr:

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

Introduction

This chart bootstraps a Logging Operator deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.8+ with Beta APIs enabled

Installing the Chart

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

$ helm install --name my-release banzaicloud-stable/logging-operator

CRDs

Use createCustomResource=false with Helm v3 to avoid trying to create CRDs from the crds folder and from templates at the same time.

The command deploys Logging operator on the Kubernetes cluster with 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:

$ helm delete my-release

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

Configuration

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

ParameterDescriptionDefault
image.repositoryContainer image repositoryghcr.io/banzaicloud/logging-operator
image.tagContainer image tag3.17.10
image.pullPolicyContainer pull policyIfNotPresent
nameOverrideOverride name of app``
fullnameOverrideOverride full name of app``
namespaceOverrideOverride namespace of app``
watchNamespaceNamespace to watch for LoggingOperator CRD``
rbac.enabledCreate rbac service account and rolestrue
rbac.psp.enabledMust be used with rbac.enabled true. If true, creates & uses RBAC resources required in the cluster with Pod Security Policies enabled.false
priorityClassNameOperator priorityClassName{}
affinityNode Affinity{}
resourcesCPU/Memory resource requests/limits{}
tolerationsNode Tolerations[]
nodeSelectorDefine which Nodes the Pods are scheduled on.{}
podLabelsDefine custom labels for logging-operator pods{}
annotationsDefine annotations for logging-operator pods{}
podSecurityContextPod SecurityContext for Logging operator. More info{"runAsNonRoot": true, "runAsUser": 1000, "fsGroup": 2000}
securityContextContainer SecurityContext for Logging operator. More info{"allowPrivilegeEscalation": false, "readOnlyRootFilesystem": true}
createCustomResourceCreate CRDs.true
monitoring.serviceMonitor.enabledCreate Prometheus Operator servicemonitor.false
serviceAccount.annotationsDefine annotations for logging-operator ServiceAccount{}

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-operator

Tip: You can use the default values.yaml

Installing Fluentd and Fluent-bit via logging

The previous chart does not install logging resource to deploy Fluentd and Fluent-bit on cluster. To install them please use the Logging Operator Logging chart.

tl;dr:

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

Configuration

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

tl;dr:

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

Configuration

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

ParameterDescriptionDefault
tls.enabledEnabled TLS communication between componentstrue
tls.fluentdSecretNameSpecified secret name, which contain tls certsThis will overwrite automatic Helm certificate generation.
tls.fluentbitSecretNameSpecified secret name, which contain tls certsThis will overwrite automatic Helm certificate generation.
tls.sharedKeyShared key between nodes (fluentd-fluentbit)[autogenerated]
fluentbit.enabledInstall fluent-bittrue
fluentbit.namespaceSpecified fluentbit installation namespacesame as operator namespace
fluentbit.image.tagFluentbit container image tag1.9.5
fluentbit.image.repositoryFluentbit container image repositoryfluent/fluent-bit
fluentbit.image.pullPolicyFluentbit container pull policyIfNotPresent
fluentd.enabledInstall fluentdtrue
fluentd.image.tagFluentd container image tagv1.14.6-alpine-5
fluentd.image.repositoryFluentd container image repositoryghcr.io/banzaicloud/fluentd
fluentd.image.pullPolicyFluentd container pull policyIfNotPresent
fluentd.volumeModImage.tagFluentd volumeModImage container image taglatest
fluentd.volumeModImage.repositoryFluentd volumeModImage container image repositorybusybox
fluentd.volumeModImage.pullPolicyFluentd volumeModImage container pull policyIfNotPresent
fluentd.configReloaderImage.tagFluentd configReloaderImage container image tagv0.2.2
fluentd.configReloaderImage.repositoryFluentd configReloaderImage container image repositoryjimmidyson/configmap-reload
fluentd.configReloaderImage.pullPolicyFluentd configReloaderImage container pull policyIfNotPresent
fluentd.fluentdPvcSpec.accessModesFluentd persistence volume access modes[ReadWriteOnce]
fluentd.fluentdPvcSpec.resources.requests.storageFluentd persistence volume size21Gi
fluentd.fluentdPvcSpec.storageClassNameFluentd persistence volume storageclass"""

Deploy logging-operator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has logging-operator 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-operator 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