fcos-podman: Set max size for logging to 50m
By default podman containers can write unlimited bytes of log and evenrually fill up the disk nodes. Set the max size per containers to 50MB. story: 2007402 task: 39001 Change-Id: I155b7146b7175d95b219897b84f4580091e5975e Signed-off-by: Spyros Trigazis <strigazi@gmail.com>
This commit is contained in:
parent
78435e4ff8
commit
9d543960d2
@ -35,6 +35,19 @@ storage:
|
||||
group:
|
||||
name: root
|
||||
files:
|
||||
- path: /etc/containers/libpod.conf
|
||||
# 420 (decimal) == 644 (octal)
|
||||
mode: 420
|
||||
user:
|
||||
name: root
|
||||
group:
|
||||
name: root
|
||||
contents:
|
||||
inline: |
|
||||
# Maximum size of log files (in bytes)
|
||||
# -1 is unlimited
|
||||
# 50m
|
||||
max_log_size = 52428800
|
||||
- path: /etc/hostname
|
||||
# 420 (decimal) == 644 (octal)
|
||||
mode: 420
|
||||
|
@ -46,6 +46,20 @@
|
||||
}
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"group": {
|
||||
"name": "root"
|
||||
},
|
||||
"path": "/etc/containers/libpod.conf",
|
||||
"user": {
|
||||
"name": "root"
|
||||
},
|
||||
"contents": {
|
||||
"source": "data:,%23%20Maximum%20size%20of%20log%20files%20(in%20bytes)%0A%23%20-1%20is%20unlimited%0A%23%2050m%0Amax_log_size%20%3D%2052428800%0A",
|
||||
"verification": {}
|
||||
},
|
||||
"mode": 420
|
||||
},
|
||||
{
|
||||
"group": {
|
||||
"name": "root"
|
||||
|
Loading…
Reference in New Issue
Block a user