The module starts reading logs only if log-pipeline is created. Log-pipeline consists of ClusterLoggingConfig/PodLoggingConfig connected to ClusterLogDestination.
The module has 5 alerts.
The module is enabled by default in the following bundles: Default
, Managed
.
The module is disabled by default in the Minimal
bundle.
The module is configured using the ModuleConfig custom resource named log-shipper
(learn more about setting up Deckhouse…).
Example of the ModuleConfig/log-shipper
resource for configuring the module:
apiVersion: deckhouse.io/v1alpha1
kind: ModuleConfig
metadata:
name: log-shipper
spec:
version: 1
enabled: true
settings: # <-- Module parameters from the "Parameters" section below.
Parameters
Schema version: 1
- debug
Enable or disable agent debug logging. Default:
false
.Default:
false
- nodeSelector
The same as in the Pods’
spec.nodeSelector
parameter in Kubernetes.If the parameter is omitted or
false
,nodeSelector
will be determined automatically. - resourcesRequests
Max amounts of CPU and memory resources that the pod can request when selecting a node.
If the
vertical-pod-autoscaler
module is disabled, then these values become the default ones.Examples:
resourcesRequests: mode: VPA vpa: mode: Auto cpu: min: 50m max: 2 memory: min: 256Mi max: 2Gi
resourcesRequests: mode: VPA vpa: mode: Initial cpu: min: 1 max: 3000m memory: min: 1024 max: 4096
resourcesRequests: mode: Static static: cpu: 55m memory: 256Ki
- resourcesRequests.mode
Required value
Resource request management mode:
Default:
"VPA"
Allowed values:
VPA
,Static
- resourcesRequests.static
Resource request management options for the
Static
mode.- resourcesRequests.static.cpu
Required value
Configuring CPU requests.
Default:
50m
- resourcesRequests.static.memory
Required value
Configuring memory requests.
Default:
64Mi
- resourcesRequests.vpa
Resource request management options for the VPA mode.
- resourcesRequests.vpa.cpu
Required value
CPU-related parameters.
- resourcesRequests.vpa.cpu.max
The maximum value that the VPA can set for the CPU requests.
Default:
500m
- resourcesRequests.vpa.cpu.min
The minimum value that the VPA can set for the CPU requests.
Default:
50m
- resourcesRequests.vpa.memory
Required value
The amount of memory requested.
- resourcesRequests.vpa.memory.max
The maximum memory requests the VPA can set.
Default:
2048Mi
- resourcesRequests.vpa.memory.min
The minimum memory requests the VPA can set.
Default:
64Mi
- resourcesRequests.vpa.mode
Required value
The VPA usage mode.
Default:
"Initial"
Allowed values:
Initial
,Auto
- tolerations
The same as in the Pods’
spec.tolerations
parameter in Kubernetes;If the parameter is omitted or
false
,tolerations
will be determined automatically.- tolerations.effect
- tolerations.key
- tolerations.operator
- tolerations.tolerationSeconds
- tolerations.value