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.
Click to show internal directories.
Click to hide internal directories.