kubestatemetrics

package
v1.58.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ManagedResourceName is the name of the managed resource for seeds.
	ManagedResourceName = "kube-state-metrics"
)

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-state-metrics logs.

func CentralMonitoringConfiguration

func CentralMonitoringConfiguration() (component.CentralMonitoringConfig, error)

CentralMonitoringConfiguration returns scrape configs for the central Prometheus.

Types

type Interface

type Interface interface {
	component.DeployWaiter
	component.MonitoringComponent
}

Interface contains functions for a kube-state-metrics deployer.

func New

func New(
	client client.Client,
	namespace string,
	secretsManager secretsmanager.Interface,
	values Values,
) Interface

New creates a new instance of DeployWaiter for the kube-state-metrics.

type Values

type Values struct {
	// ClusterType specifies the type of the cluster to which kube-state-metrics is being deployed.
	// For seeds, all resources are being deployed as part of a ManagedResource.
	// For shoots, the kube-state-metrics runs in the shoot namespace in the seed as part of the control plane. Hence,
	// only the runtime resources (like Deployment, Service, etc.) are being deployed directly (with the client). All
	// other application-related resources (like RBAC roles, CRD, etc.) are deployed as part of a ManagedResource.
	ClusterType component.ClusterType
	// Image is the container image.
	Image string
	// Replicas is the number of replicas.
	Replicas int32
}

Values is a set of configuration values for the kube-state-metrics.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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