nginx-logging-demo

by Helm

Helm chartv2.5.0App 2.5.0

A Demo application for the logging-operator

About this chart

Logging Operator Nginx DemoApp with Minio (local S3-compatible object store) output

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/nginx-logging-demo

Introduction

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

Prerequisites

Installing the Chart

To install the chart with the release name log-test-nginx:

$ helm install --name log-test-nginx banzaicloud-stable/nginx-logging-demo

Uninstalling the Chart

To uninstall/delete the log-test-nginx deployment:

$ helm delete log-test-nginx

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 nginx-logging-demo chart and their default values.

ParameterDescriptionDefault
image.repositoryContainer image repositorynginx
image.tagContainer image tagstable
image.pullPolicyContainer pull policyIfNotPresent
nameOverrideOverride name of app``
fullnameOverrideOverride full name of app``
affinityNode Affinity{}
resourcesCPU/Memory resource requests/limits{}
tolerationsNode Toleration[]
nodeSelectorDefine which Nodes the Pods are scheduled on.{}
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.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``

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/nginx-logging-demo

Tip: You can use the default values.yaml

Deploy nginx-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 nginx-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 chartnginx-logging-demo is pinned at v2.5.0 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