sumokube

by joaquinito2051

Helm chartv1.0.0App latest

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.

ParameterDescriptionDefault
sumologic.accessIdYour Sumo Logic access ID keyNil You must provide your own id
sumologic.accessKeyYour Sumo Logic access keyNil You must provide your own key
sumologic.collectorNameSumo Logic collector namekubernetes-collector
sumologic.categoryNameSource category namekubernetes
sumologic.multilineProcessingEnabledEnable if working with multi-line messagesfalse
sumologic.automaticDateParsingDetermines if timestamp information is parsed or nottrue
sumologic.forceTimeZoneForce the Source to use a specific time zonefalse
sumologic.pathExpressionPath to your container logs/var/log/containers/*.log
image.nameThe image repository and name to pull fromsumologic/collector
image.tagThe image tag to pulllatest
imagePullPolicyImage pull policyIfNotPresent
resources.requests.cpuCPU resource requests100m
resources.limits.cpuCPU resource limits256m
resources.requests.memoryMemory resource requests128Mi
resources.limits.memoryMemory resource limits256Mi
daemonset.tolerationsList of node taints to tolerate (requires Kubernetes >= 1.6)[]
daemonset.updateStrategyStrategy 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartsumokube is pinned at v1.0.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