kubernetesk8s.io/kubernetes/pkg/util/kernel Index | Files

package kernel

import "k8s.io/kubernetes/pkg/util/kernel"

Index

Constants

const IPLocalReservedPortsNamespacedKernelVersion = "3.16"

IPLocalReservedPortsNamespacedKernelVersion is the kernel version in which net.ipv4.ip_local_reserved_ports was namespaced(netns). (ref: https://github.com/torvalds/linux/commit/122ff243f5f104194750ecbc76d5946dd1eec934)

const IPVSConnReuseModeFixedKernelVersion = "5.9"

IPVSConnReuseModeFixedKernelVersion is the kernel version in which net.ipv4.vs.conn_reuse_mode was fixed. (ref: https://github.com/torvalds/linux/commit/35dfb013149f74c2be1ff9c78f14e6a3cd1539d1)

const IPVSConnReuseModeMinSupportedKernelVersion = "4.1"

IPVSConnReuseModeMinSupportedKernelVersion is the minium kernel version supporting net.ipv4.vs.conn_reuse_mode. (ref: https://github.com/torvalds/linux/commit/d752c364571743d696c2a54a449ce77550c35ac5)

const NFTablesKubeProxyKernelVersion = "5.13"

NFTablesKubeProxyKernelVersion is the lowest kernel version kube-proxy supports using nftables mode with by default. This is not directly related to any specific kernel commit; see https://issues.k8s.io/122743#issuecomment-1893922424

const TCPFinTimeoutNamespacedKernelVersion = "4.6"

TCPFinTimeoutNamespacedKernelVersion is the kernel version in which net.ipv4.tcp_fin_timeout was namespaced(netns). (ref: https://github.com/torvalds/linux/commit/1e579caa18b96f9eb18f4f5416658cd15f37c062)

const TCPKeepAliveIntervalNamespacedKernelVersion = "4.5"

TCPKeepAliveIntervalNamespacedKernelVersion is the kernel version in which net.ipv4.tcp_keepalive_intvl was namespaced(netns). (ref: https://github.com/torvalds/linux/commit/b840d15d39128d08ed4486085e5507d2617b9ae1)

const TCPKeepAliveProbesNamespacedKernelVersion = "4.5"

TCPKeepAliveProbesNamespacedKernelVersion is the kernel version in which net.ipv4.tcp_keepalive_probes was namespaced(netns). (ref: https://github.com/torvalds/linux/commit/9bd6861bd4326e3afd3f14a9ec8a723771fb20bb)

const TCPKeepAliveTimeNamespacedKernelVersion = "4.5"

TCPKeepAliveTimeNamespacedKernelVersion is the kernel version in which net.ipv4.tcp_keepalive_time was namespaced(netns). (ref: https://github.com/torvalds/linux/commit/13b287e8d1cad951634389f85b8c9b816bd3bb1e)

const TCPReceiveMemoryNamespacedKernelVersion = "4.15"

TCPReceiveMemoryNamespacedKernelVersion is the kernel version in which net.ipv4.tcp_rmem was namespaced(netns). (ref: https://github.com/torvalds/linux/commit/356d1833b638bd465672aefeb71def3ab93fc17d)

const TCPTransmitMemoryNamespacedKernelVersion = "4.15"

TCPTransmitMemoryNamespacedKernelVersion is the kernel version in which net.ipv4.tcp_wmem was namespaced(netns). (ref: https://github.com/torvalds/linux/commit/356d1833b638bd465672aefeb71def3ab93fc17d)

const TmpfsNoswapSupportKernelVersion = "6.4"

Functions

func GetVersion

func GetVersion() (*version.Version, error)

GetVersion returns currently running kernel version.

Source Files

constants.go version.go

Version
v1.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
4 packages
Last checked
3 hours ago

Tools for package owners.