sumokube
Sumologic Log Collector
About this chart
SumoKube
Sumo Logic is a hosted logging platform.
Introduction
This chart adds the Sumo Logic Collector to all nodes in your cluster via a DaemonSet.
Prerequisites
- Kubernetes 1.2+ with Beta APIs enabled
Installing the Chart
To install the chart with the release name my-release, retrieve your Sumo Logic Access ID and key from using the instructions found at Sumo Logic Access Keys and run:
$ helm install --name my-release \
--set sumologic.accessId=YOUR-ID-HERE,sumologic.accessKey=YOUR-KEY-HERE <helm-repo>/sumokube
$ helm install --name my-release \
After a few minutes, you should see logs available in Sumo Logic.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release deployment:
$ helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
The following table lists the configurable parameters of the Sumokube chart and their default values.
| Parameter | Description | Default |
|---|---|---|
sumologic.accessId | Your Sumo Logic access ID key | Nil You must provide your own id |
sumologic.accessKey | Your Sumo Logic access key | Nil You must provide your own key |
sumologic.collectorName | Sumo Logic collector name | kubernetes-collector |
sumologic.categoryName | Source category name | kubernetes |
sumologic.multilineProcessingEnabled | Enable if working with multi-line messages | false |
sumologic.automaticDateParsing | Determines if timestamp information is parsed or not | true |
sumologic.forceTimeZone | Force the Source to use a specific time zone | false |
sumologic.pathExpression | Path to your container logs | /var/log/containers/*.log |
image.name | The image repository and name to pull from | sumologic/collector |
image.tag | The image tag to pull | latest |
imagePullPolicy | Image pull policy | IfNotPresent |
resources.requests.cpu | CPU resource requests | 100m |
resources.limits.cpu | CPU resource limits | 256m |
resources.requests.memory | Memory resource requests | 128Mi |
resources.limits.memory | Memory resource limits | 256Mi |
daemonset.tolerations | List of node taints to tolerate (requires Kubernetes >= 1.6) | [] |
daemonset.updateStrategy | Strategy for applying template changes (requires Kubernetes >= 1.6) | [] |
Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
$ helm install --name my-release \
--set sumologic.accessId=YOUR-ID-HERE,sumologic.accessKey=YOUR-KEY-HERE,sumologic.categoryName=my-source-category-name \
<helm-repo>/sumokube
$ helm install --name my-release \
Example of adding daemonset tolerations to run on master nodes. Requires Helm >=2.5
$ helm install --name my-release \
--set sumologic.accessId=YOUR-ID-HERE,sumologic.accessKey=YOUR-KEY-HERE,sumologic.categoryName=my-source-category-name,daemonset.tolerations[0].effect=NoSchedule,daemonset.tolerations[0].key=node-role.kubernetes.io/master \
<helm-repo>/sumokube
$ helm install --name my-release \
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 <helm-repo>/sumokube
$ helm install --name my-release -f values.yaml stable/sumokube
Tip: You can use the default values.yaml
Deploy sumokube with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has sumokube 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 chartsumokube is pinned at v1.0.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