Documentation
¶
Index ¶
- Constants
- func WithPodAntiAffinity(name string) *corev1.Affinity
- type CortexAlertManagerReconciler
- type CortexCompactorReconciler
- type CortexDistributorReconciler
- type CortexIngesterReconciler
- type CortexQuerierReconciler
- type CortexQueryFrontendReconciler
- type CortexReconciler
- type CortexRulerReconciler
- type CortexRuntimeConfigReconciler
- type CortexStoreGatewayReconciler
- type KubernetesResource
- func NewAlertManagerDeployment(req ctrl.Request, cortex *cortexv1alpha1.Cortex, ...) *KubernetesResource
- func NewAlertManagerService(req ctrl.Request) *KubernetesResource
- func NewCortexConfigMap(req ctrl.Request, cortex *cortexv1alpha1.Cortex) *KubernetesResource
- func NewCortexRuntimeConfigMap(req ctrl.Request, cortex *cortexv1alpha1.Cortex) (*KubernetesResource, error)
- func NewDeployment(req ctrl.Request, name string, cortex *cortexv1alpha1.Cortex, ...) *KubernetesResource
- func NewGossipRingService(req ctrl.Request) *KubernetesResource
- func NewIngesterStatefulSet(req ctrl.Request, name string, cortex *cortexv1alpha1.Cortex) *KubernetesResource
- func NewMemcachedService(req ctrl.Request, name string) *KubernetesResource
- func NewMemcachedStatefulSet(req ctrl.Request, name string, image string, ...) *KubernetesResource
- func NewRulerDeployment(req ctrl.Request, cortex *cortexv1alpha1.Cortex, ...) *KubernetesResource
- func NewRulerService(req ctrl.Request) *KubernetesResource
- func NewService(req ctrl.Request, name string) *KubernetesResource
- func NewServiceAccount(req ctrl.Request, cortex *cortexv1alpha1.Cortex) *KubernetesResource
- func NewStatefulSet(req ctrl.Request, name string, cortex *cortexv1alpha1.Cortex, ...) *KubernetesResource
- type KubernetesResourceReconciler
- type MemcachedReconciler
Constants ¶
const AlertManagerName = "alertmanager"
const CortexConfigMapNameSuffix = "-config"
const CortexConfigShasumAnnotationName = "cortex-operator/cortex-config-shasum"
const CortexConfigTemplate = `
`
const CortexRuntimeConfigMapNameSuffix = "-runtime-config"
const FinalizerName = "cortex.opstrace.io/finalizer"
const GossipRingServiceName = "gossip-ring"
const RulerName = "ruler"
const ServiceAccountName = "cortex"
Variables ¶
This section is empty.
Functions ¶
func WithPodAntiAffinity ¶
Types ¶
type CortexAlertManagerReconciler ¶
CortexAlertManagerReconciler reconciles a Cortex object and ensures the Cortex Alert Manager is deployed
func (*CortexAlertManagerReconciler) Reconcile ¶
func (r *CortexAlertManagerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile
func (*CortexAlertManagerReconciler) SetupWithManager ¶
func (r *CortexAlertManagerReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type CortexCompactorReconciler ¶
CortexCompactorReconciler reconciles a Cortex object and ensures the Cortex Compactor is deployed
func (*CortexCompactorReconciler) Reconcile ¶
func (r *CortexCompactorReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile
func (*CortexCompactorReconciler) SetupWithManager ¶
func (r *CortexCompactorReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type CortexDistributorReconciler ¶
CortexDistributorReconciler reconciles a Cortex object and ensures the Cortex Distributors are deployed
func (*CortexDistributorReconciler) Reconcile ¶
func (r *CortexDistributorReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile
func (*CortexDistributorReconciler) SetupWithManager ¶
func (r *CortexDistributorReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type CortexIngesterReconciler ¶
CortexIngesterReconciler reconciles a Cortex object and ensures the Cortex Ingesters are deployed
func (*CortexIngesterReconciler) Reconcile ¶
func (r *CortexIngesterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile
func (*CortexIngesterReconciler) SetupWithManager ¶
func (r *CortexIngesterReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type CortexQuerierReconciler ¶
CortexQuerierReconciler reconciles a Cortex object and ensures the Cortex Queriers are deployed
func (*CortexQuerierReconciler) Reconcile ¶
func (r *CortexQuerierReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile
func (*CortexQuerierReconciler) SetupWithManager ¶
func (r *CortexQuerierReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type CortexQueryFrontendReconciler ¶
CortexQueryFrontendReconciler reconciles a Cortex object and ensures the Cortex Query Frontend are deployed
func (*CortexQueryFrontendReconciler) Reconcile ¶
func (r *CortexQueryFrontendReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile
func (*CortexQueryFrontendReconciler) SetupWithManager ¶
func (r *CortexQueryFrontendReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type CortexReconciler ¶
CortexReconciler reconciles a Cortex object
func (*CortexReconciler) Reconcile ¶
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile
func (*CortexReconciler) SetupWithManager ¶
func (r *CortexReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type CortexRulerReconciler ¶
CortexRulerReconciler reconciles a Cortex object and ensures the Cortex Ruler is deployed
func (*CortexRulerReconciler) Reconcile ¶
func (r *CortexRulerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile
func (*CortexRulerReconciler) SetupWithManager ¶
func (r *CortexRulerReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type CortexRuntimeConfigReconciler ¶
CortexRuntimeConfigReconciler reconciles a Cortex object and ensures the Cortex runtime config map is updated accordingly.
func (*CortexRuntimeConfigReconciler) Reconcile ¶
func (r *CortexRuntimeConfigReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile
func (*CortexRuntimeConfigReconciler) SetupWithManager ¶
func (r *CortexRuntimeConfigReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type CortexStoreGatewayReconciler ¶
CortexStoreGatewayReconciler reconciles a Cortex object and ensures the Cortex Store Gateway is deployed
func (*CortexStoreGatewayReconciler) Reconcile ¶
func (r *CortexStoreGatewayReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile
func (*CortexStoreGatewayReconciler) SetupWithManager ¶
func (r *CortexStoreGatewayReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type KubernetesResource ¶
type KubernetesResource struct {
// contains filtered or unexported fields
}
func NewAlertManagerDeployment ¶
func NewAlertManagerDeployment( req ctrl.Request, cortex *cortexv1alpha1.Cortex, spec *cortexv1alpha1.DeploymentSpec, ) *KubernetesResource
func NewAlertManagerService ¶
func NewAlertManagerService(req ctrl.Request) *KubernetesResource
func NewCortexConfigMap ¶
func NewCortexConfigMap( req ctrl.Request, cortex *cortexv1alpha1.Cortex, ) *KubernetesResource
func NewCortexRuntimeConfigMap ¶
func NewCortexRuntimeConfigMap( req ctrl.Request, cortex *cortexv1alpha1.Cortex, ) (*KubernetesResource, error)
func NewDeployment ¶
func NewDeployment( req ctrl.Request, name string, cortex *cortexv1alpha1.Cortex, spec *cortexv1alpha1.DeploymentSpec, ) *KubernetesResource
func NewGossipRingService ¶
func NewGossipRingService(req ctrl.Request) *KubernetesResource
func NewIngesterStatefulSet ¶
func NewIngesterStatefulSet( req ctrl.Request, name string, cortex *cortexv1alpha1.Cortex, ) *KubernetesResource
func NewMemcachedService ¶
func NewMemcachedService(req ctrl.Request, name string) *KubernetesResource
func NewMemcachedStatefulSet ¶
func NewMemcachedStatefulSet( req ctrl.Request, name string, image string, spec *cortexv1alpha1.MemcachedStatefulSetSpec, ) *KubernetesResource
func NewRulerDeployment ¶
func NewRulerDeployment( req ctrl.Request, cortex *cortexv1alpha1.Cortex, spec *cortexv1alpha1.DeploymentSpec, ) *KubernetesResource
func NewRulerService ¶
func NewRulerService(req ctrl.Request) *KubernetesResource
func NewService ¶
func NewService(req ctrl.Request, name string) *KubernetesResource
func NewServiceAccount ¶
func NewServiceAccount(req ctrl.Request, cortex *cortexv1alpha1.Cortex) *KubernetesResource
func NewStatefulSet ¶
func NewStatefulSet( req ctrl.Request, name string, cortex *cortexv1alpha1.Cortex, spec *cortexv1alpha1.StatefulSetSpec, ) *KubernetesResource
type KubernetesResourceReconciler ¶
type KubernetesResourceReconciler struct {
// contains filtered or unexported fields
}
func (*KubernetesResourceReconciler) Reconcile ¶
func (krr *KubernetesResourceReconciler) Reconcile( ctx context.Context, r *KubernetesResource, ) error
type MemcachedReconciler ¶
MemacachedReconciler reconciles a Cortex object and ensures all Memcached resources are deployed
func (*MemcachedReconciler) Reconcile ¶
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile
func (*MemcachedReconciler) SetupWithManager ¶
func (r *MemcachedReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Source Files
¶
- cortex_alertmanager_controller.go
- cortex_compactor_controller.go
- cortex_controller.go
- cortex_default_config.go
- cortex_distributor_controller.go
- cortex_ingester_controller.go
- cortex_querier_controller.go
- cortex_query_frontend_controller.go
- cortex_ruler_controller.go
- cortex_runtime_config_controller.go
- cortex_store_gateway_controller.go
- helpers.go
- kubernetes_resource.go
- memcached_controller.go