Public | Automated Build

Last pushed: 9 months ago
Short Description
Fluentd image to send Kuberntes logs to CloudWatch
Full Description

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>
    
  2. 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
    
  3. 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

Docker Pull Command
Owner
callstats