node

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 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

func CgroupHasHugetlb() bool

CgroupHasHugetlb returns whether the hugetlb controller is present

func CgroupHasMemorySwap

func CgroupHasMemorySwap() bool

CgroupHasMemorySwap returns whether the memory swap controller is present

func CgroupHasPid

func CgroupHasPid() bool

CgroupHasPid returns whether the pid controller is present

func CgroupIsV2

func CgroupIsV2() bool

func SystemdHasAllowedCPUs

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