amazon-eks-ami
amazon-eks-ami copied to clipboard
How/where to Update default kubelete config - "containerLogMaxSize"
We are seeing logs are getting rotate before we transfer the logs to logging system using fluentd, as the log size is more than 10Mi. we need to update the following default logging setting to 100Mi :
containerLogMaxSizestring | containerLogMaxSize is a quantity defining the maximum size of the container log file before it is rotated. For example: "5Mi" or "256Ki". Default: "10Mi"
reference: https://kubernetes.io/docs/reference/config-api/kubelet-config.v1beta1/
Environment:
- AWS Region: us-west-2
- Instance Type(s): cg.8xlarge
- EKS Platform version (use
aws eks describe-cluster --name <name> --query cluster.platformVersion): "eks.10" /"eks.8" - Kubernetes version (use
aws eks describe-cluster --name <name> --query cluster.version): "1.24"/"1.25" - AMI Version:
- Kernel (e.g.
uname -a): Linux ****5.10.196-185.743.amzn2.aarch64 - Release information (run
cat /etc/eks/releaseon a node):
BASE_AMI_ID="ami-******"
BUILD_TIME="Tue Oct 10 07:15:39 UTC 2023"
BUILD_KERNEL="5.10.196-185.743.amzn2.aarch64"
ARCH="aarch64"
@khushboo121 are you still having any issues? You should be able to use kubelet flag --container-log-max-size on AL2 via --kubelet-extra-args, or provide containerLogMaxSize as a value in the nodeadm kubelet config in AL2023