From 2857df524bb018a104785062b9b5722ff9f0731f Mon Sep 17 00:00:00 2001 From: Jiahui <4543bxy@gmail.com> Date: Tue, 16 Jan 2024 19:59:00 +0800 Subject: [PATCH] optimize default kube runtime config; (#4487) --- pkg/runtime/kubernetes/types/default_kubeadm_config.go | 4 ++-- scripts/cloud/build-offline-tar.sh | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pkg/runtime/kubernetes/types/default_kubeadm_config.go b/pkg/runtime/kubernetes/types/default_kubeadm_config.go index 02e5e8b3efb..2f754e953b1 100644 --- a/pkg/runtime/kubernetes/types/default_kubeadm_config.go +++ b/pkg/runtime/kubernetes/types/default_kubeadm_config.go @@ -131,7 +131,7 @@ enforceNodeAllocatable: eventBurst: 10 eventRecordQPS: 5 evictionHard: - imagefs.available: 15% + imagefs.available: 10% memory.available: 100Mi nodefs.available: 10% nodefs.inodesFree: 5% @@ -143,7 +143,7 @@ healthzBindAddress: 0.0.0.0 healthzPort: 10248 httpCheckFrequency: 20s imageGCHighThresholdPercent: 85 -imageGCLowThresholdPercent: 80 +imageGCLowThresholdPercent: 75 imageMinimumGCAge: 2m0s iptablesDropBit: 15 iptablesMasqueradeBit: 14 diff --git a/scripts/cloud/build-offline-tar.sh b/scripts/cloud/build-offline-tar.sh index 30c3d292ae2..93f3bd7c274 100644 --- a/scripts/cloud/build-offline-tar.sh +++ b/scripts/cloud/build-offline-tar.sh @@ -50,11 +50,12 @@ mkdir -p output/scripts echo ' #!/bin/bash +cp cli/sealos /usr/local/bin + for file in tars/*.tar; do - sealos load -i $file + /usr/local/bin/sealos load -i $file done -cp cli/sealos /usr/local/bin ' > output/scripts/load-images.sh curl -sfL https://raw.githubusercontent.com/labring/sealos/${CLOUD_VERSION}/scripts/cloud/install.sh -o output/scripts/install.sh