loki
Grafana Loki — horizontally-scalable, highly-available log aggregation
@r8s/crds/loki
Declared Operator
loki
version 5.47.0
Components (1)
LokiStack
Render a LokiStack (loki.grafana.com/v1) exactly as defined by its CRD.
import { LokiStackComponent } from '@r8s/crds/loki'
<LokiStackComponent
metadata={{ name: 'loki', namespace: 'monitoring' }}
spec={{
size: '1x.small',
storageClassName: 'standard',
storage: {
schemas: [{ version: 'v13', effectiveDate: '2024-01-01' }],
secret: { name: 'loki-storage', type: 's3' },
},
}}
/>
"hashRing"HashRingOptional—HashRing defines the spec for the distributed hash ring configuration.
"limits"LimitsOptional—Limits defines the limits to be applied to log stream processing.
"managementState""Managed" | "Unmanaged"Optional—ManagementState defines if the CR should be managed by the operator or not. Default is managed.
"networkPolicies"NetworkPoliciesOptional—NetworkPolicies defines the NetworkPolicies configuration for LokiStack components. When enabled, the operator creates NetworkPolicies to control ingress/egress between Loki components and related services.
"proxy"ProxyOptional—Proxy defines the spec for the object proxy to configure cluster proxy information.
"replication"ReplicationOptional—Replication defines the configuration for Loki data replication.
"replicationFactor"numberOptional—Deprecated: Please use replication.factor instead. This field will be removed in future versions of this CRD. ReplicationFactor defines the policy for log stream replication.
"rules"RulesOptional—Rules defines the spec for the ruler component.
"size""1x.demo" | "1x.pico" | "1x.extra-small" | "1x.small" | "1x.medium"Required—Size defines one of the support Loki deployment scale out sizes.
"storage"StorageRequired—Storage defines the spec for the object storage endpoint to store logs.
"storageClassName"stringRequired—Storage class name defines the storage class for ingester/querier PVCs.
"template"TemplateOptional—Template defines the resource/limits/tolerations/nodeselectors per component.
"tenants"TenantsOptional—Tenants defines the per-tenant authentication and authorization spec for the lokistack-gateway component.