logging-operator
by Kube logging
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
| Key | Type | Default | Description |
|---|---|---|---|
| replicaCount | int | 1 | |
| image.repository | string | "ghcr.io/kube-logging/logging-operator" | Name of the image repository to pull the container image from. |
| image.tag | string | "" | Image tag override for the default value (chart appVersion). |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy for updating already existing images on a node. |
| env | list | [] | |
| volumes | list | [] | |
| volumeMounts | list | [] | |
| extraArgs[0] | string | "-enable-leader-election=true" | |
| imagePullSecrets | list | [] | |
| nameOverride | string | "" | A name in place of the chart name for app: labels. |
| fullnameOverride | string | "" | A name to substitute for the full names of resources. |
| namespaceOverride | string | "" | A namespace override for the app. |
| watchNamespace | string | "" | Namespace to watch for LoggingOperator Custom Resources. |
| annotations | object | {} | Define annotations for logging-operator pods. |
| createCustomResource | bool | false | Deploy CRDs used by Logging Operator. |
| http.port | int | 8080 | HTTP listen port number. |
| http.service | object | {"annotations":{},"clusterIP":"None","labels":{},"type":"ClusterIP"} | Service definition for query http service. |
| rbac.enabled | bool | true | Create rbac service account and roles. |
| rbac.psp.enabled | bool | true | Must be used with rbac.enabled true. If true, creates & uses RBAC resources required in the cluster with Pod Security Policies enabled. |
| rbac.psp.annotations | object | {"seccomp.security.alpha.kubernetes.io/allowedProfileNames":"docker/default,runtime/default","seccomp.security.alpha.kubernetes.io/defaultProfileName":"runtime/default"} | PSP annotations |
| monitoring.serviceMonitor.enabled | bool | false | Create a Prometheus Operator ServiceMonitor object. |
| monitoring.serviceMonitor.additionalLabels | object | {} | |
| monitoring.serviceMonitor.metricRelabelings | list | [] | |
| monitoring.serviceMonitor.relabelings | list | [] | |
| podSecurityContext | object | {} | 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/ |
| securityContext | object | {} | Container SecurityContext for Logging operator. More info |
| priorityClassName | object | {} | Operator priorityClassName. |
| serviceAccount.annotations | object | {} | Define annotations for logging-operator ServiceAccount. |
| resources | object | {} | CPU/Memory resource requests/limits |
| nodeSelector | object | {} | |
| tolerations | list | [] | Node Tolerations |
| affinity | object | {} | Node Affinity |
| podLabels | object | {} | 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartlogging-operator is pinned at v4.2.3 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