Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
b2a60dc9
Commit
b2a60dc9
authored
May 25, 2017
by
David Ashpole
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
By default, Disable LowDiskSpaceThresholdMB, and enable eviciton for disk
parent
079020f5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
9 deletions
+2
-9
config-default.sh
cluster/vagrant/config-default.sh
+0
-2
config-test.sh
cluster/vagrant/config-test.sh
+0
-2
local-up-cluster.sh
hack/local-up-cluster.sh
+1
-1
defaults.go
pkg/apis/componentconfig/v1alpha1/defaults.go
+1
-4
No files found.
cluster/vagrant/config-default.sh
View file @
b2a60dc9
...
...
@@ -121,5 +121,3 @@ E2E_STORAGE_TEST_ENVIRONMENT=${KUBE_E2E_STORAGE_TEST_ENVIRONMENT:-false}
# Default fallback NETWORK_IF_NAME, will be used in case when no 'VAGRANT-BEGIN' comments were defined in network-script
export
DEFAULT_NETWORK_IF_NAME
=
"eth0"
# Evict pods whenever compute resource availability on the nodes gets below a threshold.
EVICTION_HARD
=
"
${
EVICTION_HARD
:-
memory
.available<100Mi,nodefs.available<10%
}
"
cluster/vagrant/config-test.sh
View file @
b2a60dc9
...
...
@@ -27,5 +27,3 @@ REGISTER_MASTER_KUBELET=${REGISTER_MASTER:-false}
# Optional: if set to true, kube-up will configure the cluster to run e2e tests.
E2E_STORAGE_TEST_ENVIRONMENT
=
${
KUBE_E2E_STORAGE_TEST_ENVIRONMENT
:-
false
}
# Evict pods whenever compute resource availability on the nodes gets below a threshold.
EVICTION_HARD
=
"
${
EVICTION_HARD
:-
memory
.available<100Mi,nodefs.available<10%
}
"
hack/local-up-cluster.sh
View file @
b2a60dc9
...
...
@@ -45,7 +45,7 @@ CGROUP_DRIVER=${CGROUP_DRIVER:-""}
USER
=
${
USER
:-$(
whoami
)}
# enables testing eviction scenarios locally.
EVICTION_HARD
=
${
EVICTION_HARD
:-
"memory.available<100Mi"
}
EVICTION_HARD
=
${
EVICTION_HARD
:-
"memory.available<100Mi
,nodefs.available<10%,nodefs.inodesFree<5%
"
}
EVICTION_SOFT
=
${
EVICTION_SOFT
:-
""
}
EVICTION_PRESSURE_TRANSITION_PERIOD
=
${
EVICTION_PRESSURE_TRANSITION_PERIOD
:-
"1m"
}
...
...
pkg/apis/componentconfig/v1alpha1/defaults.go
View file @
b2a60dc9
...
...
@@ -301,9 +301,6 @@ func SetDefaults_KubeletConfiguration(obj *KubeletConfiguration) {
temp
:=
int32
(
80
)
obj
.
ImageGCLowThresholdPercent
=
&
temp
}
if
obj
.
LowDiskSpaceThresholdMB
==
0
{
obj
.
LowDiskSpaceThresholdMB
=
256
}
if
obj
.
MasterServiceNamespace
==
""
{
obj
.
MasterServiceNamespace
=
metav1
.
NamespaceDefault
}
...
...
@@ -396,7 +393,7 @@ func SetDefaults_KubeletConfiguration(obj *KubeletConfiguration) {
obj
.
HairpinMode
=
PromiscuousBridge
}
if
obj
.
EvictionHard
==
nil
{
temp
:=
"memory.available<100Mi"
temp
:=
"memory.available<100Mi
,nodefs.available<10%,nodefs.inodesFree<5%
"
obj
.
EvictionHard
=
&
temp
}
if
obj
.
EvictionPressureTransitionPeriod
==
zeroDuration
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment