logrotate

package
v1.95.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 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