logrotate

package
v1.81.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2023 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(pathConfig, pathLogFiles, prefix string) ([]extensionsv1alpha1.Unit, []extensionsv1alpha1.File)

Config returns the content for logrotate units and files. Whenever logrotate is ran, this config will:

  • keep only 14 old (rotated) logs, and will discard older logs.

Prefix carries the target container runtime (such as containerd, docker). When containerd is used the log rotation based on size is performed by kubelet.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL