Skip to content

Commit

Permalink
Make max container log line size configurable through cloud init.
Browse files Browse the repository at this point in the history
Signed-off-by: Lantao Liu <lantaol@google.com>
  • Loading branch information
Random-Liu committed Jun 20, 2018
1 parent e3d57d2 commit b5d053f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cluster/gce/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ if [ -n "${network_policy_provider}" ] && [ "${network_policy_provider}" != "non
cni_template_path=""
fi
log_level="${CONTAINERD_LOG_LEVEL:-"info"}"
max_container_log_line="${CONTAINERD_MAX_CONTAINER_LOG_LINE:-16384}"
cat > ${config_path} <<EOF
# Kubernetes doesn't use containerd restart manager.
disabled_plugins = ["restart"]
Expand All @@ -165,6 +166,8 @@ disabled_plugins = ["restart"]
shim = "${CONTAINERD_HOME}/usr/local/bin/containerd-shim"
runtime = "${CONTAINERD_HOME}/usr/local/sbin/runc"
[plugins.cri]
max_container_log_line_size = ${max_container_log_line}
[plugins.cri.cni]
bin_dir = "${cni_bin_dir}"
conf_dir = "/etc/cni/net.d"
Expand Down

0 comments on commit b5d053f

Please sign in to comment.