Documentation ¶
Index ¶
Constants ¶
const ( // Name is the name of the Thanos Store component. Name = "thanos-store" // ComponentName is the name of the Thanos Store component. ComponentName = "object-storage-gateway" // HTTPPortName is the name of the HTTP port for the Thanos Store components. HTTPPortName = "http" // HTTPPort is the port number for the HTTP port for the Thanos Store components. HTTPPort = 10902 // GRPCPortName is the name of the gRPC port for the Thanos Store components. GRPCPortName = "grpc" // GRPCPort is the port number for the gRPC port for the Thanos Store components. GRPCPort = 10901 )
Variables ¶
This section is empty.
Functions ¶
func GetLabels ¶
GetLabels returns the labels that will be set as ObjectMeta labels for store resources.
func GetRequiredLabels ¶
GetRequiredLabels returns a map of labels that can be used to look up store resources. These labels are guaranteed to be present on all resources created by this package.
func GetRequiredStoreServiceLabel ¶
GetRequiredStoreServiceLabel returns the minimum set of labels that can be used to look up Services that implement the Store API. Implementations of manifests.Buildable that provide Store API services should include these labels in their Service ObjectMeta.
func NewStoreService ¶
NewStoreService creates a new Service for Thanos Store shard.
func NewStoreStatefulSet ¶
func NewStoreStatefulSet(opts Options) *appsv1.StatefulSet
NewStoreStatefulSet creates a new StatefulSet for the Thanos Store.
Types ¶
type Options ¶
type Options struct { manifests.Options StorageSize resource.Quantity ObjStoreSecret corev1.SecretKeySelector IndexCacheConfig manifests.CacheConfig CachingBucketConfig manifests.CacheConfig IgnoreDeletionMarksDelay manifests.Duration Min, Max manifests.Duration RelabelConfigs manifests.RelabelConfigs ShardIndex *int32 }
Options for Thanos Store components Name is the name of the Thanos Store component
func (Options) GetGeneratedResourceName ¶
GetGeneratedResourceName returns the name of the Thanos Store component. If a shard index is provided, the name will be suffixed with the shard index.
func (Options) GetSelectorLabels ¶
GetSelectorLabels returns a map of labels that can be used to select store resources.