diff --git a/magnum/drivers/k8s_fedora_coreos_v1/templates/fcct-config.yaml b/magnum/drivers/k8s_fedora_coreos_v1/templates/fcct-config.yaml index cfe145880f..bbb361b66c 100644 --- a/magnum/drivers/k8s_fedora_coreos_v1/templates/fcct-config.yaml +++ b/magnum/drivers/k8s_fedora_coreos_v1/templates/fcct-config.yaml @@ -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 diff --git a/magnum/drivers/k8s_fedora_coreos_v1/templates/user_data.json b/magnum/drivers/k8s_fedora_coreos_v1/templates/user_data.json index 42fa5e4659..85ba9e5a8f 100644 --- a/magnum/drivers/k8s_fedora_coreos_v1/templates/user_data.json +++ b/magnum/drivers/k8s_fedora_coreos_v1/templates/user_data.json @@ -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"