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
b3a664ee
Unverified
Commit
b3a664ee
authored
Aug 08, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Aug 08, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #79671 from odinuge/automated-cherry-pick-of-#78495-upstream-release-1.15
Cherry pick of #78495: Fix issues in kubelet for Aarch64 resulting in kubelet crashing on starup
parents
80b73a5d
820a717b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
cgroup_manager_linux.go
pkg/kubelet/cm/cgroup_manager_linux.go
+1
-1
container_manager_linux.go
pkg/kubelet/cm/container_manager_linux.go
+9
-0
No files found.
pkg/kubelet/cm/cgroup_manager_linux.go
View file @
b3a664ee
...
@@ -51,7 +51,7 @@ const (
...
@@ -51,7 +51,7 @@ const (
// hugePageSizeList is useful for converting to the hugetlb canonical unit
// hugePageSizeList is useful for converting to the hugetlb canonical unit
// which is what is expected when interacting with libcontainer
// which is what is expected when interacting with libcontainer
var
hugePageSizeList
=
[]
string
{
"B"
,
"
k
B"
,
"MB"
,
"GB"
,
"TB"
,
"PB"
}
var
hugePageSizeList
=
[]
string
{
"B"
,
"
K
B"
,
"MB"
,
"GB"
,
"TB"
,
"PB"
}
var
RootCgroupName
=
CgroupName
([]
string
{})
var
RootCgroupName
=
CgroupName
([]
string
{})
...
...
pkg/kubelet/cm/container_manager_linux.go
View file @
b3a664ee
...
@@ -200,6 +200,15 @@ func validateSystemRequirements(mountUtil mount.Interface) (features, error) {
...
@@ -200,6 +200,15 @@ func validateSystemRequirements(mountUtil mount.Interface) (features, error) {
// Takes the absolute name of the specified containers.
// Takes the absolute name of the specified containers.
// Empty container name disables use of the specified container.
// Empty container name disables use of the specified container.
func
NewContainerManager
(
mountUtil
mount
.
Interface
,
cadvisorInterface
cadvisor
.
Interface
,
nodeConfig
NodeConfig
,
failSwapOn
bool
,
devicePluginEnabled
bool
,
recorder
record
.
EventRecorder
)
(
ContainerManager
,
error
)
{
func
NewContainerManager
(
mountUtil
mount
.
Interface
,
cadvisorInterface
cadvisor
.
Interface
,
nodeConfig
NodeConfig
,
failSwapOn
bool
,
devicePluginEnabled
bool
,
recorder
record
.
EventRecorder
)
(
ContainerManager
,
error
)
{
// Mitigation of the issue fixed in master where hugetlb prefix for page sizes with "KiB"
// is "kB" in runc, but the correct is "KB"
// See https://github.com/opencontainers/runc/pull/2065
// and https://github.com/kubernetes/kubernetes/pull/78495
// for more info.
for
i
,
pageSize
:=
range
fs
.
HugePageSizes
{
fs
.
HugePageSizes
[
i
]
=
strings
.
ReplaceAll
(
pageSize
,
"kB"
,
"KB"
)
}
subsystems
,
err
:=
GetCgroupSubsystems
()
subsystems
,
err
:=
GetCgroupSubsystems
()
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"failed to get mounted cgroup subsystems: %v"
,
err
)
return
nil
,
fmt
.
Errorf
(
"failed to get mounted cgroup subsystems: %v"
,
err
)
...
...
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