Commit 33b5d965 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #33197 from adityakali/core

Automatic merge from submit-queue Reset core_patern on GCI The default core_pattern pipes the core dumps to /sbin/crash_reporter which is more restrictive in saving crash dumps. So for now, set a generic core_pattern that users can work with. @dchen1107 @aulanov can you please review? cc/ @kubernetes/goog-image
parents b2aed325 d54db341
...@@ -25,6 +25,13 @@ set -o errexit ...@@ -25,6 +25,13 @@ set -o errexit
set -o nounset set -o nounset
set -o pipefail set -o pipefail
function setup-os-params {
# Reset core_pattern. On GCI, the default core_pattern pipes the core dumps to
# /sbin/crash_reporter which is more restrictive in saving crash dumps. So for
# now, set a generic core_pattern that users can work with.
echo "core.%e.%p.%t" > /proc/sys/kernel/core_pattern
}
function config-ip-firewall { function config-ip-firewall {
echo "Configuring IP firewall rules" echo "Configuring IP firewall rules"
# The GCI image has host firewall which drop most inbound/forwarded packets. # The GCI image has host firewall which drop most inbound/forwarded packets.
...@@ -1182,6 +1189,7 @@ if [[ -n "${KUBE_USER:-}" ]]; then ...@@ -1182,6 +1189,7 @@ if [[ -n "${KUBE_USER:-}" ]]; then
fi fi
fi fi
setup-os-params
config-ip-firewall config-ip-firewall
create-dirs create-dirs
setup-kubelet-dir setup-kubelet-dir
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment