Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DependencyWatchdogExternalProbeSecretName is the name of the kubecfg secret with internal DNS for external access. DependencyWatchdogExternalProbeSecretName = "dependency-watchdog-external-probe" // DependencyWatchdogInternalProbeSecretName is the name of the kubecfg secret with cluster IP access. DependencyWatchdogInternalProbeSecretName = "dependency-watchdog-internal-probe" )
View Source
const (
// Port is the port exposed by the kube-apiserver.
Port = 443
)
Variables ¶
View Source
var ( // IntervalWaitForDeployment is the interval used while waiting for the Deployments to become healthy // or deleted. IntervalWaitForDeployment = 5 * time.Second // TimeoutWaitForDeployment is the timeout used while waiting for the Deployments to become healthy // or deleted. TimeoutWaitForDeployment = 5 * time.Minute )
Functions ¶
func DependencyWatchdogEndpointConfiguration ¶ added in v1.27.0
func DependencyWatchdogEndpointConfiguration() (map[string]restarterapi.Service, error)
DependencyWatchdogEndpointConfiguration returns the configuration for the dependency watchdog (endpoint role) ensuring that its dependant pods are restarted as soon as it recovers from a crash loop.
func DependencyWatchdogProbeConfiguration ¶ added in v1.27.0
func DependencyWatchdogProbeConfiguration() ([]scalerapi.ProbeDependants, error)
DependencyWatchdogProbeConfiguration returns the configuration for the dependency watchdog (probe role) ensuring that its dependant pods are scaled as soon a probe fails.
Types ¶
type AutoscalingConfig ¶ added in v1.28.0
type AutoscalingConfig struct { // HVPAEnabled states whether an HVPA object shall be deployed. If false, HPA and VPA will be used. HVPAEnabled bool // Replicas is the number of pod replicas for the kube-apiserver. Replicas *int32 // MinReplicas are the minimum Replicas for horizontal autoscaling. MinReplicas int32 // MaxReplicas are the maximum Replicas for horizontal autoscaling. MaxReplicas int32 // UseMemoryMetricForHvpaHPA states whether the memory metric shall be used when the HPA is configured in an HVPA // resource. UseMemoryMetricForHvpaHPA bool // ScaleDownDisabledForHvpa states whether scale-down shall be disabled when HPA or VPA are configured in an HVPA // resource. ScaleDownDisabledForHvpa bool }
AutoscalingConfig contains information for configuring autoscaling settings for the kube-apiserver.
type Interface ¶ added in v1.28.0
type Interface interface { component.DeployWaiter // GetValues returns the current configuration values of the deployer. GetValues() Values // SetAutoscalingReplicas sets the Replicas field in the AutoscalingConfig of the Values of the deployer. SetAutoscalingReplicas(*int32) }
Interface contains functions for a kube-apiserver deployer.
type SNIConfig ¶ added in v1.28.0
type SNIConfig struct { // PodMutatorEnabled states whether the pod mutator is enabled. PodMutatorEnabled bool }
SNIConfig contains information for configuring SNI settings for the kube-apiserver.
type Values ¶ added in v1.28.0
type Values struct { // Autoscaling contains information for configuring autoscaling settings for the kube-apiserver. Autoscaling AutoscalingConfig // ReversedVPNEnabled states whether the 'ReversedVPN' feature gate is enabled. ReversedVPNEnabled bool // SNI contains information for configuring SNI settings for the kube-apiserver. SNI SNIConfig // Version is the Kubernetes version for the kube-apiserver. Version *semver.Version }
Values contains configuration values for the kube-apiserver resources.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.