-
Create AWS IAM user which has permission to store logs to CloudWatch
-
Optionally set environment variable to change the default resource names and labels
NAMESPACEdefaults to 'kube-system'APP_NAMEdefaults to 'fluentd-cloudwatch'SECRET_NAME,CONFIG_NAMEdefault toAPP_NAMEENV_NAMEdefaults to 'system'CW_LOG_GROUPdefaults to 'kubernetes-cluster'
- Set environment variables for the AWS IAM user and CloudWatch region or set them just when running
deploy.shin 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.shto 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.shto 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.shto check nothing is left