Documentation
¶
Index ¶
Constants ¶
View Source
const (
// ConfigNamePrefix is the prefix for the name of the kube-proxy ConfigMap.
ConfigNamePrefix = "kube-proxy-config"
)
Variables ¶
View Source
var TimeoutWaitForManagedResource = 2 * time.Minute
TimeoutWaitForManagedResource is the timeout used while waiting for the ManagedResources to become healthy or deleted.
Functions ¶
func CentralLoggingConfiguration ¶
func CentralLoggingConfiguration() (component.CentralLoggingConfig, error)
CentralLoggingConfiguration returns a fluent-bit parser and filter for the kube-proxy logs.
Types ¶
type ConfigCodec ¶
type ConfigCodec interface {
// Encode encodes the given *kubeproxyconfigv1alpha1.KubeProxyConfiguration into a string.
Encode(*kubeproxyconfigv1alpha1.KubeProxyConfiguration) (string, error)
// Decode decodes a *kubeproxyconfigv1alpha1.KubeProxyConfiguration from the given string.
Decode(string) (*kubeproxyconfigv1alpha1.KubeProxyConfiguration, error)
}
ConfigCodec contains methods for encoding and decoding *kubeproxyconfigv1alpha1.KubeProxyConfiguration objects to and from string.
func NewConfigCodec ¶
func NewConfigCodec() ConfigCodec
NewConfigCodec creates an returns a new ConfigCodec.
type Interface ¶
type Interface interface {
component.DeployWaiter
// DeleteStaleResources deletes no longer required ManagedResource from the shoot namespace in the seed.
DeleteStaleResources(context.Context) error
// WaitCleanupStaleResources waits until all no longer required ManagedResource are cleaned up.
WaitCleanupStaleResources(context.Context) error
// SetKubeconfig sets the Kubeconfig field in the Values.
SetKubeconfig([]byte)
// SetWorkerPools sets the WorkerPools field in the Values.
SetWorkerPools([]WorkerPool)
// SetPodNetworkCIDRs sets the pod CIDRs of the shoot network.
SetPodNetworkCIDRs([]net.IPNet)
}
Interface is an interface for managing kube-proxy DaemonSets.
type Values ¶
type Values struct {
// ProxyMode defines the kernel module used for the proxy, can be one of ipvs, iptables or nftables.
ProxyMode gardencore.ProxyMode
// FeatureGates is the set of feature gates.
FeatureGates map[string]bool
// ImageAlpine is the alpine container image.
ImageAlpine string
// Kubeconfig is the kubeconfig which should be used to communicate with the kube-apiserver.
Kubeconfig []byte
// PodNetworkCIDRs are the CIDRs of the pod network. Only relevant when IPVSEnabled is false.
PodNetworkCIDRs []net.IPNet
// VPAEnabled states whether VerticalPodAutoscaler is enabled.
VPAEnabled bool
// WorkerPools is a list of worker pools for which the kube-proxy DaemonSets should be deployed.
WorkerPools []WorkerPool
}
Values is a set of configuration values for the kube-proxy component.
type WorkerPool ¶
type WorkerPool struct {
// Name is the name of the worker pool.
Name string
// KubernetesVersion is the Kubernetes version of the worker pool.
KubernetesVersion *semver.Version
// Image is the container image used for kube-proxy for this worker pool.
Image string
}
WorkerPool contains configuration for the kube-proxy deployment for this specific worker pool.
Click to show internal directories.
Click to hide internal directories.