Help us shape the future of Go! Take the 2026 Go Developer Survey

cache

package
v1.154.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

View Source
const Label = "cache"

Label is a constant for the label of the cache prometheus instance.

Variables

This section is empty.

Functions

func AdditionalScrapeConfigs

func AdditionalScrapeConfigs() []string

AdditionalScrapeConfigs returns the additional scrape configs for the cache prometheus.

func CentralPrometheusRules

func CentralPrometheusRules() []*monitoringv1.PrometheusRule

CentralPrometheusRules returns the central PrometheusRule resources for the cache prometheus.

func CentralScrapeConfigs

func CentralScrapeConfigs() []*monitoringv1alpha1.ScrapeConfig

CentralScrapeConfigs returns the central ScrapeConfig resources for the cache prometheus.

func CentralServiceMonitors

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

CentralServiceMonitors returns the central ServiceMonitor resources for the cache prometheus.

func NetworkPolicyToKubelet added in v1.96.0

func NetworkPolicyToKubelet(namespace string, nodeCIDR *string) *networkingv1.NetworkPolicy

NetworkPolicyToKubelet returns a NetworkPolicy that allows traffic from the cache Prometheus to the kubelet process running on the nodes.

func NetworkPolicyToNodeExporter

func NetworkPolicyToNodeExporter(namespace string, nodeCIDR *string) *networkingv1.NetworkPolicy

NetworkPolicyToNodeExporter returns a NetworkPolicy that allows traffic from the cache Prometheus to the node-exporter pods running in `kube-system` namespace. Note that it is only applicable/relevant in case the seed cluster is a shoot cluster itself (otherwise, there won't be a running node-exporter (typically)). The gardener-resource-manager's NetworkPolicy controller is not enabled for the kube-system namespace, hence we need to create this custom policy for this network path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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