Azure / AKS-Edge

Welcome to the Azure Kubernetes Service (AKS) Edge repo.
MIT License
53 stars 34 forks source link

[Feature] Expose log rotation configuration #146

Closed EliiseS closed 9 months ago

EliiseS commented 9 months ago

Is your feature request related to a problem? Please describe.

I'd like to be able to rotate the logs generated by K8s to avoid filing up my log volume. This issue is mitigated by setting the Machines[].LinuxNode.LogSizeInGB to a higher value, however still depending on the amount of logs produced by the cluster, this limit can also be reached. And given a VM with a limited disk size, this setting may not be as effective.

Describe the solution you'd like

Expose the log rotation configuration as an option within the AKS EE config, as seen here: Logging Architecture | Kubernetes

Describe alternatives you've considered

fcabrera23 commented 9 months ago

Hi @EliiseS,

If you want to change the logging settings, you can do it by changing the Kubelet configuration settings. You can use the Copy-AksEdgeNodeFile and Invoke-AksEdgeNode commands to change the settings and apply the new ones.

Thanks, Francisco