node

package
v1.29.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CgroupHasHugetlb added in v1.19.0

func CgroupHasHugetlb() bool

CgroupHasHugetlb returns whether the hugetlb controller is present

func CgroupHasMemorySwap added in v1.19.0

func CgroupHasMemorySwap() bool

CgroupHasMemorySwap returns whether the memory swap controller is present

func CgroupHasPid added in v1.19.0

func CgroupHasPid() bool

CgroupHasPid returns whether the pid controller is present

func CgroupIsV2 added in v1.19.0

func CgroupIsV2() bool

func SystemdHasAllowedCPUs added in v1.21.2

func SystemdHasAllowedCPUs() bool

func ValidateConfig

func ValidateConfig() error

ValidateConfig initializes and validates all of the singleton variables that store the node's configuration. Currently, we check hugetlb, cgroup v1 or v2, pid and memory swap support for cgroups. We check the error at server configuration validation, and if we error, shutdown cri-o early, instead of when we're already trying to run containers.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL