shoot

package
v1.103.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label is a constant for the label of the shoot prometheus instance.
	Label = "shoot"
	// ServiceAccountName is the name of the service account in the shoot cluster.
	ServiceAccountName = "prometheus-" + Label
	// AccessSecretName is the name of the secret containing a token for accessing the shoot cluster.
	AccessSecretName = gardenerutils.SecretNamePrefixShootAccess + ServiceAccountName
)
View Source
const (
	// RoleEndpoints is a constant for the 'endpoints' role.
	RoleEndpoints monitoringv1alpha1.Role = "endpoints"
	// RolePod is a constant for the 'pod' role.
	RolePod monitoringv1alpha1.Role = "pod"
)

Variables

This section is empty.

Functions

func CentralPrometheusRules

func CentralPrometheusRules(isWorkerless, wantsAlertmanager bool) []*monitoringv1.PrometheusRule

CentralPrometheusRules returns the central PrometheusRule resources for the shoot prometheus.

func CentralScrapeConfigs

func CentralScrapeConfigs(namespace, clusterCASecretName string, isWorkerless bool) []*monitoringv1alpha1.ScrapeConfig

CentralScrapeConfigs returns the central ScrapeConfig resources for the shoot prometheus.

func CentralServiceMonitors

func CentralServiceMonitors(wantsAlertmanager bool) []*monitoringv1.ServiceMonitor

CentralServiceMonitors returns the central ServiceMonitor resources for the shoot prometheus.

func ClusterComponentScrapeConfigSpec added in v1.96.0

func ClusterComponentScrapeConfigSpec(jobName string, sdConfig KubernetesServiceDiscoveryConfig, allowedMetrics ...string) monitoringv1alpha1.ScrapeConfigSpec

ClusterComponentScrapeConfigSpec returns the standard spec for a scrape config for components running in the shoot cluster (in this case, the shoot's kube-apiserver is used as proxy to scrape the metrics).

Types

type KubernetesServiceDiscoveryConfig added in v1.96.0

type KubernetesServiceDiscoveryConfig struct {
	Role monitoringv1alpha1.Role

	// when 'Role' is 'pod'
	PodNamePrefix     string
	ContainerName     string
	ContainerPortName string

	// when 'Role' is 'endpoints'
	ServiceName      string
	EndpointPortName string
}

KubernetesServiceDiscoveryConfig is the configuration for the Kubernetes service discovery.

Jump to

Keyboard shortcuts

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