-
Create AWS IAM user which has permission to store logs to CloudWatch
-
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 toAPP_NAME
ENV_NAME
defaults to 'system'CW_LOG_GROUP
defaults to 'kubernetes-cluster'
- 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>
- 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
- Run
display.sh
to check everything is running
-
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
) -
Run
delete.sh
-
Run
display.sh
to check nothing is left