package sysctl
import "k8s.io/kubernetes/pkg/util/sysctl"
Index ¶
Constants ¶
const ( VmOvercommitMemory = "vm/overcommit_memory" VmPanicOnOOM = "vm/panic_on_oom" KernelPanic = "kernel/panic" KernelPanicOnOops = "kernel/panic_on_oops" RootMaxKeys = "kernel/keys/root_maxkeys" RootMaxBytes = "kernel/keys/root_maxbytes" VmOvercommitMemoryAlways = 1 // kernel performs no memory over-commit handling VmPanicOnOOMInvokeOOMKiller = 0 // kernel calls the oom_killer function when OOM occurs KernelPanicOnOopsAlways = 1 // kernel panics on kernel oops KernelPanicRebootTimeout = 10 // seconds after a panic for the kernel to reboot RootMaxKeysSetting = 1000000 // Needed since docker creates a new key per container RootMaxBytesSetting = RootMaxKeysSetting * 25 // allocate 25 bytes per key * number of MaxKeys )
Types ¶
type Interface ¶
type Interface interface { // GetSysctl returns the value for the specified sysctl setting GetSysctl(sysctl string) (int, error) // SetSysctl modifies the specified sysctl flag to the new value SetSysctl(sysctl string, newVal int) error }
An injectable interface for running sysctl commands.
func New ¶
func New() Interface
New returns a new Interface for accessing sysctl
Source Files ¶
sysctl.go
Directories ¶
Path | Synopsis |
---|---|
pkg/util/sysctl/testing |
- Version
- v1.14.4
- Published
- Jul 4, 2019
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 3 minutes ago –
Tools for package owners.