Score:0

Is it possible to configure logrotation with Kubernetes manifest file?

cz flag

I have a Kubernetes cluster on AWS(EKS).

Each pod has a container that runs my application which drops huge log files.

The containers have NFS mounted, so I want to use logrotate to preserve the logfiles.

Can I configure kustomization.yaml file to create custom rules inside /etc/logrotate.d of the pods?

Lunartist avatar
cz flag
I think I can do this by creating a Configmap that includes logrotate rule file, and deploy it at `/etc/logroate.d`. But is there a better way?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.