nginx-logging-cw-demo
by Helm
A Demo application for the logging-operator AWS CloudWatch backend
About this chart
Logging Operator Nginx DemoApp with AWS CloudWatch 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-cw-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-cw-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-cw-demo chart and their default values.
| Parameter | Description | Default |
|---|---|---|
aws.secret_key | AWS Secret Access Key | `` |
aws.access_key | AWS Access Key ID | `` |
aws.region | AWS CLoudWatch Region | `` |
aws.log_group_name | AWS CLoudWatch Log Group | `` |
aws.log_stream_name | AWS CLoudWatch Log Stream | `` |
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 Toleration | [] |
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 labels 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 labels 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. | `` |
loggingOperator.fluentd.security.roleBasedAccessControlCreate | Enable fluentd RBAC | true |
loggingOperator.fluentd.security.podSecurityPolicyCreate | Enable fluentd PSP | true |
loggingOperator.fluentd.security.serviceAccount | Set fluentd Service Account | `` |
loggingOperator.fluentbit.security.roleBasedAccessControlCreate | Enable fluentbit RBAC | true |
loggingOperator.fluentbit.security.podSecurityPolicyCreate | Enable fluentbit PSP | true |
loggingOperator.fluentbit.security.serviceAccount | Set 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-cw-demo
Tip: You can use the default values.yaml
Deploy nginx-logging-cw-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-cw-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-cw-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