# Functions
ApplyDefaultSettings manipulates the options to conform to build specifications.
ApplyGatewayDefaultOptions applies defaults on the LokiStackSpec depending on selected tenant mode.
ApplyTLSSettings manipulates the options to conform to the TLS profile specifications.
BuildAll builds all manifests required to run a Loki Stack.
BuildCompactor builds the k8s objects required to run Loki Compactor.
BuildDistributor returns a list of k8s objects for Loki Distributor.
BuildGateway returns a list of k8s objects for Loki Stack Gateway.
BuildIndexGateway returns a list of k8s objects for Loki IndexGateway.
BuildIngester builds the k8s objects required to run Loki Ingester.
BuildLokiGossipRingService creates a k8s service for the gossip/memberlist members of the cluster.
BuildPrometheusRule returns a list of k8s objects for Loki PrometheusRule.
BuildQuerier returns a list of k8s objects for Loki Querier.
BuildQueryFrontend returns a list of k8s objects for Loki QueryFrontend.
BuildRuler returns a list of k8s objects for Loki Stack Ruler.
BuildServiceAccount returns a k8s object for the LokiStack serviceaccount.
BuildServiceMonitors builds the service monitors.
CompactorName is the name of the compactor statefulset.
ComponentLabels is a list of all commonLabels including the app.kubernetes.io/component:<component> label.
ConfigOptions converts Options to config.Options.
ConfigureOptionsForMode applies configuration depending on the mode type.
DefaultLokiStackSpec returns the default configuration for a LokiStack of the specified size.
DistributorName is the name of the distributor deployment.
GatewayName is the name of the lokiStack-gateway statefulset.
GossipLabels is the list of labels that should be assigned to components using the gossip ring.
IndexGatewayName is the name of the index-gateway statefulset.
IngesterName is the name of the compactor statefulset.
LokiConfigMap creates the single configmap containing the loki configuration for the whole cluster.
MutateFuncFor returns a mutate function based on the existing resource's concrete type.
NewCompactorGRPCService creates a k8s service for the compactor GRPC endpoint.
NewCompactorHTTPService creates a k8s service for the ingester HTTP endpoint.
NewCompactorServiceMonitor creates a k8s service monitor for the compactor component.
NewCompactorStatefulSet creates a statefulset object for a compactor.
NewDistributorDeployment creates a deployment object for a distributor.
NewDistributorGRPCService creates a k8s service for the distributor GRPC endpoint.
NewDistributorHTTPService creates a k8s service for the distributor HTTP endpoint.
NewDistributorServiceMonitor creates a k8s service monitor for the distributor component.
NewGatewayDeployment creates a deployment object for a lokiStack-gateway.
NewGatewayHTTPService creates a k8s service for the lokistack-gateway HTTP endpoint.
NewGatewayIngress creates a k8s Ingress object for accessing the lokistack-gateway from public.
NewGatewayPodDisruptionBudget returns a PodDisruptionBudget for the LokiStack Gateway pods.
NewGatewayServiceMonitor creates a k8s service monitor for the lokistack-gateway component.
NewIndexGatewayGRPCService creates a k8s service for the index-gateway GRPC endpoint.
NewIndexGatewayHTTPService creates a k8s service for the index-gateway HTTP endpoint.
NewIndexGatewayPodDisruptionBudget returns a PodDisruptionBudget for the LokiStack index-gateway pods.
NewIndexGatewayServiceMonitor creates a k8s service monitor for the index-gateway component.
NewIndexGatewayStatefulSet creates a statefulset object for an index-gateway.
NewIngesterGRPCService creates a k8s service for the ingester GRPC endpoint.
NewIngesterHTTPService creates a k8s service for the ingester HTTP endpoint.
NewIngesterServiceMonitor creates a k8s service monitor for the ingester component.
NewIngesterStatefulSet creates a deployment object for an ingester.
NewPrometheusRule creates a prometheus rule.
NewQuerierDeployment creates a deployment object for a querier.
NewQuerierGRPCService creates a k8s service for the querier GRPC endpoint.
NewQuerierHTTPService creates a k8s service for the querier HTTP endpoint.
NewQuerierPodDisruptionBudget returns a PodDisruptionBudget for the LokiStack querier pods.
NewQuerierServiceMonitor creates a k8s service monitor for the querier component.
NewQueryFrontendDeployment creates a deployment object for a query-frontend.
NewQueryFrontendGRPCService creates a k8s service for the query-frontend GRPC endpoint.
NewQueryFrontendHTTPService creates a k8s service for the query-frontend HTTP endpoint.
NewQueryFrontendPodDisruptionBudget returns a PodDisruptionBudget for the LokiStack query-frontend pods.
NewQueryFrontendServiceMonitor creates a k8s service monitor for the query-frontend component.
NewRulerGRPCService creates a k8s service for the ruler GRPC endpoint.
NewRulerHTTPService creates a k8s service for the ruler HTTP endpoint.
NewRulerPodDisruptionBudget returns a PodDisruptionBudget for the LokiStack ruler pods.
NewRulerServiceMonitor creates a k8s service monitor for the ruler component.
NewRulerStatefulSet creates a StatefulSet object for a ruler.
NewServiceAccount returns a k8s object for the LokiStack Gateway serviceaccount.
NewServiceAccountTokenSecret returns a k8s object for the LokiStack Gateway secret.
NewShardedConfigMap takes a corev1.ConfigMap as template and a name prefix and returns a new ShardedConfigMap.
NewTimeoutConfig creates a TimeoutConfig from the QueryTimeout values in the spec's limits.
PrometheusRuleName is the name of the loki-prometheus-rule.
QuerierName is the name of the querier deployment.
QueryFrontendName is the name of the query-frontend statefulset.
RulerName is the name of the ruler statefulset.
RulesConfigMapName is the name of the alerting/recording rules configmap.
RulesConfigMapShards returns a ConfigMap resource that contains all loki alerting and recording rules as YAML data.
RulesStorageVolumeName is the name of the rules volume.
No description provided by the author
# Constants
AnnotationCertRotationRequiredAt stores the point in time the last cert rotation happened.
AnnotationLokiConfigHash stores the last SHA1 hash of the loki configuration.
AnnotationLokiObjectStoreHash stores the last SHA1 hash of the loki object storage credetials.
AnnotationLokiTokenCCOAuthHash stores the SHA1 hash of the secret generated by the Cloud Credential Operator.
BearerTokenFile declares the path for bearer token file for service monitors.
DefaultContainerImage declares the default fallback for loki image.
DefaultLokiStackGatewayImage declares the default image for lokiStack-gateway.
EnvRelatedImageGateway is the environment variable to fetch the Gateway image pullspec.
EnvRelatedImageLoki is the environment variable to fetch the Loki image pullspec.
LabelCompactorComponent is the label value for the compactor component.
LabelDistributorComponent is the label value for the distributor component.
LabelGatewayComponent is the label value for the lokiStack-gateway component.
LabelIndexGatewayComponent is the label value for the lokiStack-index-gateway component.
LabelIngesterComponent is the label value for the ingester component.
LabelQuerierComponent is the label value for the querier component.
LabelQueryFrontendComponent is the label value for the query frontend component.
LabelRulerComponent is the label value for the lokiStack-ruler component.
MaxConfigMapDataSizeBytes is the maximum data size in bytes that a single ConfigMap may contain.
PrometheusCAFile declares the path for prometheus CA file for service monitors.
# Structs
GatewayTimeoutConfig contains the http server configuration options for all Loki components.
No description provided by the author
No description provided by the author
Options is a set of configuration values to use when building manifests such as resource sizes, etc.
No description provided by the author
Ruler configuration for manifests generation.
RulerSecret defines the ruler secret for remote write client auth.
ShardedConfigMap is the configmap data that is sharded across multiple configmaps in case MaxConfigMapDataSizeBytes is exceeded.
TenantConfig for tenant authorizationconfig.
TenantOIDCSpec stub config for OIDC configuration options (e.g.
TenantOPASpec stub config for OPA configuration options (e.g.
TenantOpenShiftSpec config for OpenShift authentication options (e.g.
Tenants contains the configuration per tenant and secrets for authn/authz.
TenantSecrets for tenant's authentication.
TimeoutConfig contains the server configuration options for all Loki components.
TLSProfileSpec is the desired behavior of a TLSProfileType.