package
0.0.0-20211220131229-8c8647d81953
Repository: https://github.com/viaq/loki-operator.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
ApplyDefaultSettings manipulates the options to conform to build specifications.
ApplyGatewayDefaultOptions applies defaults on the LokiStackSpec depending on selected tenant mode.
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.
BuildQuerier returns a list of k8s objects for Loki Querier.
BuildQueryFrontend returns a list of k8s objects for Loki QueryFrontend.
BuildServiceMonitors builds the service monitors.
CompactorName is the name of the compactor statefulset.
ComponentLabels is a list of all commonLabels including the loki.grafana.com/component:<component> label.
ConfigOptions converts Options to config.Options.
DefaultLokiStackSpec returns the default configuration for a LokiStack of the specified size.
DistributorName is the name of the distibutor 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.
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.
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.
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.
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.
NewQueryFrontendServiceMonitor creates a k8s service monitor for the query-frontend component.
QuerierName is the name of the querier deployment.
QueryFrontendName is the name of the query-frontend statefulset.
# Constants
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.
PrometheusCAFile declares the path for prometheus CA file for service monitors.
# Structs
FeatureFlags contains flags that activate various features.
ObjectStorage for storage config.
Options is a set of configuration values to use when building manifests such as resource sizes, etc.
TenantSecrets for clientID, clientSecret and issuerCAPath for tenant's authentication.