nginx-logging-es-demo
by Helm
A Demo application for the logging-operator
About this chart
Logging Operator Nginx & Elasticsearch output demonstration Chart
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-es-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
- Logging Operator available on the cluster
Installing the Chart
To install the chart with the release name log-test-nginx:
$ helm install --name log-test-nginx banzaicloud-stable/nginx-logging-es-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-es-demo chart and their default values.
| Parameter | Description | Default |
|---|---|---|
image.repository | Container image repository | nginx |
image.tag | Container image tag | stable |
image.pullPolicy | Container pull policy | IfNotPresent |
nameOverride | Override name of app | `` |
fullnameOverride | Override full name of app | `` |
affinity | Node Affinity | {} |
resources | CPU/Memory resource requests/limits | {} |
tolerations | Node Tolerations | [] |
nodeSelector | Define which Nodes the Pods are scheduled on. | {} |
loggingOperator.fluentd.metrics.serviceMonitor | Enable to create ServiceMonitor for Prometheus operator | false |
loggingOperator.fluentd.metrics.prometheusAnnotations | Add prometheus labes 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.fluentbit.metrics.serviceMonitor | Enable to create ServiceMonitor for Prometheus operator | false |
loggingOperator.fluentbit.metrics.prometheusAnnotations | Add prometheus labes 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. | `` |
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-es-demo
Tip: You can use the default values.yaml
Deploy nginx-logging-es-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-es-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 chartnginx-logging-es-demo is pinned at v2.5.0 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