Documentation ¶
Overview ¶
Package cni configures the Container Networking Interface
Index ¶
Constants ¶
View Source
const ( // DefaultPodCIDR is the default CIDR to use in minikube CNI's. DefaultPodCIDR = "10.244.0.0/16" // DefaultConfDir is the default CNI Config Directory path DefaultConfDir = "/etc/cni/net.d" // CustomConfDir is the custom CNI Config Directory path used to avoid conflicting CNI configs // ref: https://github.com/kubernetes/minikube/issues/10984 and https://github.com/kubernetes/minikube/pull/11106 CustomConfDir = "/etc/cni/net.mk" )
Variables ¶
View Source
var ( // ConfDir is the CNI Config Directory path that can be customised, defaulting to DefaultConfDir ConfDir = DefaultConfDir // Network is the network name that CNI should use (eg, "kindnet"). // Currently, only crio (and podman) can use it, so that setting custom ConfDir is not necessary. // ref: https://github.com/cri-o/cri-o/issues/2121 (and https://github.com/containers/podman/issues/2370) // ref: https://github.com/cri-o/cri-o/blob/master/docs/crio.conf.5.md#crionetwork-table Network = "" )
Functions ¶
func GenerateCiliumYAML ¶ added in v1.24.0
GenerateCiliumYAML generates the .yaml file
func IsDisabled ¶ added in v1.16.0
func IsDisabled(cc config.ClusterConfig) bool
IsDisabled checks if CNI is disabled
Types ¶
type Bridge ¶
type Bridge struct {
// contains filtered or unexported fields
}
Bridge is a simple CNI manager for single-node usage
type Calico ¶ added in v1.12.1
type Calico struct {
// contains filtered or unexported fields
}
Calico is the Calico CNI manager
type Cilium ¶ added in v1.12.1
type Cilium struct {
// contains filtered or unexported fields
}
Cilium is the Cilium CNI manager
type Custom ¶
type Custom struct {
// contains filtered or unexported fields
}
Custom is a CNI manager than applies a user-specified manifest
type Disabled ¶
type Disabled struct {
// contains filtered or unexported fields
}
Disabled is a CNI manager than does nothing
type Flannel ¶
type Flannel struct {
// contains filtered or unexported fields
}
Flannel is the Flannel CNI manager
type KindNet ¶
type KindNet struct {
// contains filtered or unexported fields
}
KindNet is the KindNet CNI manager
Click to show internal directories.
Click to hide internal directories.