Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.94 KB

File metadata and controls

48 lines (35 loc) · 1.94 KB

td-agent-barito-kubernetes

This repository contains the source files needed to make a Docker image that collects Docker container log files using td-agent and sends them to Barito.

This image is designed to be used as a daemonset in a Kubernetes cluster. Every new version will be pushed to Barito Docker Hub

Because there are additional configurations that have to be made, this image full functionality can only be realized when you install it using our helm chart.

Usage

Sign in to BaritoMarket and find your Application Group. Barito Application Group Secret and Produce URL will be displayed, make note of those details.

Install Helm Chart

  1. Add our helm chart repo
helm repo add barito https://baritolog.github.io/helm-charts
  1. Create a custom yaml containing helm chart values to specify app that you want its logs to be forwarded, example:
# myApps.yaml
defaultAppOptions:
  applicationGroupSecret: abc
  produceUrl: https://barito-router.my-domain.com/produce_batch
apps:
  - name: my-app-1
    baritoAppName: My App 1
  - name: my-app-2
    baritoAppName: My App 2
  - name: my-app-3
    baritoAppName: My App 3
    applicationGroupSecret: xyz
    produceUrl: https://barito-router.other-domain.com/produce_batch

name is metadata name of your deployment

  1. Install using helm
helm install barito/td-agent-barito --name=td-agent-barito --values=myApps.yaml

Override rbac.create when installing: --set rbac.create=true if you are using RBAC authorization.

Notes

If not specified, DaemonSet will have memory limits of 1 Gi and memory requests 512Mi. Use --set resources.limits.memory=XX or --set resources.requests.memory=XX to override.