Documentation ¶
Overview ¶
Package mlacontroller contains controllers that are responsible for configuring MLA (Monitoring, Logging, and Alerting) for user clusters.
Index ¶
- Constants
- func Add(ctx context.Context, mgr manager.Manager, log *zap.SugaredLogger, ...) error
- func GatewayCAReconciler() reconciling.NamedSecretReconcilerFactory
- func GatewayCertificateReconciler(c *kubermaticv1.Cluster, ...) reconciling.NamedSecretReconcilerFactory
- func GatewayConfigMapReconciler(c *kubermaticv1.Cluster, mlaNamespace string, s *kubermaticv1.MLAAdminSetting) reconciling.NamedConfigMapReconcilerFactory
- func GatewayDeploymentReconciler(data *resources.TemplateData, settings *kubermaticv1.MLAAdminSetting) reconciling.NamedDeploymentReconcilerFactory
- func GatewayExternalServiceReconciler(c *kubermaticv1.Cluster) reconciling.NamedServiceReconcilerFactory
- func GatewayInternalServiceReconciler() reconciling.NamedServiceReconcilerFactory
- func ResourcesOnDeletion(clusterNamespace string) []ctrlruntimeclient.Object
- type Overrides
- type TenantOverride
Constants ¶
View Source
const ( RuntimeConfigMap = "cortex-runtime-config" RuntimeConfigFileName = "runtime-config.yaml" )
View Source
const (
ControllerName = "kkp-mla-controller"
)
View Source
const (
GrafanaOrganization = "kkp-user-clusters"
)
View Source
const (
PrometheusType = "prometheus"
)
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add( ctx context.Context, mgr manager.Manager, log *zap.SugaredLogger, numWorkers int, workerName string, versions kubermatic.Versions, mlaNamespace string, grafanaURL string, grafanaHeader string, grafanaSecret string, overwriteRegistry string, cortexAlertmanagerURL string, cortexRulerURL string, lokiRulerURL string, mlaEnabled bool, ) error
Add creates a new MLA controller that is responsible for managing Monitoring, Logging and Alerting for user clusters.
func GatewayCAReconciler ¶
func GatewayCAReconciler() reconciling.NamedSecretReconcilerFactory
GatewayCAReconciler returns a function to create the ECDSA-based CA to be used for MLA Gateway.
func GatewayCertificateReconciler ¶
func GatewayCertificateReconciler(c *kubermaticv1.Cluster, mlaGatewayCAGetter func() (*resources.ECDSAKeyPair, error)) reconciling.NamedSecretReconcilerFactory
GatewayCertificateReconciler returns a function to create/update a secret with the MLA gateway TLS certificate.
func GatewayConfigMapReconciler ¶
func GatewayConfigMapReconciler(c *kubermaticv1.Cluster, mlaNamespace string, s *kubermaticv1.MLAAdminSetting) reconciling.NamedConfigMapReconcilerFactory
func GatewayDeploymentReconciler ¶
func GatewayDeploymentReconciler(data *resources.TemplateData, settings *kubermaticv1.MLAAdminSetting) reconciling.NamedDeploymentReconcilerFactory
func GatewayExternalServiceReconciler ¶
func GatewayExternalServiceReconciler(c *kubermaticv1.Cluster) reconciling.NamedServiceReconcilerFactory
func GatewayInternalServiceReconciler ¶
func GatewayInternalServiceReconciler() reconciling.NamedServiceReconcilerFactory
func ResourcesOnDeletion ¶
func ResourcesOnDeletion(clusterNamespace string) []ctrlruntimeclient.Object
Types ¶
type Overrides ¶
type Overrides struct {
Overrides map[string]TenantOverride `yaml:"overrides"`
}
type TenantOverride ¶
type TenantOverride struct { IngestionRate *int32 `yaml:"ingestion_rate,omitempty"` MaxSeriesPerMetric *int32 `yaml:"max_series_per_metric,omitempty"` MaxSeriesPerQuery *int32 `yaml:"max_series_per_query,omitempty"` MaxSamplesPerQuery *int32 `yaml:"max_samples_per_query,omitempty"` IngestionBurstSize *int32 `yaml:"ingestion_burst_size,omitempty"` MaxSeriesTotal *int32 `yaml:"max_series_per_user,omitempty"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.