clusterautoscaler

package
v1.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2020 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ServiceName is the name of the service of the cluster-autoscaler.
	ServiceName = "cluster-autoscaler"
	// SecretName is a constant for the secret name for the cluster-autoscaler's kubeconfig secret.
	SecretName = "cluster-autoscaler"
	// UserName is the name that should be used for the secret that the cluster-autoscaler uses to
	// authenticate itself with the kube-apiserver (e.g., the common name in its client certificate).
	UserName = "system:cluster-autoscaler"
)

Variables

This section is empty.

Functions

func BootstrapSeed

func BootstrapSeed(ctx context.Context, c client.Client, namespace, _ string) error

BootstrapSeed deploys the RBAC configuration for the control cluster.

func LoggingConfiguration

func LoggingConfiguration() (component.LoggingConfig, error)

LoggingConfiguration returns a fluent-bit parser and filter for the cluster-autoscaler logs.

Types

type ClusterAutoscaler

type ClusterAutoscaler interface {
	component.DeployWaiter
	component.MonitoringComponent
	// SetSecrets sets the secrets.
	SetSecrets(Secrets)
	// SetNamespaceUID sets the UID of the namespace into which the cluster-autoscaler shall be deployed.
	SetNamespaceUID(types.UID)
	// SetMachineDeployments sets the machine deployments.
	SetMachineDeployments([]extensionsv1alpha1.MachineDeployment)
}

ClusterAutoscaler contains functions for a cluster-autoscaler deployer.

func New

func New(
	client client.Client,
	namespace string,
	image string,
	replicas int32,
	config *gardencorev1beta1.ClusterAutoscaler,
) ClusterAutoscaler

New creates a new instance of DeployWaiter for the cluster-autoscaler.

type Secrets

type Secrets struct {
	// Kubeconfig is a secret which can be used by the cluster-autoscaler to communicate to the kube-apiserver.
	Kubeconfig component.Secret
}

Secrets is collection of secrets for the cluster-autoscaler.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL