logging-operator

by Kube logging

Helm chartv4.2.3App 4.2.2Verified publisher

Logging operator for Kubernetes based on Fluentd and Fluentbit.

About this chart

logging-operator

Logging operator for Kubernetes based on Fluentd and Fluentbit.

Homepage: https://kube-logging.github.io

TL;DR;

helm repo add kube-logging https://kube-logging.github.io/helm-charts
helm install --generate-name --wait kube-logging/logging-operator

Introduction

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

Prerequisites

  • Kubernetes 1.19+

Installing CRDs

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

Values

KeyTypeDefaultDescription
replicaCountint1
image.repositorystring"ghcr.io/kube-logging/logging-operator"Name of the image repository to pull the container image from.
image.tagstring""Image tag override for the default value (chart appVersion).
image.pullPolicystring"IfNotPresent"Image pull policy for updating already existing images on a node.
envlist[]
volumeslist[]
volumeMountslist[]
extraArgs[0]string"-enable-leader-election=true"
imagePullSecretslist[]
nameOverridestring""A name in place of the chart name for app: labels.
fullnameOverridestring""A name to substitute for the full names of resources.
namespaceOverridestring""A namespace override for the app.
watchNamespacestring""Namespace to watch for LoggingOperator Custom Resources.
annotationsobject{}Define annotations for logging-operator pods.
createCustomResourceboolfalseDeploy CRDs used by Logging Operator.
http.portint8080HTTP listen port number.
http.serviceobject{"annotations":{},"clusterIP":"None","labels":{},"type":"ClusterIP"}Service definition for query http service.
rbac.enabledbooltrueCreate rbac service account and roles.
rbac.psp.enabledbooltrueMust be used with rbac.enabled true. If true, creates & uses RBAC resources required in the cluster with Pod Security Policies enabled.
rbac.psp.annotationsobject{"seccomp.security.alpha.kubernetes.io/allowedProfileNames":"docker/default,runtime/default","seccomp.security.alpha.kubernetes.io/defaultProfileName":"runtime/default"}PSP annotations
monitoring.serviceMonitor.enabledboolfalseCreate a Prometheus Operator ServiceMonitor object.
monitoring.serviceMonitor.additionalLabelsobject{}
monitoring.serviceMonitor.metricRelabelingslist[]
monitoring.serviceMonitor.relabelingslist[]
podSecurityContextobject{}Pod SecurityContext for Logging operator. More info # SecurityContext holds pod-level security attributes and common container settings. # This defaults to non root user with uid 1000 and gid 2000. *v1.PodSecurityContext false # ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
securityContextobject{}Container SecurityContext for Logging operator. More info
priorityClassNameobject{}Operator priorityClassName.
serviceAccount.annotationsobject{}Define annotations for logging-operator ServiceAccount.
resourcesobject{}CPU/Memory resource requests/limits
nodeSelectorobject{}
tolerationslist[]Node Tolerations
affinityobject{}Node Affinity
podLabelsobject{}Define which Nodes the Pods are scheduled on.

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.

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 v4.2.3 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