Code Monkey home page Code Monkey logo

fluentd-kubernetes-cloudwatch's Introduction

Fluentd image to send Kubernetes logs to CloudWatch

Deployment

  1. Create AWS IAM user which has permission to store logs to CloudWatch

  2. Optionally set environment variable to change the default resource names and labels

  • NAMESPACE defaults to 'kube-system'
  • APP_NAME defaults to 'fluentd-cloudwatch'
  • SECRET_NAME,CONFIG_NAME default to APP_NAME
  • ENV_NAME defaults to 'system'
  • CW_LOG_GROUP defaults to 'kubernetes-cluster'
  1. Set environment variables for the AWS IAM user and CloudWatch region or set them just when running deploy.sh in the next step
export LOGGING_AWS_ACCESS_KEY_ID=<your key>
export LOGGING_AWS_SECRET_ACCESS_KEY=<your secret>
export LOGGING_AWS_REGION=<your region>
  1. Run deploy.sh to create the Secret, ConfigMap, and DaemonSet, setting the AWS IAM user and CloudWatch region environments variables if you did not export them in the previous step.
LOGGING_AWS_ACCESS_KEY_ID=<your key> LOGGING_AWS_SECRET_ACCESS_KEY=<your secret> LOGGING_AWS_REGION=<your region> ./deploy.sh
  1. Run display.sh to check everything is running

Removal

  1. If you set custom values for the namespace or resource name environment variables, ensure they are still set to your values (NAMESPACE,APP_NAME,SECRET_NAME,CONFIG_NAME)

  2. Run delete.sh

  3. Run display.sh to check nothing is left

fluentd-kubernetes-cloudwatch's People

Contributors

whereisaaron avatar eljasala avatar

Watchers

Tuan Anh Tran avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.