OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.
Python
feat(operator): add docling components support (#1573)
rodageveac26ae119cba
diff --git a/kubernetes/operator/Makefile b/kubernetes/operator/Makefileindex 580cfeb38..134ff6d17 100644--- a/kubernetes/operator/Makefile+++ b/kubernetes/operator/Makefile@@ -106,7 +106,7 @@ endif.PHONY: installinstall: manifests kustomize ## Install CRDs into the cluster in ~/.kube/config.- $(KUSTOMIZE) build config/crd | kubectl apply -f -+ $(KUSTOMIZE) build config/crd | kubectl apply --server-side -f -.PHONY: uninstalluninstall: manifests kustomize ## Uninstall CRDs from the cluster.diff --git a/kubernetes/operator/api/v1alpha1/openrag_types.go b/kubernetes/operator/api/v1alpha1/openrag_types.goindex fa2ab6362..d0e835b64 100644--- a/kubernetes/operator/api/v1alpha1/openrag_types.go+++ b/kubernetes/operator/api/v1alpha1/openrag_types.go@@ -3,6 +3,7 @@package v1alpha1import (+ autoscalingv2 "k8s.io/api/autoscaling/v2"corev1 "k8s.io/api/core/v1""k8s.io/apimachinery/pkg/api/resource"metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"@@ -102,6 +103,35 @@ type ComponentSpec struct {// +optional// +kubebuilder:default=trueCreateService *bool `json:"createService,omitempty"`++ // PodSecurityContext holds pod-level security attributes.+ // +optional+ PodSecurityContext *corev1.PodSecurityContext `json:"podSecurityContext,omitempty"`++ // SecurityContext holds container-level security attributes.+ // +optional+ SecurityContext *corev1.SecurityContext `json:"securityContext,omitempty"`++ // TopologySpreadConstraints for high availability pod distribution.+ // +optional+ TopologySpreadConstraints []corev1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"`++ // ServiceType specifies the type of Service to create (ClusterIP, LoadBalancer, NodePort).+ // +optional+ // +kubebuilder:default=ClusterIP+ ServiceType corev1.ServiceType `json:"serviceType,omitempty"`++ // ServiceAnnotations are annotations to add to the Service resource.+ // +optional+ ServiceAnnotations map[string]string `json:"serviceAnnotations,omitempty"`++ // Command overrides the container's entrypoint.+ // +optional+ Command []string `json:"command,omitempty"`++ // Args overrides the container's command arguments.+ // +optional+ Args []string `json:"args,omitempty"`}// FrontendSpec configures the OpenRAG frontend (Next.js).@@ -240,6 +270,10 @@ type PersistenceSpec struct {// +kubebuilder:default="10Gi"Size resource.Quantity `json:"size,omitempty"`+ // AccessModes for the PVC. Defaults to ["ReadWriteOnce"].+ // +optional+ AccessModes []corev1.PersistentVolumeAccessMode `json:"accessModes,omitempty"`+// ExistingClaim reuses a pre-existing PVC instead of creating one.// +optionalExistingClaim string `json:"existingClaim,omitempty"`@@ -286,6 +320,282 @@ type DoclingSpec struct {Scheme string `json:"scheme,omitempty"`}+// DoclingServeSpec configures the Docling serve component (API server).+type DoclingServeSpec struct {+ ComponentSpec `json:",inline"`++ // Storage configures a PVC for model cache and temporary files.+ // +optional+ Storage *PersistenceSpec `json:"storage,omitempty"`++ // Port for the HTTP API.+ // +optional+ // +kubebuilder:default=5001+ Port int32 `json:"port,omitempty"`++ // LivenessProbe configures the liveness probe for the container.+ // +optional+ LivenessProbe *corev1.Probe `json:"livenessProbe,omitempty"`++ // ReadinessProbe configures the readiness probe for the container.+ // +optional+ ReadinessProbe *corev1.Probe `json:"readinessProbe,omitempty"`++ // HPA configures autoscaling for the docling-serve deployment.+ // +optional+ HPA *DoclingHPASpec `json:"hpa,omitempty"`++ // Config contains docling-specific configuration options.+ // +optional+ Config *DoclingConfig `json:"config,omitempty"`+}++// DoclingWorkerSpec configures the Docling worker component (document processing).+type DoclingWorkerSpec struct {+ ComponentSpec `json:",inline"`++ // Storage configures a PVC for processing workspace.+ // +optional+ Storage *PersistenceSpec `json:"storage,omitempty"`++ // QueueURL for worker communication (e.g., Redis, RabbitMQ).+ // Ignored when Valkey is enabled in DoclingComponentsSpec.+ // +optional+ QueueURL string `json:"queueUrl,omitempty"`++ // QueueURLSecret references a Secret key for the queue connection string.+ // Ignored when Valkey is enabled in DoclingComponentsSpec.+ // +optional+ QueueURLSecret *corev1.SecretKeySelector `json:"queueUrlSecret,omitempty"`++ // LivenessProbe configures the liveness probe for the container.+ // +optional+ LivenessProbe *corev1.Probe `json:"livenessProbe,omitempty"`++ // ReadinessProbe configures the readiness probe for the container.+ // +optional+ ReadinessProbe *corev1.Probe `json:"readinessProbe,omitempty"`++ // HPA configures autoscaling for the docling-worker deployment.+ // +optional+ HPA *DoclingHPASpec `json:"hpa,omitempty"`++ // Config contains docling-specific configuration options.+ // +optional+ Config *DoclingConfig `json:"config,omitempty"`++ // Concurrency sets the number of concurrent tasks per worker.+ // +optional+ // +kubebuilder:default=4+ // +kubebuilder:validation:Minimum=1+ Concurrency *int32 `json:"concurrency,omitempty"`+}++// ValkeySpec configures the Valkey (Redis-compatible) instance for docling queue.+type ValkeySpec struct {+ ComponentSpec `json:",inline"`++ // Port for the Valkey service.+ // +optional+ // +kubebuilder:default=6379+ Port int32 `json:"port,omitempty"`++ // Storage configures a PVC for Valkey data persistence.+ // +optional+ Storage *PersistenceSpec `json:"storage,omitempty"`++ // Password for Valkey authentication (optional).+ // +optional+ Password string `json:"password,omitempty"`++ // PasswordSecret references a Secret key for Valkey password.+ // +optional+ PasswordSecret *corev1.SecretKeySelector `json:"passwordSecret,omitempty"`++ // Database number to use (0-15).+ // +optional+ // +kubebuilder:default=0+ // +kubebuilder:validation:Minimum=0+ // +kubebuilder:validation:Maximum=15+ Database int32 `json:"database,omitempty"`++ // MaxMemory sets the max memory limit (e.g., "256mb", "1gb").+ // +optional+ MaxMemory string `json:"maxMemory,omitempty"`++ // MaxMemoryPolicy sets eviction policy (e.g., "allkeys-lru", "volatile-lru").+ // +optional+ // +kubebuilder:default="allkeys-lru"+ MaxMemoryPolicy string `json:"maxMemoryPolicy,omitempty"`+}++// DoclingConfig contains docling-specific configuration options for document processing.+type DoclingConfig struct {+ // OCR configures optical character recognition settings.+ // +optional+ OCR *DoclingOCRConfig `json:"ocr,omitempty"`++ // TableStructure configures table structure recognition settings.+ // +optional+ TableStructure *DoclingTableStructureConfig `json:"tableStructure,omitempty"`++ // Performance configures performance-related settings.+ // +optional+ Performance *DoclingPerformanceConfig `json:"performance,omitempty"`++ // Models configures which AI models to use for different tasks.+ // +optional+ Models *DoclingModelsConfig `json:"models,omitempty"`++ // ExtraEnv allows setting additional environment variables for docling configuration.+ // +optional+ ExtraEnv []corev1.EnvVar `json:"extraEnv,omitempty"`+}++// DoclingOCRConfig configures OCR (Optical Character Recognition) settings.+type DoclingOCRConfig struct {+ // Enabled controls whether OCR is enabled.+ // +optional+ // +kubebuilder:default=true+ Enabled *bool `json:"enabled,omitempty"`++ // Engine specifies the OCR engine to use (e.g., "easyocr", "tesseract").+ // +optional+ // +kubebuilder:default="easyocr"+ Engine string `json:"engine,omitempty"`++ // Languages is a list of language codes for OCR (e.g., ["en", "de", "fr"]).+ // +optional+ Languages []string `json:"languages,omitempty"`++ // ForceFullPageOCR forces OCR on all pages even if text is extractable.+ // +optional+ // +kubebuilder:default=false+ ForceFullPageOCR *bool `json:"forceFullPageOCR,omitempty"`+}++// DoclingTableStructureConfig configures table structure recognition settings.+type DoclingTableStructureConfig struct {+ // Enabled controls whether table structure recognition is enabled.+ // +optional+ // +kubebuilder:default=true+ Enabled *bool `json:"enabled,omitempty"`++ // Mode specifies the table extraction mode (e.g., "accurate", "fast").+ // +optional+ // +kubebuilder:default="accurate"+ Mode string `json:"mode,omitempty"`++ // MinConfidencePercent sets the minimum confidence threshold for table detection (0-100).+ // +optional+ // +kubebuilder:default=70+ // +kubebuilder:validation:Minimum=0+ // +kubebuilder:validation:Maximum=100+ MinConfidencePercent *int32 `json:"minConfidencePercent,omitempty"`+}++// DoclingPerformanceConfig configures performance-related settings.+type DoclingPerformanceConfig struct {+ // BatchSize sets the number of pages to process in a single batch.+ // +optional+ // +kubebuilder:default=10+ // +kubebuilder:validation:Minimum=1+ BatchSize *int32 `json:"batchSize,omitempty"`++ // MaxWorkers sets the maximum number of worker threads per process.+ // +optional+ // +kubebuilder:default=4+ // +kubebuilder:validation:Minimum=1+ MaxWorkers *int32 `json:"maxWorkers,omitempty"`++ // TimeoutSeconds sets the processing timeout per document in seconds.+ // +optional+ // +kubebuilder:default=300+ // +kubebuilder:validation:Minimum=1+ TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"`++ // EnableGPU enables GPU acceleration if available.+ // +optional+ // +kubebuilder:default=false+ EnableGPU *bool `json:"enableGPU,omitempty"`+}++// DoclingModelsConfig configures which AI models to use for different tasks.+type DoclingModelsConfig struct {+ // LayoutModel specifies the model for document layout analysis.+ // +optional+ LayoutModel string `json:"layoutModel,omitempty"`++ // OCRModel specifies the model for OCR.+ // +optional+ OCRModel string `json:"ocrModel,omitempty"`++ // TableModel specifies the model for table structure recognition.+ // +optional+ TableModel string `json:"tableModel,omitempty"`++ // ModelCachePath specifies where to cache downloaded models.+ // +optional+ // +kubebuilder:default="/models"+ ModelCachePath string `json:"modelCachePath,omitempty"`+}++// DoclingHPASpec configures HorizontalPodAutoscaler for docling components.+type DoclingHPASpec struct {+ // Enabled controls whether HPA is created.+ // +optional+ // +kubebuilder:default=false+ Enabled bool `json:"enabled,omitempty"`++ // MinReplicas is the lower limit for the number of replicas.+ // +optional+ // +kubebuilder:default=1+ // +kubebuilder:validation:Minimum=1+ MinReplicas *int32 `json:"minReplicas,omitempty"`++ // MaxReplicas is the upper limit for the number of replicas.+ // +kubebuilder:validation:Required+ // +kubebuilder:validation:Minimum=1+ MaxReplicas int32 `json:"maxReplicas"`++ // TargetCPUUtilizationPercentage is the target average CPU utilization.+ // +optional+ // +kubebuilder:validation:Minimum=1+ // +kubebuilder:validation:Maximum=100+ TargetCPUUtilizationPercentage *int32 `json:"targetCPUUtilizationPercentage,omitempty"`++ // TargetMemoryUtilizationPercentage is the target average memory utilization.+ // +optional+ // +kubebuilder:validation:Minimum=1+ // +kubebuilder:validation:Maximum=100+ TargetMemoryUtilizationPercentage *int32 `json:"targetMemoryUtilizationPercentage,omitempty"`++ // Behavior configures the scaling behavior (scale up/down policies, stabilization windows).+ // +optional+ Behavior *autoscalingv2.HorizontalPodAutoscalerBehavior `json:"behavior,omitempty"`+}++// DoclingComponentsSpec aggregates all docling-related components.+type DoclingComponentsSpec struct {+ // Enabled controls whether docling components are deployed.+ // +optional+ // +kubebuilder:default=false+ Enabled bool `json:"enabled,omitempty"`++ // Serve configures the docling-serve deployment.+ // +optional+ Serve *DoclingServeSpec `json:"serve,omitempty"`++ // Worker configures the docling-worker deployment.+ // +optional+ Worker *DoclingWorkerSpec `json:"worker,omitempty"`++ // Valkey configures an operator-managed Valkey instance for the queue.+ // When enabled, docling-worker automatically uses this Valkey instance.+ // +optional+ Valkey *ValkeySpec `json:"valkey,omitempty"`+}+// NetworkPolicySpec controls whether the operator creates a NetworkPolicy for Langflow.type NetworkPolicySpec struct {// +optional@@ -338,7 +648,13 @@ type OpenRAGSpec struct {// +optionalOpenSearch *OpenSearchSpec `json:"opensearch,omitempty"`- // Docling configures an optional external document-conversion service.+ // DoclingComponents configures optional docling document-processing components.+ // When enabled, deploys docling-serve and docling-worker alongside OpenRAG.+ // +optional+ DoclingComponents *DoclingComponentsSpec `json:"doclingComponents,omitempty"`++ // Docling configures an optional external document-conversion service (legacy).+ // Use DoclingComponents to deploy docling within the operator.// +optionalDocling *DoclingSpec `json:"docling,omitempty"`diff --git a/kubernetes/operator/api/v1alpha1/zz_generated.deepcopy.go b/kubernetes/operator/api/v1alpha1/zz_generated.deepcopy.goindex a26cc9ef5..17572b3ec 100644--- a/kubernetes/operator/api/v1alpha1/zz_generated.deepcopy.go+++ b/kubernetes/operator/api/v1alpha1/zz_generated.deepcopy.go@@ -21,6 +21,7 @@ limitations under the License.package v1alpha1import (+ "k8s.io/api/autoscaling/v2""k8s.io/api/core/v1"metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"runtime "k8s.io/apimachinery/pkg/runtime"@@ -140,6 +141,40 @@ func (in *ComponentSpec) DeepCopyInto(out *ComponentSpec) {*out = new(bool)**out = **in}+ if in.PodSecurityContext != nil {+ in, out := &in.PodSecurityContext, &out.PodSecurityContext+ *out = new(v1.PodSecurityContext)+ (*in).DeepCopyInto(*out)+ }+ if in.SecurityContext != nil {+ in, out := &in.SecurityContext, &out.SecurityContext+ *out = new(v1.SecurityContext)+ (*in).DeepCopyInto(*out)+ }+ if in.TopologySpreadConstraints != nil {+ in, out := &in.TopologySpreadConstraints, &out.TopologySpreadConstraints+ *out = make([]v1.TopologySpreadConstraint, len(*in))+ for i := range *in {+ (*in)[i].DeepCopyInto(&(*out)[i])+ }+ }+ if in.ServiceAnnotations != nil {+ in, out := &in.ServiceAnnotations, &out.ServiceAnnotations+ *out = make(map[string]string, len(*in))+ for key, val := range *in {+ (*out)[key] = val+ }+ }+ if in.Command != nil {+ in, out := &in.Command, &out.Command+ *out = make([]string, len(*in))+ copy(*out, *in)+ }+ if in.Args != nil {+ in, out := &in.Args, &out.Args+ *out = make([]string, len(*in))+ copy(*out, *in)+ }}// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentSpec.@@ -152,6 +187,234 @@ func (in *ComponentSpec) DeepCopy() *ComponentSpec {return out}+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.+func (in *DoclingComponentsSpec) DeepCopyInto(out *DoclingComponentsSpec) {+ *out = *in+ if in.Serve != nil {+ in, out := &in.Serve, &out.Serve+ *out = new(DoclingServeSpec)+ (*in).DeepCopyInto(*out)+ }+ if in.Worker != nil {+ in, out := &in.Worker, &out.Worker+ *out = new(DoclingWorkerSpec)+ (*in).DeepCopyInto(*out)+ }+ if in.Valkey != nil {+ in, out := &in.Valkey, &out.Valkey+ *out = new(ValkeySpec)+ (*in).DeepCopyInto(*out)+ }+}++// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DoclingComponentsSpec.+func (in *DoclingComponentsSpec) DeepCopy() *DoclingComponentsSpec {+ if in == nil {+ return nil+ }+ out := new(DoclingComponentsSpec)+ in.DeepCopyInto(out)+ return out+}++// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.+func (in *DoclingConfig) DeepCopyInto(out *DoclingConfig) {+ *out = *in+ if in.OCR != nil {+ in, out := &in.OCR, &out.OCR+ *out = new(DoclingOCRConfig)+ (*in).DeepCopyInto(*out)+ }+ if in.TableStructure != nil {+ in, out := &in.TableStructure, &out.TableStructure+ *out = new(DoclingTableStructureConfig)+ (*in).DeepCopyInto(*out)+ }+ if in.Performance != nil {+ in, out := &in.Performance, &out.Performance+ *out = new(DoclingPerformanceConfig)+ (*in).DeepCopyInto(*out)+ }+ if in.Models != nil {+ in, out := &in.Models, &out.Models+ *out = new(DoclingModelsConfig)+ **out = **in+ }+ if in.ExtraEnv != nil {+ in, out := &in.ExtraEnv, &out.ExtraEnv+ *out = make([]v1.EnvVar, len(*in))+ for i := range *in {+ (*in)[i].DeepCopyInto(&(*out)[i])+ }+ }+}++// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DoclingConfig.+func (in *DoclingConfig) DeepCopy() *DoclingConfig {+ if in == nil {+ return nil+ }+ out := new(DoclingConfig)+ in.DeepCopyInto(out)+ return out+}++// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.+func (in *DoclingHPASpec) DeepCopyInto(out *DoclingHPASpec) {+ *out = *in+ if in.MinReplicas != nil {+ in, out := &in.MinReplicas, &out.MinReplicas+ *out = new(int32)+ **out = **in+ }+ if in.TargetCPUUtilizationPercentage != nil {+ in, out := &in.TargetCPUUtilizationPercentage, &out.TargetCPUUtilizationPercentage+ *out = new(int32)+ **out = **in+ }+ if in.TargetMemoryUtilizationPercentage != nil {+ in, out := &in.TargetMemoryUtilizationPercentage, &out.TargetMemoryUtilizationPercentage+ *out = new(int32)+ **out = **in+ }+ if in.Behavior != nil {+ in, out := &in.Behavior, &out.Behavior+ *out = new(v2.HorizontalPodAutoscalerBehavior)+ (*in).DeepCopyInto(*out)+ }+}++// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DoclingHPASpec.+func (in *DoclingHPASpec) DeepCopy() *DoclingHPASpec {+ if in == nil {+ return nil+ }+ out := new(DoclingHPASpec)+ in.DeepCopyInto(out)+ return out+}++// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.+func (in *DoclingModelsConfig) DeepCopyInto(out *DoclingModelsConfig) {+ *out = *in+}++// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DoclingModelsConfig.+func (in *DoclingModelsConfig) DeepCopy() *DoclingModelsConfig {+ if in == nil {+ return nil+ }+ out := new(DoclingModelsConfig)+ in.DeepCopyInto(out)+ return out+}++// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.+func (in *DoclingOCRConfig) DeepCopyInto(out *DoclingOCRConfig) {+ *out = *in+ if in.Enabled != nil {+ in, out := &in.Enabled, &out.Enabled+ *out = new(bool)+ **out = **in+ }+ if in.Languages != nil {+ in, out := &in.Languages, &out.Languages+ *out = make([]string, len(*in))+ copy(*out, *in)+ }+ if in.ForceFullPageOCR != nil {+ in, out := &in.ForceFullPageOCR, &out.ForceFullPageOCR+ *out = new(bool)+ **out = **in+ }+}++// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DoclingOCRConfig.+func (in *DoclingOCRConfig) DeepCopy() *DoclingOCRConfig {+ if in == nil {+ return nil+ }+ out := new(DoclingOCRConfig)+ in.DeepCopyInto(out)+ return out+}++// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.+func (in *DoclingPerformanceConfig) DeepCopyInto(out *DoclingPerformanceConfig) {+ *out = *in+ if in.BatchSize != nil {+ in, out := &in.BatchSize, &out.BatchSize+ *out = new(int32)+ **out = **in+ }+ if in.MaxWorkers != nil {+ in, out := &in.MaxWorkers, &out.MaxWorkers+ *out = new(int32)+ **out = **in+ }+ if in.TimeoutSeconds != nil {+ in, out := &in.TimeoutSeconds, &out.TimeoutSeconds+ *out = new(int32)+ **out = **in+ }+ if in.EnableGPU != nil {+ in, out := &in.EnableGPU, &out.EnableGPU+ *out = new(bool)+ **out = **in+ }+}++// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DoclingPerformanceConfig.+func (in *DoclingPerformanceConfig) DeepCopy() *DoclingPerformanceConfig {+ if in == nil {+ return nil+ }+ out := new(DoclingPerformanceConfig)+ in.DeepCopyInto(out)+ return out+}++// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.+func (in *DoclingServeSpec) DeepCopyInto(out *DoclingServeSpec) {+ *out = *in+ in.ComponentSpec.DeepCopyInto(&out.ComponentSpec)+ if in.Storage != nil {+ in, out := &in.Storage, &out.Storage+ *out = new(PersistenceSpec)+ (*in).DeepCopyInto(*out)+ }+ if in.LivenessProbe != nil {+ in, out := &in.LivenessProbe, &out.LivenessProbe+ *out = new(v1.Probe)+ (*in).DeepCopyInto(*out)+ }+ if in.ReadinessProbe != nil {+ in, out := &in.ReadinessProbe, &out.ReadinessProbe+ *out = new(v1.Probe)+ (*in).DeepCopyInto(*out)+ }+ if in.HPA != nil {+ in, out := &in.HPA, &out.HPA+ *out = new(DoclingHPASpec)+ (*in).DeepCopyInto(*out)+ }+ if in.Config != nil {+ in, out := &in.Config, &out.Config+ *out = new(DoclingConfig)+ (*in).DeepCopyInto(*out)+ }+}++// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DoclingServeSpec.+func (in *DoclingServeSpec) DeepCopy() *DoclingServeSpec {+ if in == nil {+ return nil+ }+ out := new(DoclingServeSpec)+ in.DeepCopyInto(out)+ return out+}+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.func (in *DoclingSpec) DeepCopyInto(out *DoclingSpec) {*out = *in@@ -167,6 +430,82 @@ func (in *DoclingSpec) DeepCopy() *DoclingSpec {return out}+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.+func (in *DoclingTableStructureConfig) DeepCopyInto(out *DoclingTableStructureConfig) {+ *out = *in+ if in.Enabled != nil {+ in, out := &in.Enabled, &out.Enabled+ *out = new(bool)+ **out = **in+ }+ if in.MinConfidencePercent != nil {+ in, out := &in.MinConfidencePercent, &out.MinConfidencePercent+ *out = new(int32)+ **out = **in+ }+}++// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DoclingTableStructureConfig.+func (in *DoclingTableStructureConfig) DeepCopy() *DoclingTableStructureConfig {+ if in == nil {+ return nil+ }+ out := new(DoclingTableStructureConfig)+ in.DeepCopyInto(out)+ return out+}++// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.+func (in *DoclingWorkerSpec) DeepCopyInto(out *DoclingWorkerSpec) {+ *out = *in+ in.ComponentSpec.DeepCopyInto(&out.ComponentSpec)+ if in.Storage != nil {+ in, out := &in.Storage, &out.Storage+ *out = new(PersistenceSpec)+ (*in).DeepCopyInto(*out)+ }+ if in.QueueURLSecret != nil {+ in, out := &in.QueueURLSecret, &out.QueueURLSecret+ *out = new(v1.SecretKeySelector)+ (*in).DeepCopyInto(*out)+ }+ if in.LivenessProbe != nil {+ in, out := &in.LivenessProbe, &out.LivenessProbe+ *out = new(v1.Probe)+ (*in).DeepCopyInto(*out)+ }+ if in.ReadinessProbe != nil {+ in, out := &in.ReadinessProbe, &out.ReadinessProbe+ *out = new(v1.Probe)+ (*in).DeepCopyInto(*out)+ }+ if in.HPA != nil {+ in, out := &in.HPA, &out.HPA+ *out = new(DoclingHPASpec)+ (*in).DeepCopyInto(*out)+ }+ if in.Config != nil {+ in, out := &in.Config, &out.Config+ *out = new(DoclingConfig)+ (*in).DeepCopyInto(*out)+ }+ if in.Concurrency != nil {+ in, out := &in.Concurrency, &out.Concurrency+ *out = new(int32)+ **out = **in+ }+}++// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DoclingWorkerSpec.+func (in *DoclingWorkerSpec) DeepCopy() *DoclingWorkerSpec {+ if in == nil {+ return nil+ }+ out := new(DoclingWorkerSpec)+ in.DeepCopyInto(out)+ return out+}+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.func (in *EmbeddingSpec) DeepCopyInto(out *EmbeddingSpec) {*out = *in@@ -409,6 +748,11 @@ func (in *OpenRAGSpec) DeepCopyInto(out *OpenRAGSpec) {*out = new(OpenSearchSpec)**out = **in}+ if in.DoclingComponents != nil {+ in, out := &in.DoclingComponents, &out.DoclingComponents+ *out = new(DoclingComponentsSpec)+ (*in).DeepCopyInto(*out)+ }if in.Docling != nil {in, out := &in.Docling, &out.Docling*out = new(DoclingSpec)@@ -473,6 +817,11 @@ func (in *PersistenceSpec) DeepCopyInto(out *PersistenceSpec) {**out = **in}out.Size = in.Size.DeepCopy()+ if in.AccessModes != nil {+ in, out := &in.AccessModes, &out.AccessModes+ *out = make([]v1.PersistentVolumeAccessMode, len(*in))+ copy(*out, *in)+ }}// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistenceSpec.@@ -485,6 +834,32 @@ func (in *PersistenceSpec) DeepCopy() *PersistenceSpec {return out}+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.+func (in *ValkeySpec) DeepCopyInto(out *ValkeySpec) {+ *out = *in+ in.ComponentSpec.DeepCopyInto(&out.ComponentSpec)+ if in.Storage != nil {+ in, out := &in.Storage, &out.Storage+ *out = new(PersistenceSpec)+ (*in).DeepCopyInto(*out)+ }+ if in.PasswordSecret != nil {+ in, out := &in.PasswordSecret, &out.PasswordSecret+ *out = new(v1.SecretKeySelector)+ (*in).DeepCopyInto(*out)+ }+}++// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValkeySpec.+func (in *ValkeySpec) DeepCopy() *ValkeySpec {+ if in == nil {+ return nil+ }+ out := new(ValkeySpec)+ in.DeepCopyInto(out)+ return out+}+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.func (in *WatsonXSpec) DeepCopyInto(out *WatsonXSpec) {*out = *indiff --git a/kubernetes/operator/config/crd/bases/openr.ag_openrags.yaml b/kubernetes/operator/config/crd/bases/openr.ag_openrags.yamlindex d53d6a861..167b409d5 100644--- a/kubernetes/operator/config/crd/bases/openr.ag_openrags.yaml+++ b/kubernetes/operator/config/crd/bases/openr.ag_openrags.yaml@@ -988,6 +988,16 @@ spec:Useful for GitOps metadata, deployment tracking, and automation tools.maxProperties: 64type: object+ args:+ description: Args overrides the container's command arguments.+ items:+ type: string+ type: array+ command:+ description: Command overrides the container's entrypoint.+ items:+ type: string+ type: arraycreateService:default: truedescription: |-@@ -1317,6 +1327,238 @@ spec:Cannot override operator-managed labels.maxProperties: 64type: object+ podSecurityContext:+ description: PodSecurityContext holds pod-level security attributes.+ properties:+ appArmorProfile:+ description: |-+ appArmorProfile is the AppArmor options to use by the containers in this pod.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ localhostProfile:+ description: |-+ localhostProfile indicates a profile loaded on the node that should be used.+ The profile must be preconfigured on the node to work.+ Must match the loaded name of the profile.+ Must be set if and only if type is "Localhost".+ type: string+ type:+ description: |-+ type indicates which kind of AppArmor profile will be applied.+ Valid options are:+ Localhost - a profile pre-loaded on the node.+ RuntimeDefault - the container runtime's default profile.+ Unconfined - no AppArmor enforcement.+ type: string+ required:+ - type+ type: object+ fsGroup:+ description: |-+ A special supplemental group that applies to all containers in a pod.+ Some volume types allow the Kubelet to change the ownership of that volume+ to be owned by the pod:++ 1. The owning GID will be the FSGroup+ 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)+ 3. The permission bits are OR'd with rw-rw----++ If unset, the Kubelet will not modify the ownership and permissions of any volume.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ fsGroupChangePolicy:+ description: |-+ fsGroupChangePolicy defines behavior of changing ownership and permission of the volume+ before being exposed inside Pod. This field will only apply to+ volume types which support fsGroup based ownership(and permissions).+ It will have no effect on ephemeral volume types such as: secret, configmaps+ and emptydir.+ Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.+ Note that this field cannot be set when spec.os.name is windows.+ type: string+ runAsGroup:+ description: |-+ The GID to run the entrypoint of the container process.+ Uses runtime default if unset.+ May also be set in SecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence+ for that container.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ runAsNonRoot:+ description: |-+ Indicates that the container must run as a non-root user.+ If true, the Kubelet will validate the image at runtime to ensure that it+ does not run as UID 0 (root) and fail to start the container if it does.+ If unset or false, no such validation will be performed.+ May also be set in SecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ type: boolean+ runAsUser:+ description: |-+ The UID to run the entrypoint of the container process.+ Defaults to user specified in image metadata if unspecified.+ May also be set in SecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence+ for that container.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ seLinuxChangePolicy:+ description: |-+ seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod.+ It has no effect on nodes that do not support SELinux or to volumes does not support SELinux.+ Valid values are "MountOption" and "Recursive".++ "Recursive" means relabeling of all files on all Pod volumes by the container runtime.+ This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node.++ "MountOption" mounts all eligible Pod volumes with `-o context` mount option.+ This requires all Pods that share the same volume to use the same SELinux label.+ It is not possible to share the same volume among privileged and unprivileged Pods.+ Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes+ whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their+ CSIDriver instance. Other volumes are always re-labelled recursively.+ "MountOption" value is allowed only when SELinuxMount feature gate is enabled.++ If not specified and SELinuxMount feature gate is enabled, "MountOption" is used.+ If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes+ and "Recursive" for all other volumes.++ This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.++ All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state.+ Note that this field cannot be set when spec.os.name is windows.+ type: string+ seLinuxOptions:+ description: |-+ The SELinux context to be applied to all containers.+ If unspecified, the container runtime will allocate a random SELinux context for each+ container. May also be set in SecurityContext. If set in+ both SecurityContext and PodSecurityContext, the value specified in SecurityContext+ takes precedence for that container.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ level:+ description: Level is SELinux level label that applies+ to the container.+ type: string+ role:+ description: Role is a SELinux role label that applies+ to the container.+ type: string+ type:+ description: Type is a SELinux type label that applies+ to the container.+ type: string+ user:+ description: User is a SELinux user label that applies+ to the container.+ type: string+ type: object+ seccompProfile:+ description: |-+ The seccomp options to use by the containers in this pod.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ localhostProfile:+ description: |-+ localhostProfile indicates a profile defined in a file on the node should be used.+ The profile must be preconfigured on the node to work.+ Must be a descending path, relative to the kubelet's configured seccomp profile location.+ Must be set if type is "Localhost". Must NOT be set for any other type.+ type: string+ type:+ description: |-+ type indicates which kind of seccomp profile will be applied.+ Valid options are:++ Localhost - a profile defined in a file on the node should be used.+ RuntimeDefault - the container runtime default profile should be used.+ Unconfined - no profile should be applied.+ type: string+ required:+ - type+ type: object+ supplementalGroups:+ description: |-+ A list of groups applied to the first process run in each container, in+ addition to the container's primary GID and fsGroup (if specified). If+ the SupplementalGroupsPolicy feature is enabled, the+ supplementalGroupsPolicy field determines whether these are in addition+ to or instead of any group memberships defined in the container image.+ If unspecified, no additional groups are added, though group memberships+ defined in the container image may still be used, depending on the+ supplementalGroupsPolicy field.+ Note that this field cannot be set when spec.os.name is windows.+ items:+ format: int64+ type: integer+ type: array+ x-kubernetes-list-type: atomic+ supplementalGroupsPolicy:+ description: |-+ Defines how supplemental groups of the first container processes are calculated.+ Valid values are "Merge" and "Strict". If not specified, "Merge" is used.+ (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled+ and the container runtime must implement support for this feature.+ Note that this field cannot be set when spec.os.name is windows.+ type: string+ sysctls:+ description: |-+ Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported+ sysctls (by the container runtime) might fail to launch.+ Note that this field cannot be set when spec.os.name is windows.+ items:+ description: Sysctl defines a kernel parameter to be set+ properties:+ name:+ description: Name of a property to set+ type: string+ value:+ description: Value of a property to set+ type: string+ required:+ - name+ - value+ type: object+ type: array+ x-kubernetes-list-type: atomic+ windowsOptions:+ description: |-+ The Windows specific settings applied to all containers.+ If unspecified, the options within a container's SecurityContext will be used.+ If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is linux.+ properties:+ gmsaCredentialSpec:+ description: |-+ GMSACredentialSpec is where the GMSA admission webhook+ (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the+ GMSA credential spec named by the GMSACredentialSpecName field.+ type: string+ gmsaCredentialSpecName:+ description: GMSACredentialSpecName is the name of the+ GMSA credential spec to use.+ type: string+ hostProcess:+ description: |-+ HostProcess determines if a container should be run as a 'Host Process' container.+ All of a Pod's containers must have the same effective HostProcess value+ (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).+ In addition, if HostProcess is true then HostNetwork must also be set to true.+ type: boolean+ runAsUserName:+ description: |-+ The UserName in Windows to run the entrypoint of the container process.+ Defaults to the user specified in image metadata if unspecified.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ type: string+ type: object+ type: objectreplicas:default: 1format: int32@@ -1331,151 +1573,7820 @@ spec:Claims lists the names of resources, defined in spec.resourceClaims,that are used by this container.- This is an alpha field and requires enabling the- DynamicResourceAllocation feature gate.+ This is an alpha field and requires enabling the+ DynamicResourceAllocation feature gate.++ This field is immutable. It can only be set for containers.+ items:+ description: ResourceClaim references one entry in PodSpec.ResourceClaims.+ properties:+ name:+ description: |-+ Name must match the name of one entry in pod.spec.resourceClaims of+ the Pod where this field is used. It makes that resource available+ inside a container.+ type: string+ request:+ description: |-+ Request is the name chosen for a request in the referenced claim.+ If empty, everything from the claim is made available, otherwise+ only the result of this request.+ type: string+ required:+ - name+ type: object+ type: array+ x-kubernetes-list-map-keys:+ - name+ x-kubernetes-list-type: map+ limits:+ additionalProperties:+ anyOf:+ - type: integer+ - type: string+ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$+ x-kubernetes-int-or-string: true+ description: |-+ Limits describes the maximum amount of compute resources allowed.+ More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/+ type: object+ requests:+ additionalProperties:+ anyOf:+ - type: integer+ - type: string+ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$+ x-kubernetes-int-or-string: true+ description: |-+ Requests describes the minimum amount of compute resources required.+ If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,+ otherwise to an implementation-defined value. Requests cannot exceed Limits.+ More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/+ type: object+ type: object+ securityContext:+ description: SecurityContext holds container-level security attributes.+ properties:+ allowPrivilegeEscalation:+ description: |-+ AllowPrivilegeEscalation controls whether a process can gain more+ privileges than its parent process. This bool directly controls if+ the no_new_privs flag will be set on the container process.+ AllowPrivilegeEscalation is true always when the container is:+ 1) run as Privileged+ 2) has CAP_SYS_ADMIN+ Note that this field cannot be set when spec.os.name is windows.+ type: boolean+ appArmorProfile:+ description: |-+ appArmorProfile is the AppArmor options to use by this container. If set, this profile+ overrides the pod's appArmorProfile.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ localhostProfile:+ description: |-+ localhostProfile indicates a profile loaded on the node that should be used.+ The profile must be preconfigured on the node to work.+ Must match the loaded name of the profile.+ Must be set if and only if type is "Localhost".+ type: string+ type:+ description: |-+ type indicates which kind of AppArmor profile will be applied.+ Valid options are:+ Localhost - a profile pre-loaded on the node.+ RuntimeDefault - the container runtime's default profile.+ Unconfined - no AppArmor enforcement.+ type: string+ required:+ - type+ type: object+ capabilities:+ description: |-+ The capabilities to add/drop when running containers.+ Defaults to the default set of capabilities granted by the container runtime.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ add:+ description: Added capabilities+ items:+ description: Capability represent POSIX capabilities+ type+ type: string+ type: array+ x-kubernetes-list-type: atomic+ drop:+ description: Removed capabilities+ items:+ description: Capability represent POSIX capabilities+ type+ type: string+ type: array+ x-kubernetes-list-type: atomic+ type: object+ privileged:+ description: |-+ Run container in privileged mode.+ Processes in privileged containers are essentially equivalent to root on the host.+ Defaults to false.+ Note that this field cannot be set when spec.os.name is windows.+ type: boolean+ procMount:+ description: |-+ procMount denotes the type of proc mount to use for the containers.+ The default value is Default which uses the container runtime defaults for+ readonly paths and masked paths.+ This requires the ProcMountType feature flag to be enabled.+ Note that this field cannot be set when spec.os.name is windows.+ type: string+ readOnlyRootFilesystem:+ description: |-+ Whether this container has a read-only root filesystem.+ Default is false.+ Note that this field cannot be set when spec.os.name is windows.+ type: boolean+ runAsGroup:+ description: |-+ The GID to run the entrypoint of the container process.+ Uses runtime default if unset.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ runAsNonRoot:+ description: |-+ Indicates that the container must run as a non-root user.+ If true, the Kubelet will validate the image at runtime to ensure that it+ does not run as UID 0 (root) and fail to start the container if it does.+ If unset or false, no such validation will be performed.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ type: boolean+ runAsUser:+ description: |-+ The UID to run the entrypoint of the container process.+ Defaults to user specified in image metadata if unspecified.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ seLinuxOptions:+ description: |-+ The SELinux context to be applied to the container.+ If unspecified, the container runtime will allocate a random SELinux context for each+ container. May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ level:+ description: Level is SELinux level label that applies+ to the container.+ type: string+ role:+ description: Role is a SELinux role label that applies+ to the container.+ type: string+ type:+ description: Type is a SELinux type label that applies+ to the container.+ type: string+ user:+ description: User is a SELinux user label that applies+ to the container.+ type: string+ type: object+ seccompProfile:+ description: |-+ The seccomp options to use by this container. If seccomp options are+ provided at both the pod & container level, the container options+ override the pod options.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ localhostProfile:+ description: |-+ localhostProfile indicates a profile defined in a file on the node should be used.+ The profile must be preconfigured on the node to work.+ Must be a descending path, relative to the kubelet's configured seccomp profile location.+ Must be set if type is "Localhost". Must NOT be set for any other type.+ type: string+ type:+ description: |-+ type indicates which kind of seccomp profile will be applied.+ Valid options are:++ Localhost - a profile defined in a file on the node should be used.+ RuntimeDefault - the container runtime default profile should be used.+ Unconfined - no profile should be applied.+ type: string+ required:+ - type+ type: object+ windowsOptions:+ description: |-+ The Windows specific settings applied to all containers.+ If unspecified, the options from the PodSecurityContext will be used.+ If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is linux.+ properties:+ gmsaCredentialSpec:+ description: |-+ GMSACredentialSpec is where the GMSA admission webhook+ (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the+ GMSA credential spec named by the GMSACredentialSpecName field.+ type: string+ gmsaCredentialSpecName:+ description: GMSACredentialSpecName is the name of the+ GMSA credential spec to use.+ type: string+ hostProcess:+ description: |-+ HostProcess determines if a container should be run as a 'Host Process' container.+ All of a Pod's containers must have the same effective HostProcess value+ (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).+ In addition, if HostProcess is true then HostNetwork must also be set to true.+ type: boolean+ runAsUserName:+ description: |-+ The UserName in Windows to run the entrypoint of the container process.+ Defaults to the user specified in image metadata if unspecified.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ type: string+ type: object+ type: object+ serviceAccountName:+ description: |-+ ServiceAccountName is the name of the ServiceAccount to use for this component's pod.+ When CreateServiceAccount is true, the operator will create a ServiceAccount with this name.+ When CreateServiceAccount is false, the ServiceAccount must already exist in the target namespace.+ If not specified, defaults to "openrag-{role}" (e.g., "openrag-fe", "openrag-be", "openrag-lf").+ type: string+ serviceAnnotations:+ additionalProperties:+ type: string+ description: ServiceAnnotations are annotations to add to the+ Service resource.+ type: object+ serviceName:+ description: |-+ ServiceName is the name of the Service to use for this component.+ When CreateService is true, the operator will create a Service with this name.+ When CreateService is false, the Service must already exist in the target namespace.+ If not specified, defaults to "openrag-{role}" (e.g., "openrag-fe", "openrag-be", "openrag-lf").+ type: string+ serviceType:+ default: ClusterIP+ description: ServiceType specifies the type of Service to create+ (ClusterIP, LoadBalancer, NodePort).+ type: string+ storage:+ description: Storage configures a PVC mounted at /app/backend-data.+ properties:+ accessModes:+ description: AccessModes for the PVC. Defaults to ["ReadWriteOnce"].+ items:+ type: string+ type: array+ enabled:+ default: true+ type: boolean+ existingClaim:+ description: ExistingClaim reuses a pre-existing PVC instead+ of creating one.+ type: string+ size:+ anyOf:+ - type: integer+ - type: string+ default: 10Gi+ description: Size of the PVC. Defaults to 10Gi.+ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$+ x-kubernetes-int-or-string: true+ storageClassName:+ description: StorageClassName passed to the PVC. Defaults+ to the cluster default.+ type: string+ type: object+ tolerations:+ items:+ description: |-+ The pod this Toleration is attached to tolerates any taint that matches+ the triple <key,value,effect> using the matching operator <operator>.+ properties:+ effect:+ description: |-+ Effect indicates the taint effect to match. Empty means match all taint effects.+ When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.+ type: string+ key:+ description: |-+ Key is the taint key that the toleration applies to. Empty means match all taint keys.+ If the key is empty, operator must be Exists; this combination means to match all values and all keys.+ type: string+ operator:+ description: |-+ Operator represents a key's relationship to the value.+ Valid operators are Exists and Equal. Defaults to Equal.+ Exists is equivalent to wildcard for value, so that a pod can+ tolerate all taints of a particular category.+ type: string+ tolerationSeconds:+ description: |-+ TolerationSeconds represents the period of time the toleration (which must be+ of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,+ it is not set, which means tolerate the taint forever (do not evict). Zero and+ negative values will be treated as 0 (evict immediately) by the system.+ format: int64+ type: integer+ value:+ description: |-+ Value is the taint value the toleration matches to.+ If the operator is Exists, the value should be empty, otherwise just a regular string.+ type: string+ type: object+ type: array+ topologySpreadConstraints:+ description: TopologySpreadConstraints for high availability pod+ distribution.+ items:+ description: TopologySpreadConstraint specifies how to spread+ matching pods among the given topology.+ properties:+ labelSelector:+ description: |-+ LabelSelector is used to find matching pods.+ Pods that match this label selector are counted to determine the number of pods+ in their corresponding topology domain.+ properties:+ matchExpressions:+ description: matchExpressions is a list of label selector+ requirements. The requirements are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label key that the selector+ applies to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ matchLabelKeys:+ description: |-+ MatchLabelKeys is a set of pod label keys to select the pods over which+ spreading will be calculated. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are ANDed with labelSelector+ to select the group of existing pods over which spreading will be calculated+ for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector.+ MatchLabelKeys cannot be set when LabelSelector isn't set.+ Keys that don't exist in the incoming pod labels will+ be ignored. A null or empty list means only match against labelSelector.++ This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ maxSkew:+ description: |-+ MaxSkew describes the degree to which pods may be unevenly distributed.+ When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference+ between the number of matching pods in the target topology and the global minimum.+ The global minimum is the minimum number of matching pods in an eligible domain+ or zero if the number of eligible domains is less than MinDomains.+ For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same+ labelSelector spread as 2/2/1:+ In this case, the global minimum is 1.+ | zone1 | zone2 | zone3 |+ | P P | P P | P |+ - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2;+ scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2)+ violate MaxSkew(1).+ - if MaxSkew is 2, incoming pod can be scheduled onto any zone.+ When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence+ to topologies that satisfy it.+ It's a required field. Default value is 1 and 0 is not allowed.+ format: int32+ type: integer+ minDomains:+ description: |-+ MinDomains indicates a minimum number of eligible domains.+ When the number of eligible domains with matching topology keys is less than minDomains,+ Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed.+ And when the number of eligible domains with matching topology keys equals or greater than minDomains,+ this value has no effect on scheduling.+ As a result, when the number of eligible domains is less than minDomains,+ scheduler won't schedule more than maxSkew Pods to those domains.+ If value is nil, the constraint behaves as if MinDomains is equal to 1.+ Valid values are integers greater than 0.+ When value is not nil, WhenUnsatisfiable must be DoNotSchedule.++ For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same+ labelSelector spread as 2/2/2:+ | zone1 | zone2 | zone3 |+ | P P | P P | P P |+ The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0.+ In this situation, new pod with the same labelSelector cannot be scheduled,+ because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones,+ it will violate MaxSkew.+ format: int32+ type: integer+ nodeAffinityPolicy:+ description: |-+ NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector+ when calculating pod topology spread skew. Options are:+ - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations.+ - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.++ If this value is nil, the behavior is equivalent to the Honor policy.+ type: string+ nodeTaintsPolicy:+ description: |-+ NodeTaintsPolicy indicates how we will treat node taints when calculating+ pod topology spread skew. Options are:+ - Honor: nodes without taints, along with tainted nodes for which the incoming pod+ has a toleration, are included.+ - Ignore: node taints are ignored. All nodes are included.++ If this value is nil, the behavior is equivalent to the Ignore policy.+ type: string+ topologyKey:+ description: |-+ TopologyKey is the key of node labels. Nodes that have a label with this key+ and identical values are considered to be in the same topology.+ We consider each <key, value> as a "bucket", and try to put balanced number+ of pods into each bucket.+ We define a domain as a particular instance of a topology.+ Also, we define an eligible domain as a domain whose nodes meet the requirements of+ nodeAffinityPolicy and nodeTaintsPolicy.+ e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology.+ And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology.+ It's a required field.+ type: string+ whenUnsatisfiable:+ description: |-+ WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy+ the spread constraint.+ - DoNotSchedule (default) tells the scheduler not to schedule it.+ - ScheduleAnyway tells the scheduler to schedule the pod in any location,+ but giving higher precedence to topologies that would help reduce the+ skew.+ A constraint is considered "Unsatisfiable" for an incoming pod+ if and only if every possible node assignment for that pod would violate+ "MaxSkew" on some topology.+ For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same+ labelSelector spread as 3/1/1:+ | zone1 | zone2 | zone3 |+ | P P P | P | P |+ If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled+ to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies+ MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler+ won't make it *more* imbalanced.+ It's a required field.+ type: string+ required:+ - maxSkew+ - topologyKey+ - whenUnsatisfiable+ type: object+ type: array+ required:+ - image+ type: object+ docling:+ description: |-+ Docling configures an optional external document-conversion service (legacy).+ Use DoclingComponents to deploy docling within the operator.+ properties:+ host:+ description: Host is the Docling service hostname or IP.+ type: string+ port:+ default: 5001+ format: int32+ type: integer+ scheme:+ default: http+ type: string+ required:+ - host+ type: object+ doclingComponents:+ description: |-+ DoclingComponents configures optional docling document-processing components.+ When enabled, deploys docling-serve and docling-worker alongside OpenRAG.+ properties:+ enabled:+ default: false+ description: Enabled controls whether docling components are deployed.+ type: boolean+ serve:+ description: Serve configures the docling-serve deployment.+ properties:+ affinity:+ description: Affinity is a group of affinity scheduling rules.+ properties:+ nodeAffinity:+ description: Describes node affinity scheduling rules+ for the pod.+ properties:+ preferredDuringSchedulingIgnoredDuringExecution:+ description: |-+ The scheduler will prefer to schedule pods to nodes that satisfy+ the affinity expressions specified by this field, but it may choose+ a node that violates one or more of the expressions. The node that is+ most preferred is the one with the greatest sum of weights, i.e.+ for each node that meets all of the scheduling requirements (resource+ request, requiredDuringScheduling affinity expressions, etc.),+ compute a sum by iterating through the elements of this field and adding+ "weight" to the sum if the node matches the corresponding matchExpressions; the+ node(s) with the highest sum are the most preferred.+ items:+ description: |-+ An empty preferred scheduling term matches all objects with implicit weight 0+ (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).+ properties:+ preference:+ description: A node selector term, associated+ with the corresponding weight.+ properties:+ matchExpressions:+ description: A list of node selector requirements+ by node's labels.+ items:+ description: |-+ A node selector requirement is a selector that contains values, a key, and an operator+ that relates the key and values.+ properties:+ key:+ description: The label key that the+ selector applies to.+ type: string+ operator:+ description: |-+ Represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.+ type: string+ values:+ description: |-+ An array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. If the operator is Gt or Lt, the values+ array must have a single element, which will be interpreted as an integer.+ This array is replaced during a strategic merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchFields:+ description: A list of node selector requirements+ by node's fields.+ items:+ description: |-+ A node selector requirement is a selector that contains values, a key, and an operator+ that relates the key and values.+ properties:+ key:+ description: The label key that the+ selector applies to.+ type: string+ operator:+ description: |-+ Represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.+ type: string+ values:+ description: |-+ An array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. If the operator is Gt or Lt, the values+ array must have a single element, which will be interpreted as an integer.+ This array is replaced during a strategic merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ type: object+ x-kubernetes-map-type: atomic+ weight:+ description: Weight associated with matching+ the corresponding nodeSelectorTerm, in the+ range 1-100.+ format: int32+ type: integer+ required:+ - preference+ - weight+ type: object+ type: array+ x-kubernetes-list-type: atomic+ requiredDuringSchedulingIgnoredDuringExecution:+ description: |-+ If the affinity requirements specified by this field are not met at+ scheduling time, the pod will not be scheduled onto the node.+ If the affinity requirements specified by this field cease to be met+ at some point during pod execution (e.g. due to an update), the system+ may or may not try to eventually evict the pod from its node.+ properties:+ nodeSelectorTerms:+ description: Required. A list of node selector+ terms. The terms are ORed.+ items:+ description: |-+ A null or empty node selector term matches no objects. The requirements of+ them are ANDed.+ The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.+ properties:+ matchExpressions:+ description: A list of node selector requirements+ by node's labels.+ items:+ description: |-+ A node selector requirement is a selector that contains values, a key, and an operator+ that relates the key and values.+ properties:+ key:+ description: The label key that the+ selector applies to.+ type: string+ operator:+ description: |-+ Represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.+ type: string+ values:+ description: |-+ An array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. If the operator is Gt or Lt, the values+ array must have a single element, which will be interpreted as an integer.+ This array is replaced during a strategic merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchFields:+ description: A list of node selector requirements+ by node's fields.+ items:+ description: |-+ A node selector requirement is a selector that contains values, a key, and an operator+ that relates the key and values.+ properties:+ key:+ description: The label key that the+ selector applies to.+ type: string+ operator:+ description: |-+ Represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.+ type: string+ values:+ description: |-+ An array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. If the operator is Gt or Lt, the values+ array must have a single element, which will be interpreted as an integer.+ This array is replaced during a strategic merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ type: object+ x-kubernetes-map-type: atomic+ type: array+ x-kubernetes-list-type: atomic+ required:+ - nodeSelectorTerms+ type: object+ x-kubernetes-map-type: atomic+ type: object+ podAffinity:+ description: Describes pod affinity scheduling rules (e.g.+ co-locate this pod in the same node, zone, etc. as some+ other pod(s)).+ properties:+ preferredDuringSchedulingIgnoredDuringExecution:+ description: |-+ The scheduler will prefer to schedule pods to nodes that satisfy+ the affinity expressions specified by this field, but it may choose+ a node that violates one or more of the expressions. The node that is+ most preferred is the one with the greatest sum of weights, i.e.+ for each node that meets all of the scheduling requirements (resource+ request, requiredDuringScheduling affinity expressions, etc.),+ compute a sum by iterating through the elements of this field and adding+ "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the+ node(s) with the highest sum are the most preferred.+ items:+ description: The weights of all of the matched WeightedPodAffinityTerm+ fields are added per-node to find the most preferred+ node(s)+ properties:+ podAffinityTerm:+ description: Required. A pod affinity term,+ associated with the corresponding weight.+ properties:+ labelSelector:+ description: |-+ A label query over a set of resources, in this case pods.+ If it's null, this PodAffinityTerm matches with no Pods.+ properties:+ matchExpressions:+ description: matchExpressions is a list+ of label selector requirements. The+ requirements are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label+ key that the selector applies+ to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ matchLabelKeys:+ description: |-+ MatchLabelKeys is a set of pod label keys to select which pods will+ be taken into consideration. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`+ to select the group of existing pods which pods will be taken into consideration+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming+ pod labels will be ignored. The default value is empty.+ The same key is forbidden to exist in both matchLabelKeys and labelSelector.+ Also, matchLabelKeys cannot be set when labelSelector isn't set.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ mismatchLabelKeys:+ description: |-+ MismatchLabelKeys is a set of pod label keys to select which pods will+ be taken into consideration. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`+ to select the group of existing pods which pods will be taken into consideration+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming+ pod labels will be ignored. The default value is empty.+ The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.+ Also, mismatchLabelKeys cannot be set when labelSelector isn't set.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ namespaceSelector:+ description: |-+ A label query over the set of namespaces that the term applies to.+ The term is applied to the union of the namespaces selected by this field+ and the ones listed in the namespaces field.+ null selector and null or empty namespaces list means "this pod's namespace".+ An empty selector ({}) matches all namespaces.+ properties:+ matchExpressions:+ description: matchExpressions is a list+ of label selector requirements. The+ requirements are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label+ key that the selector applies+ to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ namespaces:+ description: |-+ namespaces specifies a static list of namespace names that the term applies to.+ The term is applied to the union of the namespaces listed in this field+ and the ones selected by namespaceSelector.+ null or empty namespaces list and null namespaceSelector means "this pod's namespace".+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ topologyKey:+ description: |-+ This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching+ the labelSelector in the specified namespaces, where co-located is defined as running on a node+ whose value of the label with key topologyKey matches that of any node on which any of the+ selected pods is running.+ Empty topologyKey is not allowed.+ type: string+ required:+ - topologyKey+ type: object+ weight:+ description: |-+ weight associated with matching the corresponding podAffinityTerm,+ in the range 1-100.+ format: int32+ type: integer+ required:+ - podAffinityTerm+ - weight+ type: object+ type: array+ x-kubernetes-list-type: atomic+ requiredDuringSchedulingIgnoredDuringExecution:+ description: |-+ If the affinity requirements specified by this field are not met at+ scheduling time, the pod will not be scheduled onto the node.+ If the affinity requirements specified by this field cease to be met+ at some point during pod execution (e.g. due to a pod label update), the+ system may or may not try to eventually evict the pod from its node.+ When there are multiple elements, the lists of nodes corresponding to each+ podAffinityTerm are intersected, i.e. all terms must be satisfied.+ items:+ description: |-+ Defines a set of pods (namely those matching the labelSelector+ relative to the given namespace(s)) that this pod should be+ co-located (affinity) or not co-located (anti-affinity) with,+ where co-located is defined as running on a node whose value of+ the label with key <topologyKey> matches that of any node on which+ a pod of the set of pods is running+ properties:+ labelSelector:+ description: |-+ A label query over a set of resources, in this case pods.+ If it's null, this PodAffinityTerm matches with no Pods.+ properties:+ matchExpressions:+ description: matchExpressions is a list+ of label selector requirements. The requirements+ are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label key+ that the selector applies to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ matchLabelKeys:+ description: |-+ MatchLabelKeys is a set of pod label keys to select which pods will+ be taken into consideration. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`+ to select the group of existing pods which pods will be taken into consideration+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming+ pod labels will be ignored. The default value is empty.+ The same key is forbidden to exist in both matchLabelKeys and labelSelector.+ Also, matchLabelKeys cannot be set when labelSelector isn't set.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ mismatchLabelKeys:+ description: |-+ MismatchLabelKeys is a set of pod label keys to select which pods will+ be taken into consideration. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`+ to select the group of existing pods which pods will be taken into consideration+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming+ pod labels will be ignored. The default value is empty.+ The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.+ Also, mismatchLabelKeys cannot be set when labelSelector isn't set.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ namespaceSelector:+ description: |-+ A label query over the set of namespaces that the term applies to.+ The term is applied to the union of the namespaces selected by this field+ and the ones listed in the namespaces field.+ null selector and null or empty namespaces list means "this pod's namespace".+ An empty selector ({}) matches all namespaces.+ properties:+ matchExpressions:+ description: matchExpressions is a list+ of label selector requirements. The requirements+ are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label key+ that the selector applies to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ namespaces:+ description: |-+ namespaces specifies a static list of namespace names that the term applies to.+ The term is applied to the union of the namespaces listed in this field+ and the ones selected by namespaceSelector.+ null or empty namespaces list and null namespaceSelector means "this pod's namespace".+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ topologyKey:+ description: |-+ This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching+ the labelSelector in the specified namespaces, where co-located is defined as running on a node+ whose value of the label with key topologyKey matches that of any node on which any of the+ selected pods is running.+ Empty topologyKey is not allowed.+ type: string+ required:+ - topologyKey+ type: object+ type: array+ x-kubernetes-list-type: atomic+ type: object+ podAntiAffinity:+ description: Describes pod anti-affinity scheduling rules+ (e.g. avoid putting this pod in the same node, zone,+ etc. as some other pod(s)).+ properties:+ preferredDuringSchedulingIgnoredDuringExecution:+ description: |-+ The scheduler will prefer to schedule pods to nodes that satisfy+ the anti-affinity expressions specified by this field, but it may choose+ a node that violates one or more of the expressions. The node that is+ most preferred is the one with the greatest sum of weights, i.e.+ for each node that meets all of the scheduling requirements (resource+ request, requiredDuringScheduling anti-affinity expressions, etc.),+ compute a sum by iterating through the elements of this field and adding+ "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the+ node(s) with the highest sum are the most preferred.+ items:+ description: The weights of all of the matched WeightedPodAffinityTerm+ fields are added per-node to find the most preferred+ node(s)+ properties:+ podAffinityTerm:+ description: Required. A pod affinity term,+ associated with the corresponding weight.+ properties:+ labelSelector:+ description: |-+ A label query over a set of resources, in this case pods.+ If it's null, this PodAffinityTerm matches with no Pods.+ properties:+ matchExpressions:+ description: matchExpressions is a list+ of label selector requirements. The+ requirements are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label+ key that the selector applies+ to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ matchLabelKeys:+ description: |-+ MatchLabelKeys is a set of pod label keys to select which pods will+ be taken into consideration. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`+ to select the group of existing pods which pods will be taken into consideration+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming+ pod labels will be ignored. The default value is empty.+ The same key is forbidden to exist in both matchLabelKeys and labelSelector.+ Also, matchLabelKeys cannot be set when labelSelector isn't set.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ mismatchLabelKeys:+ description: |-+ MismatchLabelKeys is a set of pod label keys to select which pods will+ be taken into consideration. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`+ to select the group of existing pods which pods will be taken into consideration+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming+ pod labels will be ignored. The default value is empty.+ The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.+ Also, mismatchLabelKeys cannot be set when labelSelector isn't set.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ namespaceSelector:+ description: |-+ A label query over the set of namespaces that the term applies to.+ The term is applied to the union of the namespaces selected by this field+ and the ones listed in the namespaces field.+ null selector and null or empty namespaces list means "this pod's namespace".+ An empty selector ({}) matches all namespaces.+ properties:+ matchExpressions:+ description: matchExpressions is a list+ of label selector requirements. The+ requirements are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label+ key that the selector applies+ to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ namespaces:+ description: |-+ namespaces specifies a static list of namespace names that the term applies to.+ The term is applied to the union of the namespaces listed in this field+ and the ones selected by namespaceSelector.+ null or empty namespaces list and null namespaceSelector means "this pod's namespace".+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ topologyKey:+ description: |-+ This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching+ the labelSelector in the specified namespaces, where co-located is defined as running on a node+ whose value of the label with key topologyKey matches that of any node on which any of the+ selected pods is running.+ Empty topologyKey is not allowed.+ type: string+ required:+ - topologyKey+ type: object+ weight:+ description: |-+ weight associated with matching the corresponding podAffinityTerm,+ in the range 1-100.+ format: int32+ type: integer+ required:+ - podAffinityTerm+ - weight+ type: object+ type: array+ x-kubernetes-list-type: atomic+ requiredDuringSchedulingIgnoredDuringExecution:+ description: |-+ If the anti-affinity requirements specified by this field are not met at+ scheduling time, the pod will not be scheduled onto the node.+ If the anti-affinity requirements specified by this field cease to be met+ at some point during pod execution (e.g. due to a pod label update), the+ system may or may not try to eventually evict the pod from its node.+ When there are multiple elements, the lists of nodes corresponding to each+ podAffinityTerm are intersected, i.e. all terms must be satisfied.+ items:+ description: |-+ Defines a set of pods (namely those matching the labelSelector+ relative to the given namespace(s)) that this pod should be+ co-located (affinity) or not co-located (anti-affinity) with,+ where co-located is defined as running on a node whose value of+ the label with key <topologyKey> matches that of any node on which+ a pod of the set of pods is running+ properties:+ labelSelector:+ description: |-+ A label query over a set of resources, in this case pods.+ If it's null, this PodAffinityTerm matches with no Pods.+ properties:+ matchExpressions:+ description: matchExpressions is a list+ of label selector requirements. The requirements+ are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label key+ that the selector applies to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ matchLabelKeys:+ description: |-+ MatchLabelKeys is a set of pod label keys to select which pods will+ be taken into consideration. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`+ to select the group of existing pods which pods will be taken into consideration+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming+ pod labels will be ignored. The default value is empty.+ The same key is forbidden to exist in both matchLabelKeys and labelSelector.+ Also, matchLabelKeys cannot be set when labelSelector isn't set.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ mismatchLabelKeys:+ description: |-+ MismatchLabelKeys is a set of pod label keys to select which pods will+ be taken into consideration. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`+ to select the group of existing pods which pods will be taken into consideration+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming+ pod labels will be ignored. The default value is empty.+ The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.+ Also, mismatchLabelKeys cannot be set when labelSelector isn't set.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ namespaceSelector:+ description: |-+ A label query over the set of namespaces that the term applies to.+ The term is applied to the union of the namespaces selected by this field+ and the ones listed in the namespaces field.+ null selector and null or empty namespaces list means "this pod's namespace".+ An empty selector ({}) matches all namespaces.+ properties:+ matchExpressions:+ description: matchExpressions is a list+ of label selector requirements. The requirements+ are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label key+ that the selector applies to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ namespaces:+ description: |-+ namespaces specifies a static list of namespace names that the term applies to.+ The term is applied to the union of the namespaces listed in this field+ and the ones selected by namespaceSelector.+ null or empty namespaces list and null namespaceSelector means "this pod's namespace".+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ topologyKey:+ description: |-+ This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching+ the labelSelector in the specified namespaces, where co-located is defined as running on a node+ whose value of the label with key topologyKey matches that of any node on which any of the+ selected pods is running.+ Empty topologyKey is not allowed.+ type: string+ required:+ - topologyKey+ type: object+ type: array+ x-kubernetes-list-type: atomic+ type: object+ type: object+ annotations:+ additionalProperties:+ type: string+ description: |-+ Annotations are custom annotations to add to the Deployment/StatefulSet object metadata.+ These annotations appear on the workload resource itself, not the pods.+ Useful for GitOps metadata, deployment tracking, and automation tools.+ maxProperties: 64+ type: object+ args:+ description: Args overrides the container's command arguments.+ items:+ type: string+ type: array+ command:+ description: Command overrides the container's entrypoint.+ items:+ type: string+ type: array+ config:+ description: Config contains docling-specific configuration+ options.+ properties:+ extraEnv:+ description: ExtraEnv allows setting additional environment+ variables for docling configuration.+ items:+ description: EnvVar represents an environment variable+ present in a Container.+ properties:+ name:+ description: Name of the environment variable. Must+ be a C_IDENTIFIER.+ type: string+ value:+ description: |-+ Variable references $(VAR_NAME) are expanded+ using the previously defined environment variables in the container and+ any service environment variables. If a variable cannot be resolved,+ the reference in the input string will be unchanged. Double $$ are reduced+ to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.+ "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".+ Escaped references will never be expanded, regardless of whether the variable+ exists or not.+ Defaults to "".+ type: string+ valueFrom:+ description: Source for the environment variable's+ value. Cannot be used if value is not empty.+ properties:+ configMapKeyRef:+ description: Selects a key of a ConfigMap.+ properties:+ key:+ description: The key to select.+ type: string+ name:+ default: ""+ description: |-+ Name of the referent.+ This field is effectively required, but due to backwards compatibility is+ allowed to be empty. Instances of this type with an empty value here are+ almost certainly wrong.+ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names+ type: string+ optional:+ description: Specify whether the ConfigMap+ or its key must be defined+ type: boolean+ required:+ - key+ type: object+ x-kubernetes-map-type: atomic+ fieldRef:+ description: |-+ Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,+ spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.+ properties:+ apiVersion:+ description: Version of the schema the FieldPath+ is written in terms of, defaults to "v1".+ type: string+ fieldPath:+ description: Path of the field to select+ in the specified API version.+ type: string+ required:+ - fieldPath+ type: object+ x-kubernetes-map-type: atomic+ resourceFieldRef:+ description: |-+ Selects a resource of the container: only resources limits and requests+ (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.+ properties:+ containerName:+ description: 'Container name: required for+ volumes, optional for env vars'+ type: string+ divisor:+ anyOf:+ - type: integer+ - type: string+ description: Specifies the output format+ of the exposed resources, defaults to+ "1"+ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$+ x-kubernetes-int-or-string: true+ resource:+ description: 'Required: resource to select'+ type: string+ required:+ - resource+ type: object+ x-kubernetes-map-type: atomic+ secretKeyRef:+ description: Selects a key of a secret in the+ pod's namespace+ properties:+ key:+ description: The key of the secret to select+ from. Must be a valid secret key.+ type: string+ name:+ default: ""+ description: |-+ Name of the referent.+ This field is effectively required, but due to backwards compatibility is+ allowed to be empty. Instances of this type with an empty value here are+ almost certainly wrong.+ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names+ type: string+ optional:+ description: Specify whether the Secret+ or its key must be defined+ type: boolean+ required:+ - key+ type: object+ x-kubernetes-map-type: atomic+ type: object+ required:+ - name+ type: object+ type: array+ models:+ description: Models configures which AI models to use+ for different tasks.+ properties:+ layoutModel:+ description: LayoutModel specifies the model for document+ layout analysis.+ type: string+ modelCachePath:+ default: /models+ description: ModelCachePath specifies where to cache+ downloaded models.+ type: string+ ocrModel:+ description: OCRModel specifies the model for OCR.+ type: string+ tableModel:+ description: TableModel specifies the model for table+ structure recognition.+ type: string+ type: object+ ocr:+ description: OCR configures optical character recognition+ settings.+ properties:+ enabled:+ default: true+ description: Enabled controls whether OCR is enabled.+ type: boolean+ engine:+ default: easyocr+ description: Engine specifies the OCR engine to use+ (e.g., "easyocr", "tesseract").+ type: string+ forceFullPageOCR:+ default: false+ description: ForceFullPageOCR forces OCR on all pages+ even if text is extractable.+ type: boolean+ languages:+ description: Languages is a list of language codes+ for OCR (e.g., ["en", "de", "fr"]).+ items:+ type: string+ type: array+ type: object+ performance:+ description: Performance configures performance-related+ settings.+ properties:+ batchSize:+ default: 10+ description: BatchSize sets the number of pages to+ process in a single batch.+ format: int32+ minimum: 1+ type: integer+ enableGPU:+ default: false+ description: EnableGPU enables GPU acceleration if+ available.+ type: boolean+ maxWorkers:+ default: 4+ description: MaxWorkers sets the maximum number of+ worker threads per process.+ format: int32+ minimum: 1+ type: integer+ timeoutSeconds:+ default: 300+ description: TimeoutSeconds sets the processing timeout+ per document in seconds.+ format: int32+ minimum: 1+ type: integer+ type: object+ tableStructure:+ description: TableStructure configures table structure+ recognition settings.+ properties:+ enabled:+ default: true+ description: Enabled controls whether table structure+ recognition is enabled.+ type: boolean+ minConfidencePercent:+ default: 70+ description: MinConfidencePercent sets the minimum+ confidence threshold for table detection (0-100).+ format: int32+ maximum: 100+ minimum: 0+ type: integer+ mode:+ default: accurate+ description: Mode specifies the table extraction mode+ (e.g., "accurate", "fast").+ type: string+ type: object+ type: object+ createService:+ default: true+ description: |-+ CreateService indicates whether the operator should create the Service.+ If true (default), the operator creates a Service with the name specified in ServiceName.+ If false, the operator assumes the Service already exists and will only reference it.+ type: boolean+ createServiceAccount:+ default: true+ description: |-+ CreateServiceAccount indicates whether the operator should create the ServiceAccount.+ If true (default), the operator creates a ServiceAccount with the name specified in ServiceAccountName.+ If false, the operator assumes the ServiceAccount already exists and will only reference it.+ type: boolean+ env:+ description: Additional environment variables injected into+ the container.+ items:+ description: EnvVar represents an environment variable present+ in a Container.+ properties:+ name:+ description: Name of the environment variable. Must+ be a C_IDENTIFIER.+ type: string+ value:+ description: |-+ Variable references $(VAR_NAME) are expanded+ using the previously defined environment variables in the container and+ any service environment variables. If a variable cannot be resolved,+ the reference in the input string will be unchanged. Double $$ are reduced+ to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.+ "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".+ Escaped references will never be expanded, regardless of whether the variable+ exists or not.+ Defaults to "".+ type: string+ valueFrom:+ description: Source for the environment variable's value.+ Cannot be used if value is not empty.+ properties:+ configMapKeyRef:+ description: Selects a key of a ConfigMap.+ properties:+ key:+ description: The key to select.+ type: string+ name:+ default: ""+ description: |-+ Name of the referent.+ This field is effectively required, but due to backwards compatibility is+ allowed to be empty. Instances of this type with an empty value here are+ almost certainly wrong.+ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names+ type: string+ optional:+ description: Specify whether the ConfigMap or+ its key must be defined+ type: boolean+ required:+ - key+ type: object+ x-kubernetes-map-type: atomic+ fieldRef:+ description: |-+ Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,+ spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.+ properties:+ apiVersion:+ description: Version of the schema the FieldPath+ is written in terms of, defaults to "v1".+ type: string+ fieldPath:+ description: Path of the field to select in+ the specified API version.+ type: string+ required:+ - fieldPath+ type: object+ x-kubernetes-map-type: atomic+ resourceFieldRef:+ description: |-+ Selects a resource of the container: only resources limits and requests+ (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.+ properties:+ containerName:+ description: 'Container name: required for volumes,+ optional for env vars'+ type: string+ divisor:+ anyOf:+ - type: integer+ - type: string+ description: Specifies the output format of+ the exposed resources, defaults to "1"+ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$+ x-kubernetes-int-or-string: true+ resource:+ description: 'Required: resource to select'+ type: string+ required:+ - resource+ type: object+ x-kubernetes-map-type: atomic+ secretKeyRef:+ description: Selects a key of a secret in the pod's+ namespace+ properties:+ key:+ description: The key of the secret to select+ from. Must be a valid secret key.+ type: string+ name:+ default: ""+ description: |-+ Name of the referent.+ This field is effectively required, but due to backwards compatibility is+ allowed to be empty. Instances of this type with an empty value here are+ almost certainly wrong.+ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names+ type: string+ optional:+ description: Specify whether the Secret or its+ key must be defined+ type: boolean+ required:+ - key+ type: object+ x-kubernetes-map-type: atomic+ type: object+ required:+ - name+ type: object+ type: array+ hpa:+ description: HPA configures autoscaling for the docling-serve+ deployment.+ properties:+ behavior:+ description: Behavior configures the scaling behavior+ (scale up/down policies, stabilization windows).+ properties:+ scaleDown:+ description: |-+ scaleDown is scaling policy for scaling Down.+ If not set, the default value is to allow to scale down to minReplicas pods, with a+ 300 second stabilization window (i.e., the highest recommendation for+ the last 300sec is used).+ properties:+ policies:+ description: |-+ policies is a list of potential scaling polices which can be used during scaling.+ If not set, use the default values:+ - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window.+ - For scale down: allow all pods to be removed in a 15s window.+ items:+ description: HPAScalingPolicy is a single policy+ which must hold true for a specified past+ interval.+ properties:+ periodSeconds:+ description: |-+ periodSeconds specifies the window of time for which the policy should hold true.+ PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).+ format: int32+ type: integer+ type:+ description: type is used to specify the+ scaling policy.+ type: string+ value:+ description: |-+ value contains the amount of change which is permitted by the policy.+ It must be greater than zero+ format: int32+ type: integer+ required:+ - periodSeconds+ - type+ - value+ type: object+ type: array+ x-kubernetes-list-type: atomic+ selectPolicy:+ description: |-+ selectPolicy is used to specify which policy should be used.+ If not set, the default value Max is used.+ type: string+ stabilizationWindowSeconds:+ description: |-+ stabilizationWindowSeconds is the number of seconds for which past recommendations should be+ considered while scaling up or scaling down.+ StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour).+ If not set, use the default values:+ - For scale up: 0 (i.e. no stabilization is done).+ - For scale down: 300 (i.e. the stabilization window is 300 seconds long).+ format: int32+ type: integer+ tolerance:+ anyOf:+ - type: integer+ - type: string+ description: |-+ tolerance is the tolerance on the ratio between the current and desired+ metric value under which no updates are made to the desired number of+ replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not+ set, the default cluster-wide tolerance is applied (by default 10%).++ For example, if autoscaling is configured with a memory consumption target of 100Mi,+ and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be+ triggered when the actual consumption falls below 95Mi or exceeds 101Mi.++ This is an alpha field and requires enabling the HPAConfigurableTolerance+ feature gate.+ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$+ x-kubernetes-int-or-string: true+ type: object+ scaleUp:+ description: |-+ scaleUp is scaling policy for scaling Up.+ If not set, the default value is the higher of:+ * increase no more than 4 pods per 60 seconds+ * double the number of pods per 60 seconds+ No stabilization is used.+ properties:+ policies:+ description: |-+ policies is a list of potential scaling polices which can be used during scaling.+ If not set, use the default values:+ - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window.+ - For scale down: allow all pods to be removed in a 15s window.+ items:+ description: HPAScalingPolicy is a single policy+ which must hold true for a specified past+ interval.+ properties:+ periodSeconds:+ description: |-+ periodSeconds specifies the window of time for which the policy should hold true.+ PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).+ format: int32+ type: integer+ type:+ description: type is used to specify the+ scaling policy.+ type: string+ value:+ description: |-+ value contains the amount of change which is permitted by the policy.+ It must be greater than zero+ format: int32+ type: integer+ required:+ - periodSeconds+ - type+ - value+ type: object+ type: array+ x-kubernetes-list-type: atomic+ selectPolicy:+ description: |-+ selectPolicy is used to specify which policy should be used.+ If not set, the default value Max is used.+ type: string+ stabilizationWindowSeconds:+ description: |-+ stabilizationWindowSeconds is the number of seconds for which past recommendations should be+ considered while scaling up or scaling down.+ StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour).+ If not set, use the default values:+ - For scale up: 0 (i.e. no stabilization is done).+ - For scale down: 300 (i.e. the stabilization window is 300 seconds long).+ format: int32+ type: integer+ tolerance:+ anyOf:+ - type: integer+ - type: string+ description: |-+ tolerance is the tolerance on the ratio between the current and desired+ metric value under which no updates are made to the desired number of+ replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not+ set, the default cluster-wide tolerance is applied (by default 10%).++ For example, if autoscaling is configured with a memory consumption target of 100Mi,+ and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be+ triggered when the actual consumption falls below 95Mi or exceeds 101Mi.++ This is an alpha field and requires enabling the HPAConfigurableTolerance+ feature gate.+ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$+ x-kubernetes-int-or-string: true+ type: object+ type: object+ enabled:+ default: false+ description: Enabled controls whether HPA is created.+ type: boolean+ maxReplicas:+ description: MaxReplicas is the upper limit for the number+ of replicas.+ format: int32+ minimum: 1+ type: integer+ minReplicas:+ default: 1+ description: MinReplicas is the lower limit for the number+ of replicas.+ format: int32+ minimum: 1+ type: integer+ targetCPUUtilizationPercentage:+ description: TargetCPUUtilizationPercentage is the target+ average CPU utilization.+ format: int32+ maximum: 100+ minimum: 1+ type: integer+ targetMemoryUtilizationPercentage:+ description: TargetMemoryUtilizationPercentage is the+ target average memory utilization.+ format: int32+ maximum: 100+ minimum: 1+ type: integer+ required:+ - maxReplicas+ type: object+ image:+ description: Image is the container image (repository:tag).+ type: string+ imagePullPolicy:+ default: IfNotPresent+ description: PullPolicy describes a policy for if/when to+ pull a container image+ type: string+ imagePullSecrets:+ description: |-+ ImagePullSecrets for private registries, specific to this component.+ These are merged with the global imagePullSecrets from the OpenRAG spec.+ items:+ description: |-+ LocalObjectReference contains enough information to let you locate the+ referenced object inside the same namespace.+ properties:+ name:+ default: ""+ description: |-+ Name of the referent.+ This field is effectively required, but due to backwards compatibility is+ allowed to be empty. Instances of this type with an empty value here are+ almost certainly wrong.+ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names+ type: string+ type: object+ x-kubernetes-map-type: atomic+ type: array+ x-kubernetes-validations:+ - message: imagePullSecret name cannot be empty+ rule: self.all(x, x.name != '')+ labels:+ additionalProperties:+ type: string+ description: |-+ Labels are custom labels to add to the Deployment/StatefulSet object metadata.+ These labels appear on the workload resource itself, not the pods.+ Useful for querying and grouping Deployment/StatefulSet objects.+ maxProperties: 64+ type: object+ livenessProbe:+ description: LivenessProbe configures the liveness probe for+ the container.+ properties:+ exec:+ description: Exec specifies a command to execute in the+ container.+ properties:+ command:+ description: |-+ Command is the command line to execute inside the container, the working directory for the+ command is root ('/') in the container's filesystem. The command is simply exec'd, it is+ not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use+ a shell, you need to explicitly call out to that shell.+ Exit status of 0 is treated as live/healthy and non-zero is unhealthy.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ type: object+ failureThreshold:+ description: |-+ Minimum consecutive failures for the probe to be considered failed after having succeeded.+ Defaults to 3. Minimum value is 1.+ format: int32+ type: integer+ grpc:+ description: GRPC specifies a GRPC HealthCheckRequest.+ properties:+ port:+ description: Port number of the gRPC service. Number+ must be in the range 1 to 65535.+ format: int32+ type: integer+ service:+ default: ""+ description: |-+ Service is the name of the service to place in the gRPC HealthCheckRequest+ (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).++ If this is not specified, the default behavior is defined by gRPC.+ type: string+ required:+ - port+ type: object+ httpGet:+ description: HTTPGet specifies an HTTP GET request to+ perform.+ properties:+ host:+ description: |-+ Host name to connect to, defaults to the pod IP. You probably want to set+ "Host" in httpHeaders instead.+ type: string+ httpHeaders:+ description: Custom headers to set in the request.+ HTTP allows repeated headers.+ items:+ description: HTTPHeader describes a custom header+ to be used in HTTP probes+ properties:+ name:+ description: |-+ The header field name.+ This will be canonicalized upon output, so case-variant names will be understood as the same header.+ type: string+ value:+ description: The header field value+ type: string+ required:+ - name+ - value+ type: object+ type: array+ x-kubernetes-list-type: atomic+ path:+ description: Path to access on the HTTP server.+ type: string+ port:+ anyOf:+ - type: integer+ - type: string+ description: |-+ Name or number of the port to access on the container.+ Number must be in the range 1 to 65535.+ Name must be an IANA_SVC_NAME.+ x-kubernetes-int-or-string: true+ scheme:+ description: |-+ Scheme to use for connecting to the host.+ Defaults to HTTP.+ type: string+ required:+ - port+ type: object+ initialDelaySeconds:+ description: |-+ Number of seconds after the container has started before liveness probes are initiated.+ More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes+ format: int32+ type: integer+ periodSeconds:+ description: |-+ How often (in seconds) to perform the probe.+ Default to 10 seconds. Minimum value is 1.+ format: int32+ type: integer+ successThreshold:+ description: |-+ Minimum consecutive successes for the probe to be considered successful after having failed.+ Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.+ format: int32+ type: integer+ tcpSocket:+ description: TCPSocket specifies a connection to a TCP+ port.+ properties:+ host:+ description: 'Optional: Host name to connect to, defaults+ to the pod IP.'+ type: string+ port:+ anyOf:+ - type: integer+ - type: string+ description: |-+ Number or name of the port to access on the container.+ Number must be in the range 1 to 65535.+ Name must be an IANA_SVC_NAME.+ x-kubernetes-int-or-string: true+ required:+ - port+ type: object+ terminationGracePeriodSeconds:+ description: |-+ Optional duration in seconds the pod needs to terminate gracefully upon probe failure.+ The grace period is the duration in seconds after the processes running in the pod are sent+ a termination signal and the time when the processes are forcibly halted with a kill signal.+ Set this value longer than the expected cleanup time for your process.+ If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this+ value overrides the value provided by the pod spec.+ Value must be non-negative integer. The value zero indicates stop immediately via+ the kill signal (no opportunity to shut down).+ This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.+ Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.+ format: int64+ type: integer+ timeoutSeconds:+ description: |-+ Number of seconds after which the probe times out.+ Defaults to 1 second. Minimum value is 1.+ More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes+ format: int32+ type: integer+ type: object+ nodeSelector:+ additionalProperties:+ type: string+ type: object+ podAnnotations:+ additionalProperties:+ type: string+ description: |-+ PodAnnotations are custom annotations to add to the pod template.+ These annotations appear on the actual pods created by the Deployment/StatefulSet.+ Useful for sidecar injection (Istio, Vault), monitoring (Prometheus), and backup (Velero).+ maxProperties: 64+ type: object+ podLabels:+ additionalProperties:+ type: string+ description: |-+ PodLabels are custom labels to add to the pod template.+ These labels appear on the actual pods created by the Deployment/StatefulSet.+ Useful for pod selectors, monitoring queries, network policies, and service mesh.+ Merged with operator-managed labels (app.kubernetes.io/*).+ Cannot override operator-managed labels.+ maxProperties: 64+ type: object+ podSecurityContext:+ description: PodSecurityContext holds pod-level security attributes.+ properties:+ appArmorProfile:+ description: |-+ appArmorProfile is the AppArmor options to use by the containers in this pod.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ localhostProfile:+ description: |-+ localhostProfile indicates a profile loaded on the node that should be used.+ The profile must be preconfigured on the node to work.+ Must match the loaded name of the profile.+ Must be set if and only if type is "Localhost".+ type: string+ type:+ description: |-+ type indicates which kind of AppArmor profile will be applied.+ Valid options are:+ Localhost - a profile pre-loaded on the node.+ RuntimeDefault - the container runtime's default profile.+ Unconfined - no AppArmor enforcement.+ type: string+ required:+ - type+ type: object+ fsGroup:+ description: |-+ A special supplemental group that applies to all containers in a pod.+ Some volume types allow the Kubelet to change the ownership of that volume+ to be owned by the pod:++ 1. The owning GID will be the FSGroup+ 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)+ 3. The permission bits are OR'd with rw-rw----++ If unset, the Kubelet will not modify the ownership and permissions of any volume.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ fsGroupChangePolicy:+ description: |-+ fsGroupChangePolicy defines behavior of changing ownership and permission of the volume+ before being exposed inside Pod. This field will only apply to+ volume types which support fsGroup based ownership(and permissions).+ It will have no effect on ephemeral volume types such as: secret, configmaps+ and emptydir.+ Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.+ Note that this field cannot be set when spec.os.name is windows.+ type: string+ runAsGroup:+ description: |-+ The GID to run the entrypoint of the container process.+ Uses runtime default if unset.+ May also be set in SecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence+ for that container.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ runAsNonRoot:+ description: |-+ Indicates that the container must run as a non-root user.+ If true, the Kubelet will validate the image at runtime to ensure that it+ does not run as UID 0 (root) and fail to start the container if it does.+ If unset or false, no such validation will be performed.+ May also be set in SecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ type: boolean+ runAsUser:+ description: |-+ The UID to run the entrypoint of the container process.+ Defaults to user specified in image metadata if unspecified.+ May also be set in SecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence+ for that container.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ seLinuxChangePolicy:+ description: |-+ seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod.+ It has no effect on nodes that do not support SELinux or to volumes does not support SELinux.+ Valid values are "MountOption" and "Recursive".++ "Recursive" means relabeling of all files on all Pod volumes by the container runtime.+ This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node.++ "MountOption" mounts all eligible Pod volumes with `-o context` mount option.+ This requires all Pods that share the same volume to use the same SELinux label.+ It is not possible to share the same volume among privileged and unprivileged Pods.+ Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes+ whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their+ CSIDriver instance. Other volumes are always re-labelled recursively.+ "MountOption" value is allowed only when SELinuxMount feature gate is enabled.++ If not specified and SELinuxMount feature gate is enabled, "MountOption" is used.+ If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes+ and "Recursive" for all other volumes.++ This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.++ All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state.+ Note that this field cannot be set when spec.os.name is windows.+ type: string+ seLinuxOptions:+ description: |-+ The SELinux context to be applied to all containers.+ If unspecified, the container runtime will allocate a random SELinux context for each+ container. May also be set in SecurityContext. If set in+ both SecurityContext and PodSecurityContext, the value specified in SecurityContext+ takes precedence for that container.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ level:+ description: Level is SELinux level label that applies+ to the container.+ type: string+ role:+ description: Role is a SELinux role label that applies+ to the container.+ type: string+ type:+ description: Type is a SELinux type label that applies+ to the container.+ type: string+ user:+ description: User is a SELinux user label that applies+ to the container.+ type: string+ type: object+ seccompProfile:+ description: |-+ The seccomp options to use by the containers in this pod.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ localhostProfile:+ description: |-+ localhostProfile indicates a profile defined in a file on the node should be used.+ The profile must be preconfigured on the node to work.+ Must be a descending path, relative to the kubelet's configured seccomp profile location.+ Must be set if type is "Localhost". Must NOT be set for any other type.+ type: string+ type:+ description: |-+ type indicates which kind of seccomp profile will be applied.+ Valid options are:++ Localhost - a profile defined in a file on the node should be used.+ RuntimeDefault - the container runtime default profile should be used.+ Unconfined - no profile should be applied.+ type: string+ required:+ - type+ type: object+ supplementalGroups:+ description: |-+ A list of groups applied to the first process run in each container, in+ addition to the container's primary GID and fsGroup (if specified). If+ the SupplementalGroupsPolicy feature is enabled, the+ supplementalGroupsPolicy field determines whether these are in addition+ to or instead of any group memberships defined in the container image.+ If unspecified, no additional groups are added, though group memberships+ defined in the container image may still be used, depending on the+ supplementalGroupsPolicy field.+ Note that this field cannot be set when spec.os.name is windows.+ items:+ format: int64+ type: integer+ type: array+ x-kubernetes-list-type: atomic+ supplementalGroupsPolicy:+ description: |-+ Defines how supplemental groups of the first container processes are calculated.+ Valid values are "Merge" and "Strict". If not specified, "Merge" is used.+ (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled+ and the container runtime must implement support for this feature.+ Note that this field cannot be set when spec.os.name is windows.+ type: string+ sysctls:+ description: |-+ Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported+ sysctls (by the container runtime) might fail to launch.+ Note that this field cannot be set when spec.os.name is windows.+ items:+ description: Sysctl defines a kernel parameter to be+ set+ properties:+ name:+ description: Name of a property to set+ type: string+ value:+ description: Value of a property to set+ type: string+ required:+ - name+ - value+ type: object+ type: array+ x-kubernetes-list-type: atomic+ windowsOptions:+ description: |-+ The Windows specific settings applied to all containers.+ If unspecified, the options within a container's SecurityContext will be used.+ If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is linux.+ properties:+ gmsaCredentialSpec:+ description: |-+ GMSACredentialSpec is where the GMSA admission webhook+ (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the+ GMSA credential spec named by the GMSACredentialSpecName field.+ type: string+ gmsaCredentialSpecName:+ description: GMSACredentialSpecName is the name of+ the GMSA credential spec to use.+ type: string+ hostProcess:+ description: |-+ HostProcess determines if a container should be run as a 'Host Process' container.+ All of a Pod's containers must have the same effective HostProcess value+ (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).+ In addition, if HostProcess is true then HostNetwork must also be set to true.+ type: boolean+ runAsUserName:+ description: |-+ The UserName in Windows to run the entrypoint of the container process.+ Defaults to the user specified in image metadata if unspecified.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ type: string+ type: object+ type: object+ port:+ default: 5001+ description: Port for the HTTP API.+ format: int32+ type: integer+ readinessProbe:+ description: ReadinessProbe configures the readiness probe+ for the container.+ properties:+ exec:+ description: Exec specifies a command to execute in the+ container.+ properties:+ command:+ description: |-+ Command is the command line to execute inside the container, the working directory for the+ command is root ('/') in the container's filesystem. The command is simply exec'd, it is+ not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use+ a shell, you need to explicitly call out to that shell.+ Exit status of 0 is treated as live/healthy and non-zero is unhealthy.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ type: object+ failureThreshold:+ description: |-+ Minimum consecutive failures for the probe to be considered failed after having succeeded.+ Defaults to 3. Minimum value is 1.+ format: int32+ type: integer+ grpc:+ description: GRPC specifies a GRPC HealthCheckRequest.+ properties:+ port:+ description: Port number of the gRPC service. Number+ must be in the range 1 to 65535.+ format: int32+ type: integer+ service:+ default: ""+ description: |-+ Service is the name of the service to place in the gRPC HealthCheckRequest+ (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).++ If this is not specified, the default behavior is defined by gRPC.+ type: string+ required:+ - port+ type: object+ httpGet:+ description: HTTPGet specifies an HTTP GET request to+ perform.+ properties:+ host:+ description: |-+ Host name to connect to, defaults to the pod IP. You probably want to set+ "Host" in httpHeaders instead.+ type: string+ httpHeaders:+ description: Custom headers to set in the request.+ HTTP allows repeated headers.+ items:+ description: HTTPHeader describes a custom header+ to be used in HTTP probes+ properties:+ name:+ description: |-+ The header field name.+ This will be canonicalized upon output, so case-variant names will be understood as the same header.+ type: string+ value:+ description: The header field value+ type: string+ required:+ - name+ - value+ type: object+ type: array+ x-kubernetes-list-type: atomic+ path:+ description: Path to access on the HTTP server.+ type: string+ port:+ anyOf:+ - type: integer+ - type: string+ description: |-+ Name or number of the port to access on the container.+ Number must be in the range 1 to 65535.+ Name must be an IANA_SVC_NAME.+ x-kubernetes-int-or-string: true+ scheme:+ description: |-+ Scheme to use for connecting to the host.+ Defaults to HTTP.+ type: string+ required:+ - port+ type: object+ initialDelaySeconds:+ description: |-+ Number of seconds after the container has started before liveness probes are initiated.+ More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes+ format: int32+ type: integer+ periodSeconds:+ description: |-+ How often (in seconds) to perform the probe.+ Default to 10 seconds. Minimum value is 1.+ format: int32+ type: integer+ successThreshold:+ description: |-+ Minimum consecutive successes for the probe to be considered successful after having failed.+ Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.+ format: int32+ type: integer+ tcpSocket:+ description: TCPSocket specifies a connection to a TCP+ port.+ properties:+ host:+ description: 'Optional: Host name to connect to, defaults+ to the pod IP.'+ type: string+ port:+ anyOf:+ - type: integer+ - type: string+ description: |-+ Number or name of the port to access on the container.+ Number must be in the range 1 to 65535.+ Name must be an IANA_SVC_NAME.+ x-kubernetes-int-or-string: true+ required:+ - port+ type: object+ terminationGracePeriodSeconds:+ description: |-+ Optional duration in seconds the pod needs to terminate gracefully upon probe failure.+ The grace period is the duration in seconds after the processes running in the pod are sent+ a termination signal and the time when the processes are forcibly halted with a kill signal.+ Set this value longer than the expected cleanup time for your process.+ If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this+ value overrides the value provided by the pod spec.+ Value must be non-negative integer. The value zero indicates stop immediately via+ the kill signal (no opportunity to shut down).+ This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.+ Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.+ format: int64+ type: integer+ timeoutSeconds:+ description: |-+ Number of seconds after which the probe times out.+ Defaults to 1 second. Minimum value is 1.+ More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes+ format: int32+ type: integer+ type: object+ replicas:+ default: 1+ format: int32+ minimum: 0+ type: integer+ resources:+ description: ResourceRequirements describes the compute resource+ requirements.+ properties:+ claims:+ description: |-+ Claims lists the names of resources, defined in spec.resourceClaims,+ that are used by this container.++ This is an alpha field and requires enabling the+ DynamicResourceAllocation feature gate.++ This field is immutable. It can only be set for containers.+ items:+ description: ResourceClaim references one entry in PodSpec.ResourceClaims.+ properties:+ name:+ description: |-+ Name must match the name of one entry in pod.spec.resourceClaims of+ the Pod where this field is used. It makes that resource available+ inside a container.+ type: string+ request:+ description: |-+ Request is the name chosen for a request in the referenced claim.+ If empty, everything from the claim is made available, otherwise+ only the result of this request.+ type: string+ required:+ - name+ type: object+ type: array+ x-kubernetes-list-map-keys:+ - name+ x-kubernetes-list-type: map+ limits:+ additionalProperties:+ anyOf:+ - type: integer+ - type: string+ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$+ x-kubernetes-int-or-string: true+ description: |-+ Limits describes the maximum amount of compute resources allowed.+ More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/+ type: object+ requests:+ additionalProperties:+ anyOf:+ - type: integer+ - type: string+ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$+ x-kubernetes-int-or-string: true+ description: |-+ Requests describes the minimum amount of compute resources required.+ If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,+ otherwise to an implementation-defined value. Requests cannot exceed Limits.+ More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/+ type: object+ type: object+ securityContext:+ description: SecurityContext holds container-level security+ attributes.+ properties:+ allowPrivilegeEscalation:+ description: |-+ AllowPrivilegeEscalation controls whether a process can gain more+ privileges than its parent process. This bool directly controls if+ the no_new_privs flag will be set on the container process.+ AllowPrivilegeEscalation is true always when the container is:+ 1) run as Privileged+ 2) has CAP_SYS_ADMIN+ Note that this field cannot be set when spec.os.name is windows.+ type: boolean+ appArmorProfile:+ description: |-+ appArmorProfile is the AppArmor options to use by this container. If set, this profile+ overrides the pod's appArmorProfile.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ localhostProfile:+ description: |-+ localhostProfile indicates a profile loaded on the node that should be used.+ The profile must be preconfigured on the node to work.+ Must match the loaded name of the profile.+ Must be set if and only if type is "Localhost".+ type: string+ type:+ description: |-+ type indicates which kind of AppArmor profile will be applied.+ Valid options are:+ Localhost - a profile pre-loaded on the node.+ RuntimeDefault - the container runtime's default profile.+ Unconfined - no AppArmor enforcement.+ type: string+ required:+ - type+ type: object+ capabilities:+ description: |-+ The capabilities to add/drop when running containers.+ Defaults to the default set of capabilities granted by the container runtime.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ add:+ description: Added capabilities+ items:+ description: Capability represent POSIX capabilities+ type+ type: string+ type: array+ x-kubernetes-list-type: atomic+ drop:+ description: Removed capabilities+ items:+ description: Capability represent POSIX capabilities+ type+ type: string+ type: array+ x-kubernetes-list-type: atomic+ type: object+ privileged:+ description: |-+ Run container in privileged mode.+ Processes in privileged containers are essentially equivalent to root on the host.+ Defaults to false.+ Note that this field cannot be set when spec.os.name is windows.+ type: boolean+ procMount:+ description: |-+ procMount denotes the type of proc mount to use for the containers.+ The default value is Default which uses the container runtime defaults for+ readonly paths and masked paths.+ This requires the ProcMountType feature flag to be enabled.+ Note that this field cannot be set when spec.os.name is windows.+ type: string+ readOnlyRootFilesystem:+ description: |-+ Whether this container has a read-only root filesystem.+ Default is false.+ Note that this field cannot be set when spec.os.name is windows.+ type: boolean+ runAsGroup:+ description: |-+ The GID to run the entrypoint of the container process.+ Uses runtime default if unset.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ runAsNonRoot:+ description: |-+ Indicates that the container must run as a non-root user.+ If true, the Kubelet will validate the image at runtime to ensure that it+ does not run as UID 0 (root) and fail to start the container if it does.+ If unset or false, no such validation will be performed.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ type: boolean+ runAsUser:+ description: |-+ The UID to run the entrypoint of the container process.+ Defaults to user specified in image metadata if unspecified.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ seLinuxOptions:+ description: |-+ The SELinux context to be applied to the container.+ If unspecified, the container runtime will allocate a random SELinux context for each+ container. May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ level:+ description: Level is SELinux level label that applies+ to the container.+ type: string+ role:+ description: Role is a SELinux role label that applies+ to the container.+ type: string+ type:+ description: Type is a SELinux type label that applies+ to the container.+ type: string+ user:+ description: User is a SELinux user label that applies+ to the container.+ type: string+ type: object+ seccompProfile:+ description: |-+ The seccomp options to use by this container. If seccomp options are+ provided at both the pod & container level, the container options+ override the pod options.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ localhostProfile:+ description: |-+ localhostProfile indicates a profile defined in a file on the node should be used.+ The profile must be preconfigured on the node to work.+ Must be a descending path, relative to the kubelet's configured seccomp profile location.+ Must be set if type is "Localhost". Must NOT be set for any other type.+ type: string+ type:+ description: |-+ type indicates which kind of seccomp profile will be applied.+ Valid options are:++ Localhost - a profile defined in a file on the node should be used.+ RuntimeDefault - the container runtime default profile should be used.+ Unconfined - no profile should be applied.+ type: string+ required:+ - type+ type: object+ windowsOptions:+ description: |-+ The Windows specific settings applied to all containers.+ If unspecified, the options from the PodSecurityContext will be used.+ If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is linux.+ properties:+ gmsaCredentialSpec:+ description: |-+ GMSACredentialSpec is where the GMSA admission webhook+ (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the+ GMSA credential spec named by the GMSACredentialSpecName field.+ type: string+ gmsaCredentialSpecName:+ description: GMSACredentialSpecName is the name of+ the GMSA credential spec to use.+ type: string+ hostProcess:+ description: |-+ HostProcess determines if a container should be run as a 'Host Process' container.+ All of a Pod's containers must have the same effective HostProcess value+ (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).+ In addition, if HostProcess is true then HostNetwork must also be set to true.+ type: boolean+ runAsUserName:+ description: |-+ The UserName in Windows to run the entrypoint of the container process.+ Defaults to the user specified in image metadata if unspecified.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ type: string+ type: object+ type: object+ serviceAccountName:+ description: |-+ ServiceAccountName is the name of the ServiceAccount to use for this component's pod.+ When CreateServiceAccount is true, the operator will create a ServiceAccount with this name.+ When CreateServiceAccount is false, the ServiceAccount must already exist in the target namespace.+ If not specified, defaults to "openrag-{role}" (e.g., "openrag-fe", "openrag-be", "openrag-lf").+ type: string+ serviceAnnotations:+ additionalProperties:+ type: string+ description: ServiceAnnotations are annotations to add to+ the Service resource.+ type: object+ serviceName:+ description: |-+ ServiceName is the name of the Service to use for this component.+ When CreateService is true, the operator will create a Service with this name.+ When CreateService is false, the Service must already exist in the target namespace.+ If not specified, defaults to "openrag-{role}" (e.g., "openrag-fe", "openrag-be", "openrag-lf").+ type: string+ serviceType:+ default: ClusterIP+ description: ServiceType specifies the type of Service to+ create (ClusterIP, LoadBalancer, NodePort).+ type: string+ storage:+ description: Storage configures a PVC for model cache and+ temporary files.+ properties:+ accessModes:+ description: AccessModes for the PVC. Defaults to ["ReadWriteOnce"].+ items:+ type: string+ type: array+ enabled:+ default: true+ type: boolean+ existingClaim:+ description: ExistingClaim reuses a pre-existing PVC instead+ of creating one.+ type: string+ size:+ anyOf:+ - type: integer+ - type: string+ default: 10Gi+ description: Size of the PVC. Defaults to 10Gi.+ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$+ x-kubernetes-int-or-string: true+ storageClassName:+ description: StorageClassName passed to the PVC. Defaults+ to the cluster default.+ type: string+ type: object+ tolerations:+ items:+ description: |-+ The pod this Toleration is attached to tolerates any taint that matches+ the triple <key,value,effect> using the matching operator <operator>.+ properties:+ effect:+ description: |-+ Effect indicates the taint effect to match. Empty means match all taint effects.+ When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.+ type: string+ key:+ description: |-+ Key is the taint key that the toleration applies to. Empty means match all taint keys.+ If the key is empty, operator must be Exists; this combination means to match all values and all keys.+ type: string+ operator:+ description: |-+ Operator represents a key's relationship to the value.+ Valid operators are Exists and Equal. Defaults to Equal.+ Exists is equivalent to wildcard for value, so that a pod can+ tolerate all taints of a particular category.+ type: string+ tolerationSeconds:+ description: |-+ TolerationSeconds represents the period of time the toleration (which must be+ of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,+ it is not set, which means tolerate the taint forever (do not evict). Zero and+ negative values will be treated as 0 (evict immediately) by the system.+ format: int64+ type: integer+ value:+ description: |-+ Value is the taint value the toleration matches to.+ If the operator is Exists, the value should be empty, otherwise just a regular string.+ type: string+ type: object+ type: array+ topologySpreadConstraints:+ description: TopologySpreadConstraints for high availability+ pod distribution.+ items:+ description: TopologySpreadConstraint specifies how to spread+ matching pods among the given topology.+ properties:+ labelSelector:+ description: |-+ LabelSelector is used to find matching pods.+ Pods that match this label selector are counted to determine the number of pods+ in their corresponding topology domain.+ properties:+ matchExpressions:+ description: matchExpressions is a list of label+ selector requirements. The requirements are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label key that the+ selector applies to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ matchLabelKeys:+ description: |-+ MatchLabelKeys is a set of pod label keys to select the pods over which+ spreading will be calculated. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are ANDed with labelSelector+ to select the group of existing pods over which spreading will be calculated+ for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector.+ MatchLabelKeys cannot be set when LabelSelector isn't set.+ Keys that don't exist in the incoming pod labels will+ be ignored. A null or empty list means only match against labelSelector.++ This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ maxSkew:+ description: |-+ MaxSkew describes the degree to which pods may be unevenly distributed.+ When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference+ between the number of matching pods in the target topology and the global minimum.+ The global minimum is the minimum number of matching pods in an eligible domain+ or zero if the number of eligible domains is less than MinDomains.+ For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same+ labelSelector spread as 2/2/1:+ In this case, the global minimum is 1.+ | zone1 | zone2 | zone3 |+ | P P | P P | P |+ - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2;+ scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2)+ violate MaxSkew(1).+ - if MaxSkew is 2, incoming pod can be scheduled onto any zone.+ When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence+ to topologies that satisfy it.+ It's a required field. Default value is 1 and 0 is not allowed.+ format: int32+ type: integer+ minDomains:+ description: |-+ MinDomains indicates a minimum number of eligible domains.+ When the number of eligible domains with matching topology keys is less than minDomains,+ Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed.+ And when the number of eligible domains with matching topology keys equals or greater than minDomains,+ this value has no effect on scheduling.+ As a result, when the number of eligible domains is less than minDomains,+ scheduler won't schedule more than maxSkew Pods to those domains.+ If value is nil, the constraint behaves as if MinDomains is equal to 1.+ Valid values are integers greater than 0.+ When value is not nil, WhenUnsatisfiable must be DoNotSchedule.++ For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same+ labelSelector spread as 2/2/2:+ | zone1 | zone2 | zone3 |+ | P P | P P | P P |+ The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0.+ In this situation, new pod with the same labelSelector cannot be scheduled,+ because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones,+ it will violate MaxSkew.+ format: int32+ type: integer+ nodeAffinityPolicy:+ description: |-+ NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector+ when calculating pod topology spread skew. Options are:+ - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations.+ - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.++ If this value is nil, the behavior is equivalent to the Honor policy.+ type: string+ nodeTaintsPolicy:+ description: |-+ NodeTaintsPolicy indicates how we will treat node taints when calculating+ pod topology spread skew. Options are:+ - Honor: nodes without taints, along with tainted nodes for which the incoming pod+ has a toleration, are included.+ - Ignore: node taints are ignored. All nodes are included.++ If this value is nil, the behavior is equivalent to the Ignore policy.+ type: string+ topologyKey:+ description: |-+ TopologyKey is the key of node labels. Nodes that have a label with this key+ and identical values are considered to be in the same topology.+ We consider each <key, value> as a "bucket", and try to put balanced number+ of pods into each bucket.+ We define a domain as a particular instance of a topology.+ Also, we define an eligible domain as a domain whose nodes meet the requirements of+ nodeAffinityPolicy and nodeTaintsPolicy.+ e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology.+ And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology.+ It's a required field.+ type: string+ whenUnsatisfiable:+ description: |-+ WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy+ the spread constraint.+ - DoNotSchedule (default) tells the scheduler not to schedule it.+ - ScheduleAnyway tells the scheduler to schedule the pod in any location,+ but giving higher precedence to topologies that would help reduce the+ skew.+ A constraint is considered "Unsatisfiable" for an incoming pod+ if and only if every possible node assignment for that pod would violate+ "MaxSkew" on some topology.+ For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same+ labelSelector spread as 3/1/1:+ | zone1 | zone2 | zone3 |+ | P P P | P | P |+ If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled+ to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies+ MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler+ won't make it *more* imbalanced.+ It's a required field.+ type: string+ required:+ - maxSkew+ - topologyKey+ - whenUnsatisfiable+ type: object+ type: array+ required:+ - image+ type: object+ valkey:+ description: |-+ Valkey configures an operator-managed Valkey instance for the queue.+ When enabled, docling-worker automatically uses this Valkey instance.+ properties:+ affinity:+ description: Affinity is a group of affinity scheduling rules.+ properties:+ nodeAffinity:+ description: Describes node affinity scheduling rules+ for the pod.+ properties:+ preferredDuringSchedulingIgnoredDuringExecution:+ description: |-+ The scheduler will prefer to schedule pods to nodes that satisfy+ the affinity expressions specified by this field, but it may choose+ a node that violates one or more of the expressions. The node that is+ most preferred is the one with the greatest sum of weights, i.e.+ for each node that meets all of the scheduling requirements (resource+ request, requiredDuringScheduling affinity expressions, etc.),+ compute a sum by iterating through the elements of this field and adding+ "weight" to the sum if the node matches the corresponding matchExpressions; the+ node(s) with the highest sum are the most preferred.+ items:+ description: |-+ An empty preferred scheduling term matches all objects with implicit weight 0+ (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).+ properties:+ preference:+ description: A node selector term, associated+ with the corresponding weight.+ properties:+ matchExpressions:+ description: A list of node selector requirements+ by node's labels.+ items:+ description: |-+ A node selector requirement is a selector that contains values, a key, and an operator+ that relates the key and values.+ properties:+ key:+ description: The label key that the+ selector applies to.+ type: string+ operator:+ description: |-+ Represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.+ type: string+ values:+ description: |-+ An array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. If the operator is Gt or Lt, the values+ array must have a single element, which will be interpreted as an integer.+ This array is replaced during a strategic merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchFields:+ description: A list of node selector requirements+ by node's fields.+ items:+ description: |-+ A node selector requirement is a selector that contains values, a key, and an operator+ that relates the key and values.+ properties:+ key:+ description: The label key that the+ selector applies to.+ type: string+ operator:+ description: |-+ Represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.+ type: string+ values:+ description: |-+ An array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. If the operator is Gt or Lt, the values+ array must have a single element, which will be interpreted as an integer.+ This array is replaced during a strategic merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ type: object+ x-kubernetes-map-type: atomic+ weight:+ description: Weight associated with matching+ the corresponding nodeSelectorTerm, in the+ range 1-100.+ format: int32+ type: integer+ required:+ - preference+ - weight+ type: object+ type: array+ x-kubernetes-list-type: atomic+ requiredDuringSchedulingIgnoredDuringExecution:+ description: |-+ If the affinity requirements specified by this field are not met at+ scheduling time, the pod will not be scheduled onto the node.+ If the affinity requirements specified by this field cease to be met+ at some point during pod execution (e.g. due to an update), the system+ may or may not try to eventually evict the pod from its node.+ properties:+ nodeSelectorTerms:+ description: Required. A list of node selector+ terms. The terms are ORed.+ items:+ description: |-+ A null or empty node selector term matches no objects. The requirements of+ them are ANDed.+ The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.+ properties:+ matchExpressions:+ description: A list of node selector requirements+ by node's labels.+ items:+ description: |-+ A node selector requirement is a selector that contains values, a key, and an operator+ that relates the key and values.+ properties:+ key:+ description: The label key that the+ selector applies to.+ type: string+ operator:+ description: |-+ Represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.+ type: string+ values:+ description: |-+ An array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. If the operator is Gt or Lt, the values+ array must have a single element, which will be interpreted as an integer.+ This array is replaced during a strategic merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchFields:+ description: A list of node selector requirements+ by node's fields.+ items:+ description: |-+ A node selector requirement is a selector that contains values, a key, and an operator+ that relates the key and values.+ properties:+ key:+ description: The label key that the+ selector applies to.+ type: string+ operator:+ description: |-+ Represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.+ type: string+ values:+ description: |-+ An array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. If the operator is Gt or Lt, the values+ array must have a single element, which will be interpreted as an integer.+ This array is replaced during a strategic merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ type: object+ x-kubernetes-map-type: atomic+ type: array+ x-kubernetes-list-type: atomic+ required:+ - nodeSelectorTerms+ type: object+ x-kubernetes-map-type: atomic+ type: object+ podAffinity:+ description: Describes pod affinity scheduling rules (e.g.+ co-locate this pod in the same node, zone, etc. as some+ other pod(s)).+ properties:+ preferredDuringSchedulingIgnoredDuringExecution:+ description: |-+ The scheduler will prefer to schedule pods to nodes that satisfy+ the affinity expressions specified by this field, but it may choose+ a node that violates one or more of the expressions. The node that is+ most preferred is the one with the greatest sum of weights, i.e.+ for each node that meets all of the scheduling requirements (resource+ request, requiredDuringScheduling affinity expressions, etc.),+ compute a sum by iterating through the elements of this field and adding+ "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the+ node(s) with the highest sum are the most preferred.+ items:+ description: The weights of all of the matched WeightedPodAffinityTerm+ fields are added per-node to find the most preferred+ node(s)+ properties:+ podAffinityTerm:+ description: Required. A pod affinity term,+ associated with the corresponding weight.+ properties:+ labelSelector:+ description: |-+ A label query over a set of resources, in this case pods.+ If it's null, this PodAffinityTerm matches with no Pods.+ properties:+ matchExpressions:+ description: matchExpressions is a list+ of label selector requirements. The+ requirements are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label+ key that the selector applies+ to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ matchLabelKeys:+ description: |-+ MatchLabelKeys is a set of pod label keys to select which pods will+ be taken into consideration. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`+ to select the group of existing pods which pods will be taken into consideration+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming+ pod labels will be ignored. The default value is empty.+ The same key is forbidden to exist in both matchLabelKeys and labelSelector.+ Also, matchLabelKeys cannot be set when labelSelector isn't set.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ mismatchLabelKeys:+ description: |-+ MismatchLabelKeys is a set of pod label keys to select which pods will+ be taken into consideration. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`+ to select the group of existing pods which pods will be taken into consideration+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming+ pod labels will be ignored. The default value is empty.+ The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.+ Also, mismatchLabelKeys cannot be set when labelSelector isn't set.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ namespaceSelector:+ description: |-+ A label query over the set of namespaces that the term applies to.+ The term is applied to the union of the namespaces selected by this field+ and the ones listed in the namespaces field.+ null selector and null or empty namespaces list means "this pod's namespace".+ An empty selector ({}) matches all namespaces.+ properties:+ matchExpressions:+ description: matchExpressions is a list+ of label selector requirements. The+ requirements are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label+ key that the selector applies+ to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ namespaces:+ description: |-+ namespaces specifies a static list of namespace names that the term applies to.+ The term is applied to the union of the namespaces listed in this field+ and the ones selected by namespaceSelector.+ null or empty namespaces list and null namespaceSelector means "this pod's namespace".+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ topologyKey:+ description: |-+ This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching+ the labelSelector in the specified namespaces, where co-located is defined as running on a node+ whose value of the label with key topologyKey matches that of any node on which any of the+ selected pods is running.+ Empty topologyKey is not allowed.+ type: string+ required:+ - topologyKey+ type: object+ weight:+ description: |-+ weight associated with matching the corresponding podAffinityTerm,+ in the range 1-100.+ format: int32+ type: integer+ required:+ - podAffinityTerm+ - weight+ type: object+ type: array+ x-kubernetes-list-type: atomic+ requiredDuringSchedulingIgnoredDuringExecution:+ description: |-+ If the affinity requirements specified by this field are not met at+ scheduling time, the pod will not be scheduled onto the node.+ If the affinity requirements specified by this field cease to be met+ at some point during pod execution (e.g. due to a pod label update), the+ system may or may not try to eventually evict the pod from its node.+ When there are multiple elements, the lists of nodes corresponding to each+ podAffinityTerm are intersected, i.e. all terms must be satisfied.+ items:+ description: |-+ Defines a set of pods (namely those matching the labelSelector+ relative to the given namespace(s)) that this pod should be+ co-located (affinity) or not co-located (anti-affinity) with,+ where co-located is defined as running on a node whose value of+ the label with key <topologyKey> matches that of any node on which+ a pod of the set of pods is running+ properties:+ labelSelector:+ description: |-+ A label query over a set of resources, in this case pods.+ If it's null, this PodAffinityTerm matches with no Pods.+ properties:+ matchExpressions:+ description: matchExpressions is a list+ of label selector requirements. The requirements+ are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label key+ that the selector applies to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ matchLabelKeys:+ description: |-+ MatchLabelKeys is a set of pod label keys to select which pods will+ be taken into consideration. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`+ to select the group of existing pods which pods will be taken into consideration+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming+ pod labels will be ignored. The default value is empty.+ The same key is forbidden to exist in both matchLabelKeys and labelSelector.+ Also, matchLabelKeys cannot be set when labelSelector isn't set.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ mismatchLabelKeys:+ description: |-+ MismatchLabelKeys is a set of pod label keys to select which pods will+ be taken into consideration. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`+ to select the group of existing pods which pods will be taken into consideration+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming+ pod labels will be ignored. The default value is empty.+ The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.+ Also, mismatchLabelKeys cannot be set when labelSelector isn't set.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ namespaceSelector:+ description: |-+ A label query over the set of namespaces that the term applies to.+ The term is applied to the union of the namespaces selected by this field+ and the ones listed in the namespaces field.+ null selector and null or empty namespaces list means "this pod's namespace".+ An empty selector ({}) matches all namespaces.+ properties:+ matchExpressions:+ description: matchExpressions is a list+ of label selector requirements. The requirements+ are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label key+ that the selector applies to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ namespaces:+ description: |-+ namespaces specifies a static list of namespace names that the term applies to.+ The term is applied to the union of the namespaces listed in this field+ and the ones selected by namespaceSelector.+ null or empty namespaces list and null namespaceSelector means "this pod's namespace".+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ topologyKey:+ description: |-+ This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching+ the labelSelector in the specified namespaces, where co-located is defined as running on a node+ whose value of the label with key topologyKey matches that of any node on which any of the+ selected pods is running.+ Empty topologyKey is not allowed.+ type: string+ required:+ - topologyKey+ type: object+ type: array+ x-kubernetes-list-type: atomic+ type: object+ podAntiAffinity:+ description: Describes pod anti-affinity scheduling rules+ (e.g. avoid putting this pod in the same node, zone,+ etc. as some other pod(s)).+ properties:+ preferredDuringSchedulingIgnoredDuringExecution:+ description: |-+ The scheduler will prefer to schedule pods to nodes that satisfy+ the anti-affinity expressions specified by this field, but it may choose+ a node that violates one or more of the expressions. The node that is+ most preferred is the one with the greatest sum of weights, i.e.+ for each node that meets all of the scheduling requirements (resource+ request, requiredDuringScheduling anti-affinity expressions, etc.),+ compute a sum by iterating through the elements of this field and adding+ "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the+ node(s) with the highest sum are the most preferred.+ items:+ description: The weights of all of the matched WeightedPodAffinityTerm+ fields are added per-node to find the most preferred+ node(s)+ properties:+ podAffinityTerm:+ description: Required. A pod affinity term,+ associated with the corresponding weight.+ properties:+ labelSelector:+ description: |-+ A label query over a set of resources, in this case pods.+ If it's null, this PodAffinityTerm matches with no Pods.+ properties:+ matchExpressions:+ description: matchExpressions is a list+ of label selector requirements. The+ requirements are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label+ key that the selector applies+ to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ matchLabelKeys:+ description: |-+ MatchLabelKeys is a set of pod label keys to select which pods will+ be taken into consideration. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`+ to select the group of existing pods which pods will be taken into consideration+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming+ pod labels will be ignored. The default value is empty.+ The same key is forbidden to exist in both matchLabelKeys and labelSelector.+ Also, matchLabelKeys cannot be set when labelSelector isn't set.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ mismatchLabelKeys:+ description: |-+ MismatchLabelKeys is a set of pod label keys to select which pods will+ be taken into consideration. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`+ to select the group of existing pods which pods will be taken into consideration+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming+ pod labels will be ignored. The default value is empty.+ The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.+ Also, mismatchLabelKeys cannot be set when labelSelector isn't set.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ namespaceSelector:+ description: |-+ A label query over the set of namespaces that the term applies to.+ The term is applied to the union of the namespaces selected by this field+ and the ones listed in the namespaces field.+ null selector and null or empty namespaces list means "this pod's namespace".+ An empty selector ({}) matches all namespaces.+ properties:+ matchExpressions:+ description: matchExpressions is a list+ of label selector requirements. The+ requirements are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label+ key that the selector applies+ to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ namespaces:+ description: |-+ namespaces specifies a static list of namespace names that the term applies to.+ The term is applied to the union of the namespaces listed in this field+ and the ones selected by namespaceSelector.+ null or empty namespaces list and null namespaceSelector means "this pod's namespace".+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ topologyKey:+ description: |-+ This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching+ the labelSelector in the specified namespaces, where co-located is defined as running on a node+ whose value of the label with key topologyKey matches that of any node on which any of the+ selected pods is running.+ Empty topologyKey is not allowed.+ type: string+ required:+ - topologyKey+ type: object+ weight:+ description: |-+ weight associated with matching the corresponding podAffinityTerm,+ in the range 1-100.+ format: int32+ type: integer+ required:+ - podAffinityTerm+ - weight+ type: object+ type: array+ x-kubernetes-list-type: atomic+ requiredDuringSchedulingIgnoredDuringExecution:+ description: |-+ If the anti-affinity requirements specified by this field are not met at+ scheduling time, the pod will not be scheduled onto the node.+ If the anti-affinity requirements specified by this field cease to be met+ at some point during pod execution (e.g. due to a pod label update), the+ system may or may not try to eventually evict the pod from its node.+ When there are multiple elements, the lists of nodes corresponding to each+ podAffinityTerm are intersected, i.e. all terms must be satisfied.+ items:+ description: |-+ Defines a set of pods (namely those matching the labelSelector+ relative to the given namespace(s)) that this pod should be+ co-located (affinity) or not co-located (anti-affinity) with,+ where co-located is defined as running on a node whose value of+ the label with key <topologyKey> matches that of any node on which+ a pod of the set of pods is running+ properties:+ labelSelector:+ description: |-+ A label query over a set of resources, in this case pods.+ If it's null, this PodAffinityTerm matches with no Pods.+ properties:+ matchExpressions:+ description: matchExpressions is a list+ of label selector requirements. The requirements+ are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label key+ that the selector applies to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ matchLabelKeys:+ description: |-+ MatchLabelKeys is a set of pod label keys to select which pods will+ be taken into consideration. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`+ to select the group of existing pods which pods will be taken into consideration+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming+ pod labels will be ignored. The default value is empty.+ The same key is forbidden to exist in both matchLabelKeys and labelSelector.+ Also, matchLabelKeys cannot be set when labelSelector isn't set.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ mismatchLabelKeys:+ description: |-+ MismatchLabelKeys is a set of pod label keys to select which pods will+ be taken into consideration. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`+ to select the group of existing pods which pods will be taken into consideration+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming+ pod labels will be ignored. The default value is empty.+ The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.+ Also, mismatchLabelKeys cannot be set when labelSelector isn't set.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ namespaceSelector:+ description: |-+ A label query over the set of namespaces that the term applies to.+ The term is applied to the union of the namespaces selected by this field+ and the ones listed in the namespaces field.+ null selector and null or empty namespaces list means "this pod's namespace".+ An empty selector ({}) matches all namespaces.+ properties:+ matchExpressions:+ description: matchExpressions is a list+ of label selector requirements. The requirements+ are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label key+ that the selector applies to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ namespaces:+ description: |-+ namespaces specifies a static list of namespace names that the term applies to.+ The term is applied to the union of the namespaces listed in this field+ and the ones selected by namespaceSelector.+ null or empty namespaces list and null namespaceSelector means "this pod's namespace".+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ topologyKey:+ description: |-+ This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching+ the labelSelector in the specified namespaces, where co-located is defined as running on a node+ whose value of the label with key topologyKey matches that of any node on which any of the+ selected pods is running.+ Empty topologyKey is not allowed.+ type: string+ required:+ - topologyKey+ type: object+ type: array+ x-kubernetes-list-type: atomic+ type: object+ type: object+ annotations:+ additionalProperties:+ type: string+ description: |-+ Annotations are custom annotations to add to the Deployment/StatefulSet object metadata.+ These annotations appear on the workload resource itself, not the pods.+ Useful for GitOps metadata, deployment tracking, and automation tools.+ maxProperties: 64+ type: object+ args:+ description: Args overrides the container's command arguments.+ items:+ type: string+ type: array+ command:+ description: Command overrides the container's entrypoint.+ items:+ type: string+ type: array+ createService:+ default: true+ description: |-+ CreateService indicates whether the operator should create the Service.+ If true (default), the operator creates a Service with the name specified in ServiceName.+ If false, the operator assumes the Service already exists and will only reference it.+ type: boolean+ createServiceAccount:+ default: true+ description: |-+ CreateServiceAccount indicates whether the operator should create the ServiceAccount.+ If true (default), the operator creates a ServiceAccount with the name specified in ServiceAccountName.+ If false, the operator assumes the ServiceAccount already exists and will only reference it.+ type: boolean+ database:+ default: 0+ description: Database number to use (0-15).+ format: int32+ maximum: 15+ minimum: 0+ type: integer+ env:+ description: Additional environment variables injected into+ the container.+ items:+ description: EnvVar represents an environment variable present+ in a Container.+ properties:+ name:+ description: Name of the environment variable. Must+ be a C_IDENTIFIER.+ type: string+ value:+ description: |-+ Variable references $(VAR_NAME) are expanded+ using the previously defined environment variables in the container and+ any service environment variables. If a variable cannot be resolved,+ the reference in the input string will be unchanged. Double $$ are reduced+ to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.+ "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".+ Escaped references will never be expanded, regardless of whether the variable+ exists or not.+ Defaults to "".+ type: string+ valueFrom:+ description: Source for the environment variable's value.+ Cannot be used if value is not empty.+ properties:+ configMapKeyRef:+ description: Selects a key of a ConfigMap.+ properties:+ key:+ description: The key to select.+ type: string+ name:+ default: ""+ description: |-+ Name of the referent.+ This field is effectively required, but due to backwards compatibility is+ allowed to be empty. Instances of this type with an empty value here are+ almost certainly wrong.+ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names+ type: string+ optional:+ description: Specify whether the ConfigMap or+ its key must be defined+ type: boolean+ required:+ - key+ type: object+ x-kubernetes-map-type: atomic+ fieldRef:+ description: |-+ Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,+ spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.+ properties:+ apiVersion:+ description: Version of the schema the FieldPath+ is written in terms of, defaults to "v1".+ type: string+ fieldPath:+ description: Path of the field to select in+ the specified API version.+ type: string+ required:+ - fieldPath+ type: object+ x-kubernetes-map-type: atomic+ resourceFieldRef:+ description: |-+ Selects a resource of the container: only resources limits and requests+ (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.+ properties:+ containerName:+ description: 'Container name: required for volumes,+ optional for env vars'+ type: string+ divisor:+ anyOf:+ - type: integer+ - type: string+ description: Specifies the output format of+ the exposed resources, defaults to "1"+ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$+ x-kubernetes-int-or-string: true+ resource:+ description: 'Required: resource to select'+ type: string+ required:+ - resource+ type: object+ x-kubernetes-map-type: atomic+ secretKeyRef:+ description: Selects a key of a secret in the pod's+ namespace+ properties:+ key:+ description: The key of the secret to select+ from. Must be a valid secret key.+ type: string+ name:+ default: ""+ description: |-+ Name of the referent.+ This field is effectively required, but due to backwards compatibility is+ allowed to be empty. Instances of this type with an empty value here are+ almost certainly wrong.+ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names+ type: string+ optional:+ description: Specify whether the Secret or its+ key must be defined+ type: boolean+ required:+ - key+ type: object+ x-kubernetes-map-type: atomic+ type: object+ required:+ - name+ type: object+ type: array+ image:+ description: Image is the container image (repository:tag).+ type: string+ imagePullPolicy:+ default: IfNotPresent+ description: PullPolicy describes a policy for if/when to+ pull a container image+ type: string+ imagePullSecrets:+ description: |-+ ImagePullSecrets for private registries, specific to this component.+ These are merged with the global imagePullSecrets from the OpenRAG spec.+ items:+ description: |-+ LocalObjectReference contains enough information to let you locate the+ referenced object inside the same namespace.+ properties:+ name:+ default: ""+ description: |-+ Name of the referent.+ This field is effectively required, but due to backwards compatibility is+ allowed to be empty. Instances of this type with an empty value here are+ almost certainly wrong.+ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names+ type: string+ type: object+ x-kubernetes-map-type: atomic+ type: array+ x-kubernetes-validations:+ - message: imagePullSecret name cannot be empty+ rule: self.all(x, x.name != '')+ labels:+ additionalProperties:+ type: string+ description: |-+ Labels are custom labels to add to the Deployment/StatefulSet object metadata.+ These labels appear on the workload resource itself, not the pods.+ Useful for querying and grouping Deployment/StatefulSet objects.+ maxProperties: 64+ type: object+ maxMemory:+ description: MaxMemory sets the max memory limit (e.g., "256mb",+ "1gb").+ type: string+ maxMemoryPolicy:+ default: allkeys-lru+ description: MaxMemoryPolicy sets eviction policy (e.g., "allkeys-lru",+ "volatile-lru").+ type: string+ nodeSelector:+ additionalProperties:+ type: string+ type: object+ password:+ description: Password for Valkey authentication (optional).+ type: string+ passwordSecret:+ description: PasswordSecret references a Secret key for Valkey+ password.+ properties:+ key:+ description: The key of the secret to select from. Must+ be a valid secret key.+ type: string+ name:+ default: ""+ description: |-+ Name of the referent.+ This field is effectively required, but due to backwards compatibility is+ allowed to be empty. Instances of this type with an empty value here are+ almost certainly wrong.+ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names+ type: string+ optional:+ description: Specify whether the Secret or its key must+ be defined+ type: boolean+ required:+ - key+ type: object+ x-kubernetes-map-type: atomic+ podAnnotations:+ additionalProperties:+ type: string+ description: |-+ PodAnnotations are custom annotations to add to the pod template.+ These annotations appear on the actual pods created by the Deployment/StatefulSet.+ Useful for sidecar injection (Istio, Vault), monitoring (Prometheus), and backup (Velero).+ maxProperties: 64+ type: object+ podLabels:+ additionalProperties:+ type: string+ description: |-+ PodLabels are custom labels to add to the pod template.+ These labels appear on the actual pods created by the Deployment/StatefulSet.+ Useful for pod selectors, monitoring queries, network policies, and service mesh.+ Merged with operator-managed labels (app.kubernetes.io/*).+ Cannot override operator-managed labels.+ maxProperties: 64+ type: object+ podSecurityContext:+ description: PodSecurityContext holds pod-level security attributes.+ properties:+ appArmorProfile:+ description: |-+ appArmorProfile is the AppArmor options to use by the containers in this pod.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ localhostProfile:+ description: |-+ localhostProfile indicates a profile loaded on the node that should be used.+ The profile must be preconfigured on the node to work.+ Must match the loaded name of the profile.+ Must be set if and only if type is "Localhost".+ type: string+ type:+ description: |-+ type indicates which kind of AppArmor profile will be applied.+ Valid options are:+ Localhost - a profile pre-loaded on the node.+ RuntimeDefault - the container runtime's default profile.+ Unconfined - no AppArmor enforcement.+ type: string+ required:+ - type+ type: object+ fsGroup:+ description: |-+ A special supplemental group that applies to all containers in a pod.+ Some volume types allow the Kubelet to change the ownership of that volume+ to be owned by the pod:++ 1. The owning GID will be the FSGroup+ 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)+ 3. The permission bits are OR'd with rw-rw----++ If unset, the Kubelet will not modify the ownership and permissions of any volume.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ fsGroupChangePolicy:+ description: |-+ fsGroupChangePolicy defines behavior of changing ownership and permission of the volume+ before being exposed inside Pod. This field will only apply to+ volume types which support fsGroup based ownership(and permissions).+ It will have no effect on ephemeral volume types such as: secret, configmaps+ and emptydir.+ Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.+ Note that this field cannot be set when spec.os.name is windows.+ type: string+ runAsGroup:+ description: |-+ The GID to run the entrypoint of the container process.+ Uses runtime default if unset.+ May also be set in SecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence+ for that container.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ runAsNonRoot:+ description: |-+ Indicates that the container must run as a non-root user.+ If true, the Kubelet will validate the image at runtime to ensure that it+ does not run as UID 0 (root) and fail to start the container if it does.+ If unset or false, no such validation will be performed.+ May also be set in SecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ type: boolean+ runAsUser:+ description: |-+ The UID to run the entrypoint of the container process.+ Defaults to user specified in image metadata if unspecified.+ May also be set in SecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence+ for that container.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ seLinuxChangePolicy:+ description: |-+ seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod.+ It has no effect on nodes that do not support SELinux or to volumes does not support SELinux.+ Valid values are "MountOption" and "Recursive".++ "Recursive" means relabeling of all files on all Pod volumes by the container runtime.+ This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node.++ "MountOption" mounts all eligible Pod volumes with `-o context` mount option.+ This requires all Pods that share the same volume to use the same SELinux label.+ It is not possible to share the same volume among privileged and unprivileged Pods.+ Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes+ whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their+ CSIDriver instance. Other volumes are always re-labelled recursively.+ "MountOption" value is allowed only when SELinuxMount feature gate is enabled.++ If not specified and SELinuxMount feature gate is enabled, "MountOption" is used.+ If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes+ and "Recursive" for all other volumes.++ This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.++ All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state.+ Note that this field cannot be set when spec.os.name is windows.+ type: string+ seLinuxOptions:+ description: |-+ The SELinux context to be applied to all containers.+ If unspecified, the container runtime will allocate a random SELinux context for each+ container. May also be set in SecurityContext. If set in+ both SecurityContext and PodSecurityContext, the value specified in SecurityContext+ takes precedence for that container.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ level:+ description: Level is SELinux level label that applies+ to the container.+ type: string+ role:+ description: Role is a SELinux role label that applies+ to the container.+ type: string+ type:+ description: Type is a SELinux type label that applies+ to the container.+ type: string+ user:+ description: User is a SELinux user label that applies+ to the container.+ type: string+ type: object+ seccompProfile:+ description: |-+ The seccomp options to use by the containers in this pod.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ localhostProfile:+ description: |-+ localhostProfile indicates a profile defined in a file on the node should be used.+ The profile must be preconfigured on the node to work.+ Must be a descending path, relative to the kubelet's configured seccomp profile location.+ Must be set if type is "Localhost". Must NOT be set for any other type.+ type: string+ type:+ description: |-+ type indicates which kind of seccomp profile will be applied.+ Valid options are:++ Localhost - a profile defined in a file on the node should be used.+ RuntimeDefault - the container runtime default profile should be used.+ Unconfined - no profile should be applied.+ type: string+ required:+ - type+ type: object+ supplementalGroups:+ description: |-+ A list of groups applied to the first process run in each container, in+ addition to the container's primary GID and fsGroup (if specified). If+ the SupplementalGroupsPolicy feature is enabled, the+ supplementalGroupsPolicy field determines whether these are in addition+ to or instead of any group memberships defined in the container image.+ If unspecified, no additional groups are added, though group memberships+ defined in the container image may still be used, depending on the+ supplementalGroupsPolicy field.+ Note that this field cannot be set when spec.os.name is windows.+ items:+ format: int64+ type: integer+ type: array+ x-kubernetes-list-type: atomic+ supplementalGroupsPolicy:+ description: |-+ Defines how supplemental groups of the first container processes are calculated.+ Valid values are "Merge" and "Strict". If not specified, "Merge" is used.+ (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled+ and the container runtime must implement support for this feature.+ Note that this field cannot be set when spec.os.name is windows.+ type: string+ sysctls:+ description: |-+ Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported+ sysctls (by the container runtime) might fail to launch.+ Note that this field cannot be set when spec.os.name is windows.+ items:+ description: Sysctl defines a kernel parameter to be+ set+ properties:+ name:+ description: Name of a property to set+ type: string+ value:+ description: Value of a property to set+ type: string+ required:+ - name+ - value+ type: object+ type: array+ x-kubernetes-list-type: atomic+ windowsOptions:+ description: |-+ The Windows specific settings applied to all containers.+ If unspecified, the options within a container's SecurityContext will be used.+ If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is linux.+ properties:+ gmsaCredentialSpec:+ description: |-+ GMSACredentialSpec is where the GMSA admission webhook+ (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the+ GMSA credential spec named by the GMSACredentialSpecName field.+ type: string+ gmsaCredentialSpecName:+ description: GMSACredentialSpecName is the name of+ the GMSA credential spec to use.+ type: string+ hostProcess:+ description: |-+ HostProcess determines if a container should be run as a 'Host Process' container.+ All of a Pod's containers must have the same effective HostProcess value+ (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).+ In addition, if HostProcess is true then HostNetwork must also be set to true.+ type: boolean+ runAsUserName:+ description: |-+ The UserName in Windows to run the entrypoint of the container process.+ Defaults to the user specified in image metadata if unspecified.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ type: string+ type: object+ type: object+ port:+ default: 6379+ description: Port for the Valkey service.+ format: int32+ type: integer+ replicas:+ default: 1+ format: int32+ minimum: 0+ type: integer+ resources:+ description: ResourceRequirements describes the compute resource+ requirements.+ properties:+ claims:+ description: |-+ Claims lists the names of resources, defined in spec.resourceClaims,+ that are used by this container.++ This is an alpha field and requires enabling the+ DynamicResourceAllocation feature gate.++ This field is immutable. It can only be set for containers.+ items:+ description: ResourceClaim references one entry in PodSpec.ResourceClaims.+ properties:+ name:+ description: |-+ Name must match the name of one entry in pod.spec.resourceClaims of+ the Pod where this field is used. It makes that resource available+ inside a container.+ type: string+ request:+ description: |-+ Request is the name chosen for a request in the referenced claim.+ If empty, everything from the claim is made available, otherwise+ only the result of this request.+ type: string+ required:+ - name+ type: object+ type: array+ x-kubernetes-list-map-keys:+ - name+ x-kubernetes-list-type: map+ limits:+ additionalProperties:+ anyOf:+ - type: integer+ - type: string+ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$+ x-kubernetes-int-or-string: true+ description: |-+ Limits describes the maximum amount of compute resources allowed.+ More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/+ type: object+ requests:+ additionalProperties:+ anyOf:+ - type: integer+ - type: string+ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$+ x-kubernetes-int-or-string: true+ description: |-+ Requests describes the minimum amount of compute resources required.+ If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,+ otherwise to an implementation-defined value. Requests cannot exceed Limits.+ More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/+ type: object+ type: object+ securityContext:+ description: SecurityContext holds container-level security+ attributes.+ properties:+ allowPrivilegeEscalation:+ description: |-+ AllowPrivilegeEscalation controls whether a process can gain more+ privileges than its parent process. This bool directly controls if+ the no_new_privs flag will be set on the container process.+ AllowPrivilegeEscalation is true always when the container is:+ 1) run as Privileged+ 2) has CAP_SYS_ADMIN+ Note that this field cannot be set when spec.os.name is windows.+ type: boolean+ appArmorProfile:+ description: |-+ appArmorProfile is the AppArmor options to use by this container. If set, this profile+ overrides the pod's appArmorProfile.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ localhostProfile:+ description: |-+ localhostProfile indicates a profile loaded on the node that should be used.+ The profile must be preconfigured on the node to work.+ Must match the loaded name of the profile.+ Must be set if and only if type is "Localhost".+ type: string+ type:+ description: |-+ type indicates which kind of AppArmor profile will be applied.+ Valid options are:+ Localhost - a profile pre-loaded on the node.+ RuntimeDefault - the container runtime's default profile.+ Unconfined - no AppArmor enforcement.+ type: string+ required:+ - type+ type: object+ capabilities:+ description: |-+ The capabilities to add/drop when running containers.+ Defaults to the default set of capabilities granted by the container runtime.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ add:+ description: Added capabilities+ items:+ description: Capability represent POSIX capabilities+ type+ type: string+ type: array+ x-kubernetes-list-type: atomic+ drop:+ description: Removed capabilities+ items:+ description: Capability represent POSIX capabilities+ type+ type: string+ type: array+ x-kubernetes-list-type: atomic+ type: object+ privileged:+ description: |-+ Run container in privileged mode.+ Processes in privileged containers are essentially equivalent to root on the host.+ Defaults to false.+ Note that this field cannot be set when spec.os.name is windows.+ type: boolean+ procMount:+ description: |-+ procMount denotes the type of proc mount to use for the containers.+ The default value is Default which uses the container runtime defaults for+ readonly paths and masked paths.+ This requires the ProcMountType feature flag to be enabled.+ Note that this field cannot be set when spec.os.name is windows.+ type: string+ readOnlyRootFilesystem:+ description: |-+ Whether this container has a read-only root filesystem.+ Default is false.+ Note that this field cannot be set when spec.os.name is windows.+ type: boolean+ runAsGroup:+ description: |-+ The GID to run the entrypoint of the container process.+ Uses runtime default if unset.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ runAsNonRoot:+ description: |-+ Indicates that the container must run as a non-root user.+ If true, the Kubelet will validate the image at runtime to ensure that it+ does not run as UID 0 (root) and fail to start the container if it does.+ If unset or false, no such validation will be performed.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ type: boolean+ runAsUser:+ description: |-+ The UID to run the entrypoint of the container process.+ Defaults to user specified in image metadata if unspecified.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ seLinuxOptions:+ description: |-+ The SELinux context to be applied to the container.+ If unspecified, the container runtime will allocate a random SELinux context for each+ container. May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ level:+ description: Level is SELinux level label that applies+ to the container.+ type: string+ role:+ description: Role is a SELinux role label that applies+ to the container.+ type: string+ type:+ description: Type is a SELinux type label that applies+ to the container.+ type: string+ user:+ description: User is a SELinux user label that applies+ to the container.+ type: string+ type: object+ seccompProfile:+ description: |-+ The seccomp options to use by this container. If seccomp options are+ provided at both the pod & container level, the container options+ override the pod options.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ localhostProfile:+ description: |-+ localhostProfile indicates a profile defined in a file on the node should be used.+ The profile must be preconfigured on the node to work.+ Must be a descending path, relative to the kubelet's configured seccomp profile location.+ Must be set if type is "Localhost". Must NOT be set for any other type.+ type: string+ type:+ description: |-+ type indicates which kind of seccomp profile will be applied.+ Valid options are:++ Localhost - a profile defined in a file on the node should be used.+ RuntimeDefault - the container runtime default profile should be used.+ Unconfined - no profile should be applied.+ type: string+ required:+ - type+ type: object+ windowsOptions:+ description: |-+ The Windows specific settings applied to all containers.+ If unspecified, the options from the PodSecurityContext will be used.+ If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is linux.+ properties:+ gmsaCredentialSpec:+ description: |-+ GMSACredentialSpec is where the GMSA admission webhook+ (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the+ GMSA credential spec named by the GMSACredentialSpecName field.+ type: string+ gmsaCredentialSpecName:+ description: GMSACredentialSpecName is the name of+ the GMSA credential spec to use.+ type: string+ hostProcess:+ description: |-+ HostProcess determines if a container should be run as a 'Host Process' container.+ All of a Pod's containers must have the same effective HostProcess value+ (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).+ In addition, if HostProcess is true then HostNetwork must also be set to true.+ type: boolean+ runAsUserName:+ description: |-+ The UserName in Windows to run the entrypoint of the container process.+ Defaults to the user specified in image metadata if unspecified.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ type: string+ type: object+ type: object+ serviceAccountName:+ description: |-+ ServiceAccountName is the name of the ServiceAccount to use for this component's pod.+ When CreateServiceAccount is true, the operator will create a ServiceAccount with this name.+ When CreateServiceAccount is false, the ServiceAccount must already exist in the target namespace.+ If not specified, defaults to "openrag-{role}" (e.g., "openrag-fe", "openrag-be", "openrag-lf").+ type: string+ serviceAnnotations:+ additionalProperties:+ type: string+ description: ServiceAnnotations are annotations to add to+ the Service resource.+ type: object+ serviceName:+ description: |-+ ServiceName is the name of the Service to use for this component.+ When CreateService is true, the operator will create a Service with this name.+ When CreateService is false, the Service must already exist in the target namespace.+ If not specified, defaults to "openrag-{role}" (e.g., "openrag-fe", "openrag-be", "openrag-lf").+ type: string+ serviceType:+ default: ClusterIP+ description: ServiceType specifies the type of Service to+ create (ClusterIP, LoadBalancer, NodePort).+ type: string+ storage:+ description: Storage configures a PVC for Valkey data persistence.+ properties:+ accessModes:+ description: AccessModes for the PVC. Defaults to ["ReadWriteOnce"].+ items:+ type: string+ type: array+ enabled:+ default: true+ type: boolean+ existingClaim:+ description: ExistingClaim reuses a pre-existing PVC instead+ of creating one.+ type: string+ size:+ anyOf:+ - type: integer+ - type: string+ default: 10Gi+ description: Size of the PVC. Defaults to 10Gi.+ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$+ x-kubernetes-int-or-string: true+ storageClassName:+ description: StorageClassName passed to the PVC. Defaults+ to the cluster default.+ type: string+ type: object+ tolerations:+ items:+ description: |-+ The pod this Toleration is attached to tolerates any taint that matches+ the triple <key,value,effect> using the matching operator <operator>.+ properties:+ effect:+ description: |-+ Effect indicates the taint effect to match. Empty means match all taint effects.+ When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.+ type: string+ key:+ description: |-+ Key is the taint key that the toleration applies to. Empty means match all taint keys.+ If the key is empty, operator must be Exists; this combination means to match all values and all keys.+ type: string+ operator:+ description: |-+ Operator represents a key's relationship to the value.+ Valid operators are Exists and Equal. Defaults to Equal.+ Exists is equivalent to wildcard for value, so that a pod can+ tolerate all taints of a particular category.+ type: string+ tolerationSeconds:+ description: |-+ TolerationSeconds represents the period of time the toleration (which must be+ of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,+ it is not set, which means tolerate the taint forever (do not evict). Zero and+ negative values will be treated as 0 (evict immediately) by the system.+ format: int64+ type: integer+ value:+ description: |-+ Value is the taint value the toleration matches to.+ If the operator is Exists, the value should be empty, otherwise just a regular string.+ type: string+ type: object+ type: array+ topologySpreadConstraints:+ description: TopologySpreadConstraints for high availability+ pod distribution.+ items:+ description: TopologySpreadConstraint specifies how to spread+ matching pods among the given topology.+ properties:+ labelSelector:+ description: |-+ LabelSelector is used to find matching pods.+ Pods that match this label selector are counted to determine the number of pods+ in their corresponding topology domain.+ properties:+ matchExpressions:+ description: matchExpressions is a list of label+ selector requirements. The requirements are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label key that the+ selector applies to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ matchLabelKeys:+ description: |-+ MatchLabelKeys is a set of pod label keys to select the pods over which+ spreading will be calculated. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are ANDed with labelSelector+ to select the group of existing pods over which spreading will be calculated+ for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector.+ MatchLabelKeys cannot be set when LabelSelector isn't set.+ Keys that don't exist in the incoming pod labels will+ be ignored. A null or empty list means only match against labelSelector.++ This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ maxSkew:+ description: |-+ MaxSkew describes the degree to which pods may be unevenly distributed.+ When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference+ between the number of matching pods in the target topology and the global minimum.+ The global minimum is the minimum number of matching pods in an eligible domain+ or zero if the number of eligible domains is less than MinDomains.+ For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same+ labelSelector spread as 2/2/1:+ In this case, the global minimum is 1.+ | zone1 | zone2 | zone3 |+ | P P | P P | P |+ - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2;+ scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2)+ violate MaxSkew(1).+ - if MaxSkew is 2, incoming pod can be scheduled onto any zone.+ When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence+ to topologies that satisfy it.+ It's a required field. Default value is 1 and 0 is not allowed.+ format: int32+ type: integer+ minDomains:+ description: |-+ MinDomains indicates a minimum number of eligible domains.+ When the number of eligible domains with matching topology keys is less than minDomains,+ Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed.+ And when the number of eligible domains with matching topology keys equals or greater than minDomains,+ this value has no effect on scheduling.+ As a result, when the number of eligible domains is less than minDomains,+ scheduler won't schedule more than maxSkew Pods to those domains.+ If value is nil, the constraint behaves as if MinDomains is equal to 1.+ Valid values are integers greater than 0.+ When value is not nil, WhenUnsatisfiable must be DoNotSchedule.++ For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same+ labelSelector spread as 2/2/2:+ | zone1 | zone2 | zone3 |+ | P P | P P | P P |+ The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0.+ In this situation, new pod with the same labelSelector cannot be scheduled,+ because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones,+ it will violate MaxSkew.+ format: int32+ type: integer+ nodeAffinityPolicy:+ description: |-+ NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector+ when calculating pod topology spread skew. Options are:+ - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations.+ - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.++ If this value is nil, the behavior is equivalent to the Honor policy.+ type: string+ nodeTaintsPolicy:+ description: |-+ NodeTaintsPolicy indicates how we will treat node taints when calculating+ pod topology spread skew. Options are:+ - Honor: nodes without taints, along with tainted nodes for which the incoming pod+ has a toleration, are included.+ - Ignore: node taints are ignored. All nodes are included.++ If this value is nil, the behavior is equivalent to the Ignore policy.+ type: string+ topologyKey:+ description: |-+ TopologyKey is the key of node labels. Nodes that have a label with this key+ and identical values are considered to be in the same topology.+ We consider each <key, value> as a "bucket", and try to put balanced number+ of pods into each bucket.+ We define a domain as a particular instance of a topology.+ Also, we define an eligible domain as a domain whose nodes meet the requirements of+ nodeAffinityPolicy and nodeTaintsPolicy.+ e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology.+ And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology.+ It's a required field.+ type: string+ whenUnsatisfiable:+ description: |-+ WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy+ the spread constraint.+ - DoNotSchedule (default) tells the scheduler not to schedule it.+ - ScheduleAnyway tells the scheduler to schedule the pod in any location,+ but giving higher precedence to topologies that would help reduce the+ skew.+ A constraint is considered "Unsatisfiable" for an incoming pod+ if and only if every possible node assignment for that pod would violate+ "MaxSkew" on some topology.+ For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same+ labelSelector spread as 3/1/1:+ | zone1 | zone2 | zone3 |+ | P P P | P | P |+ If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled+ to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies+ MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler+ won't make it *more* imbalanced.+ It's a required field.+ type: string+ required:+ - maxSkew+ - topologyKey+ - whenUnsatisfiable+ type: object+ type: array+ required:+ - image+ type: object+ worker:+ description: Worker configures the docling-worker deployment.+ properties:+ affinity:+ description: Affinity is a group of affinity scheduling rules.+ properties:+ nodeAffinity:+ description: Describes node affinity scheduling rules+ for the pod.+ properties:+ preferredDuringSchedulingIgnoredDuringExecution:+ description: |-+ The scheduler will prefer to schedule pods to nodes that satisfy+ the affinity expressions specified by this field, but it may choose+ a node that violates one or more of the expressions. The node that is+ most preferred is the one with the greatest sum of weights, i.e.+ for each node that meets all of the scheduling requirements (resource+ request, requiredDuringScheduling affinity expressions, etc.),+ compute a sum by iterating through the elements of this field and adding+ "weight" to the sum if the node matches the corresponding matchExpressions; the+ node(s) with the highest sum are the most preferred.+ items:+ description: |-+ An empty preferred scheduling term matches all objects with implicit weight 0+ (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).+ properties:+ preference:+ description: A node selector term, associated+ with the corresponding weight.+ properties:+ matchExpressions:+ description: A list of node selector requirements+ by node's labels.+ items:+ description: |-+ A node selector requirement is a selector that contains values, a key, and an operator+ that relates the key and values.+ properties:+ key:+ description: The label key that the+ selector applies to.+ type: string+ operator:+ description: |-+ Represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.+ type: string+ values:+ description: |-+ An array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. If the operator is Gt or Lt, the values+ array must have a single element, which will be interpreted as an integer.+ This array is replaced during a strategic merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchFields:+ description: A list of node selector requirements+ by node's fields.+ items:+ description: |-+ A node selector requirement is a selector that contains values, a key, and an operator+ that relates the key and values.+ properties:+ key:+ description: The label key that the+ selector applies to.+ type: string+ operator:+ description: |-+ Represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.+ type: string+ values:+ description: |-+ An array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. If the operator is Gt or Lt, the values+ array must have a single element, which will be interpreted as an integer.+ This array is replaced during a strategic merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ type: object+ x-kubernetes-map-type: atomic+ weight:+ description: Weight associated with matching+ the corresponding nodeSelectorTerm, in the+ range 1-100.+ format: int32+ type: integer+ required:+ - preference+ - weight+ type: object+ type: array+ x-kubernetes-list-type: atomic+ requiredDuringSchedulingIgnoredDuringExecution:+ description: |-+ If the affinity requirements specified by this field are not met at+ scheduling time, the pod will not be scheduled onto the node.+ If the affinity requirements specified by this field cease to be met+ at some point during pod execution (e.g. due to an update), the system+ may or may not try to eventually evict the pod from its node.+ properties:+ nodeSelectorTerms:+ description: Required. A list of node selector+ terms. The terms are ORed.+ items:+ description: |-+ A null or empty node selector term matches no objects. The requirements of+ them are ANDed.+ The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.+ properties:+ matchExpressions:+ description: A list of node selector requirements+ by node's labels.+ items:+ description: |-+ A node selector requirement is a selector that contains values, a key, and an operator+ that relates the key and values.+ properties:+ key:+ description: The label key that the+ selector applies to.+ type: string+ operator:+ description: |-+ Represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.+ type: string+ values:+ description: |-+ An array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. If the operator is Gt or Lt, the values+ array must have a single element, which will be interpreted as an integer.+ This array is replaced during a strategic merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchFields:+ description: A list of node selector requirements+ by node's fields.+ items:+ description: |-+ A node selector requirement is a selector that contains values, a key, and an operator+ that relates the key and values.+ properties:+ key:+ description: The label key that the+ selector applies to.+ type: string+ operator:+ description: |-+ Represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.+ type: string+ values:+ description: |-+ An array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. If the operator is Gt or Lt, the values+ array must have a single element, which will be interpreted as an integer.+ This array is replaced during a strategic merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ type: object+ x-kubernetes-map-type: atomic+ type: array+ x-kubernetes-list-type: atomic+ required:+ - nodeSelectorTerms+ type: object+ x-kubernetes-map-type: atomic+ type: object+ podAffinity:+ description: Describes pod affinity scheduling rules (e.g.+ co-locate this pod in the same node, zone, etc. as some+ other pod(s)).+ properties:+ preferredDuringSchedulingIgnoredDuringExecution:+ description: |-+ The scheduler will prefer to schedule pods to nodes that satisfy+ the affinity expressions specified by this field, but it may choose+ a node that violates one or more of the expressions. The node that is+ most preferred is the one with the greatest sum of weights, i.e.+ for each node that meets all of the scheduling requirements (resource+ request, requiredDuringScheduling affinity expressions, etc.),+ compute a sum by iterating through the elements of this field and adding+ "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the+ node(s) with the highest sum are the most preferred.+ items:+ description: The weights of all of the matched WeightedPodAffinityTerm+ fields are added per-node to find the most preferred+ node(s)+ properties:+ podAffinityTerm:+ description: Required. A pod affinity term,+ associated with the corresponding weight.+ properties:+ labelSelector:+ description: |-+ A label query over a set of resources, in this case pods.+ If it's null, this PodAffinityTerm matches with no Pods.+ properties:+ matchExpressions:+ description: matchExpressions is a list+ of label selector requirements. The+ requirements are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label+ key that the selector applies+ to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ matchLabelKeys:+ description: |-+ MatchLabelKeys is a set of pod label keys to select which pods will+ be taken into consideration. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`+ to select the group of existing pods which pods will be taken into consideration+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming+ pod labels will be ignored. The default value is empty.+ The same key is forbidden to exist in both matchLabelKeys and labelSelector.+ Also, matchLabelKeys cannot be set when labelSelector isn't set.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ mismatchLabelKeys:+ description: |-+ MismatchLabelKeys is a set of pod label keys to select which pods will+ be taken into consideration. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`+ to select the group of existing pods which pods will be taken into consideration+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming+ pod labels will be ignored. The default value is empty.+ The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.+ Also, mismatchLabelKeys cannot be set when labelSelector isn't set.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ namespaceSelector:+ description: |-+ A label query over the set of namespaces that the term applies to.+ The term is applied to the union of the namespaces selected by this field+ and the ones listed in the namespaces field.+ null selector and null or empty namespaces list means "this pod's namespace".+ An empty selector ({}) matches all namespaces.+ properties:+ matchExpressions:+ description: matchExpressions is a list+ of label selector requirements. The+ requirements are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label+ key that the selector applies+ to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ namespaces:+ description: |-+ namespaces specifies a static list of namespace names that the term applies to.+ The term is applied to the union of the namespaces listed in this field+ and the ones selected by namespaceSelector.+ null or empty namespaces list and null namespaceSelector means "this pod's namespace".+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ topologyKey:+ description: |-+ This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching+ the labelSelector in the specified namespaces, where co-located is defined as running on a node+ whose value of the label with key topologyKey matches that of any node on which any of the+ selected pods is running.+ Empty topologyKey is not allowed.+ type: string+ required:+ - topologyKey+ type: object+ weight:+ description: |-+ weight associated with matching the corresponding podAffinityTerm,+ in the range 1-100.+ format: int32+ type: integer+ required:+ - podAffinityTerm+ - weight+ type: object+ type: array+ x-kubernetes-list-type: atomic+ requiredDuringSchedulingIgnoredDuringExecution:+ description: |-+ If the affinity requirements specified by this field are not met at+ scheduling time, the pod will not be scheduled onto the node.+ If the affinity requirements specified by this field cease to be met+ at some point during pod execution (e.g. due to a pod label update), the+ system may or may not try to eventually evict the pod from its node.+ When there are multiple elements, the lists of nodes corresponding to each+ podAffinityTerm are intersected, i.e. all terms must be satisfied.+ items:+ description: |-+ Defines a set of pods (namely those matching the labelSelector+ relative to the given namespace(s)) that this pod should be+ co-located (affinity) or not co-located (anti-affinity) with,+ where co-located is defined as running on a node whose value of+ the label with key <topologyKey> matches that of any node on which+ a pod of the set of pods is running+ properties:+ labelSelector:+ description: |-+ A label query over a set of resources, in this case pods.+ If it's null, this PodAffinityTerm matches with no Pods.+ properties:+ matchExpressions:+ description: matchExpressions is a list+ of label selector requirements. The requirements+ are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label key+ that the selector applies to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ matchLabelKeys:+ description: |-+ MatchLabelKeys is a set of pod label keys to select which pods will+ be taken into consideration. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`+ to select the group of existing pods which pods will be taken into consideration+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming+ pod labels will be ignored. The default value is empty.+ The same key is forbidden to exist in both matchLabelKeys and labelSelector.+ Also, matchLabelKeys cannot be set when labelSelector isn't set.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ mismatchLabelKeys:+ description: |-+ MismatchLabelKeys is a set of pod label keys to select which pods will+ be taken into consideration. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`+ to select the group of existing pods which pods will be taken into consideration+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming+ pod labels will be ignored. The default value is empty.+ The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.+ Also, mismatchLabelKeys cannot be set when labelSelector isn't set.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ namespaceSelector:+ description: |-+ A label query over the set of namespaces that the term applies to.+ The term is applied to the union of the namespaces selected by this field+ and the ones listed in the namespaces field.+ null selector and null or empty namespaces list means "this pod's namespace".+ An empty selector ({}) matches all namespaces.+ properties:+ matchExpressions:+ description: matchExpressions is a list+ of label selector requirements. The requirements+ are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label key+ that the selector applies to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ namespaces:+ description: |-+ namespaces specifies a static list of namespace names that the term applies to.+ The term is applied to the union of the namespaces listed in this field+ and the ones selected by namespaceSelector.+ null or empty namespaces list and null namespaceSelector means "this pod's namespace".+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ topologyKey:+ description: |-+ This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching+ the labelSelector in the specified namespaces, where co-located is defined as running on a node+ whose value of the label with key topologyKey matches that of any node on which any of the+ selected pods is running.+ Empty topologyKey is not allowed.+ type: string+ required:+ - topologyKey+ type: object+ type: array+ x-kubernetes-list-type: atomic+ type: object+ podAntiAffinity:+ description: Describes pod anti-affinity scheduling rules+ (e.g. avoid putting this pod in the same node, zone,+ etc. as some other pod(s)).+ properties:+ preferredDuringSchedulingIgnoredDuringExecution:+ description: |-+ The scheduler will prefer to schedule pods to nodes that satisfy+ the anti-affinity expressions specified by this field, but it may choose+ a node that violates one or more of the expressions. The node that is+ most preferred is the one with the greatest sum of weights, i.e.+ for each node that meets all of the scheduling requirements (resource+ request, requiredDuringScheduling anti-affinity expressions, etc.),+ compute a sum by iterating through the elements of this field and adding+ "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the+ node(s) with the highest sum are the most preferred.+ items:+ description: The weights of all of the matched WeightedPodAffinityTerm+ fields are added per-node to find the most preferred+ node(s)+ properties:+ podAffinityTerm:+ description: Required. A pod affinity term,+ associated with the corresponding weight.+ properties:+ labelSelector:+ description: |-+ A label query over a set of resources, in this case pods.+ If it's null, this PodAffinityTerm matches with no Pods.+ properties:+ matchExpressions:+ description: matchExpressions is a list+ of label selector requirements. The+ requirements are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label+ key that the selector applies+ to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ matchLabelKeys:+ description: |-+ MatchLabelKeys is a set of pod label keys to select which pods will+ be taken into consideration. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`+ to select the group of existing pods which pods will be taken into consideration+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming+ pod labels will be ignored. The default value is empty.+ The same key is forbidden to exist in both matchLabelKeys and labelSelector.+ Also, matchLabelKeys cannot be set when labelSelector isn't set.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ mismatchLabelKeys:+ description: |-+ MismatchLabelKeys is a set of pod label keys to select which pods will+ be taken into consideration. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`+ to select the group of existing pods which pods will be taken into consideration+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming+ pod labels will be ignored. The default value is empty.+ The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.+ Also, mismatchLabelKeys cannot be set when labelSelector isn't set.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ namespaceSelector:+ description: |-+ A label query over the set of namespaces that the term applies to.+ The term is applied to the union of the namespaces selected by this field+ and the ones listed in the namespaces field.+ null selector and null or empty namespaces list means "this pod's namespace".+ An empty selector ({}) matches all namespaces.+ properties:+ matchExpressions:+ description: matchExpressions is a list+ of label selector requirements. The+ requirements are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label+ key that the selector applies+ to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ namespaces:+ description: |-+ namespaces specifies a static list of namespace names that the term applies to.+ The term is applied to the union of the namespaces listed in this field+ and the ones selected by namespaceSelector.+ null or empty namespaces list and null namespaceSelector means "this pod's namespace".+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ topologyKey:+ description: |-+ This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching+ the labelSelector in the specified namespaces, where co-located is defined as running on a node+ whose value of the label with key topologyKey matches that of any node on which any of the+ selected pods is running.+ Empty topologyKey is not allowed.+ type: string+ required:+ - topologyKey+ type: object+ weight:+ description: |-+ weight associated with matching the corresponding podAffinityTerm,+ in the range 1-100.+ format: int32+ type: integer+ required:+ - podAffinityTerm+ - weight+ type: object+ type: array+ x-kubernetes-list-type: atomic+ requiredDuringSchedulingIgnoredDuringExecution:+ description: |-+ If the anti-affinity requirements specified by this field are not met at+ scheduling time, the pod will not be scheduled onto the node.+ If the anti-affinity requirements specified by this field cease to be met+ at some point during pod execution (e.g. due to a pod label update), the+ system may or may not try to eventually evict the pod from its node.+ When there are multiple elements, the lists of nodes corresponding to each+ podAffinityTerm are intersected, i.e. all terms must be satisfied.+ items:+ description: |-+ Defines a set of pods (namely those matching the labelSelector+ relative to the given namespace(s)) that this pod should be+ co-located (affinity) or not co-located (anti-affinity) with,+ where co-located is defined as running on a node whose value of+ the label with key <topologyKey> matches that of any node on which+ a pod of the set of pods is running+ properties:+ labelSelector:+ description: |-+ A label query over a set of resources, in this case pods.+ If it's null, this PodAffinityTerm matches with no Pods.+ properties:+ matchExpressions:+ description: matchExpressions is a list+ of label selector requirements. The requirements+ are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label key+ that the selector applies to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ matchLabelKeys:+ description: |-+ MatchLabelKeys is a set of pod label keys to select which pods will+ be taken into consideration. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`+ to select the group of existing pods which pods will be taken into consideration+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming+ pod labels will be ignored. The default value is empty.+ The same key is forbidden to exist in both matchLabelKeys and labelSelector.+ Also, matchLabelKeys cannot be set when labelSelector isn't set.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ mismatchLabelKeys:+ description: |-+ MismatchLabelKeys is a set of pod label keys to select which pods will+ be taken into consideration. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`+ to select the group of existing pods which pods will be taken into consideration+ for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming+ pod labels will be ignored. The default value is empty.+ The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.+ Also, mismatchLabelKeys cannot be set when labelSelector isn't set.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ namespaceSelector:+ description: |-+ A label query over the set of namespaces that the term applies to.+ The term is applied to the union of the namespaces selected by this field+ and the ones listed in the namespaces field.+ null selector and null or empty namespaces list means "this pod's namespace".+ An empty selector ({}) matches all namespaces.+ properties:+ matchExpressions:+ description: matchExpressions is a list+ of label selector requirements. The requirements+ are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label key+ that the selector applies to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ namespaces:+ description: |-+ namespaces specifies a static list of namespace names that the term applies to.+ The term is applied to the union of the namespaces listed in this field+ and the ones selected by namespaceSelector.+ null or empty namespaces list and null namespaceSelector means "this pod's namespace".+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ topologyKey:+ description: |-+ This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching+ the labelSelector in the specified namespaces, where co-located is defined as running on a node+ whose value of the label with key topologyKey matches that of any node on which any of the+ selected pods is running.+ Empty topologyKey is not allowed.+ type: string+ required:+ - topologyKey+ type: object+ type: array+ x-kubernetes-list-type: atomic+ type: object+ type: object+ annotations:+ additionalProperties:+ type: string+ description: |-+ Annotations are custom annotations to add to the Deployment/StatefulSet object metadata.+ These annotations appear on the workload resource itself, not the pods.+ Useful for GitOps metadata, deployment tracking, and automation tools.+ maxProperties: 64+ type: object+ args:+ description: Args overrides the container's command arguments.+ items:+ type: string+ type: array+ command:+ description: Command overrides the container's entrypoint.+ items:+ type: string+ type: array+ concurrency:+ default: 4+ description: Concurrency sets the number of concurrent tasks+ per worker.+ format: int32+ minimum: 1+ type: integer+ config:+ description: Config contains docling-specific configuration+ options.+ properties:+ extraEnv:+ description: ExtraEnv allows setting additional environment+ variables for docling configuration.+ items:+ description: EnvVar represents an environment variable+ present in a Container.+ properties:+ name:+ description: Name of the environment variable. Must+ be a C_IDENTIFIER.+ type: string+ value:+ description: |-+ Variable references $(VAR_NAME) are expanded+ using the previously defined environment variables in the container and+ any service environment variables. If a variable cannot be resolved,+ the reference in the input string will be unchanged. Double $$ are reduced+ to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.+ "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".+ Escaped references will never be expanded, regardless of whether the variable+ exists or not.+ Defaults to "".+ type: string+ valueFrom:+ description: Source for the environment variable's+ value. Cannot be used if value is not empty.+ properties:+ configMapKeyRef:+ description: Selects a key of a ConfigMap.+ properties:+ key:+ description: The key to select.+ type: string+ name:+ default: ""+ description: |-+ Name of the referent.+ This field is effectively required, but due to backwards compatibility is+ allowed to be empty. Instances of this type with an empty value here are+ almost certainly wrong.+ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names+ type: string+ optional:+ description: Specify whether the ConfigMap+ or its key must be defined+ type: boolean+ required:+ - key+ type: object+ x-kubernetes-map-type: atomic+ fieldRef:+ description: |-+ Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,+ spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.+ properties:+ apiVersion:+ description: Version of the schema the FieldPath+ is written in terms of, defaults to "v1".+ type: string+ fieldPath:+ description: Path of the field to select+ in the specified API version.+ type: string+ required:+ - fieldPath+ type: object+ x-kubernetes-map-type: atomic+ resourceFieldRef:+ description: |-+ Selects a resource of the container: only resources limits and requests+ (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.+ properties:+ containerName:+ description: 'Container name: required for+ volumes, optional for env vars'+ type: string+ divisor:+ anyOf:+ - type: integer+ - type: string+ description: Specifies the output format+ of the exposed resources, defaults to+ "1"+ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$+ x-kubernetes-int-or-string: true+ resource:+ description: 'Required: resource to select'+ type: string+ required:+ - resource+ type: object+ x-kubernetes-map-type: atomic+ secretKeyRef:+ description: Selects a key of a secret in the+ pod's namespace+ properties:+ key:+ description: The key of the secret to select+ from. Must be a valid secret key.+ type: string+ name:+ default: ""+ description: |-+ Name of the referent.+ This field is effectively required, but due to backwards compatibility is+ allowed to be empty. Instances of this type with an empty value here are+ almost certainly wrong.+ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names+ type: string+ optional:+ description: Specify whether the Secret+ or its key must be defined+ type: boolean+ required:+ - key+ type: object+ x-kubernetes-map-type: atomic+ type: object+ required:+ - name+ type: object+ type: array+ models:+ description: Models configures which AI models to use+ for different tasks.+ properties:+ layoutModel:+ description: LayoutModel specifies the model for document+ layout analysis.+ type: string+ modelCachePath:+ default: /models+ description: ModelCachePath specifies where to cache+ downloaded models.+ type: string+ ocrModel:+ description: OCRModel specifies the model for OCR.+ type: string+ tableModel:+ description: TableModel specifies the model for table+ structure recognition.+ type: string+ type: object+ ocr:+ description: OCR configures optical character recognition+ settings.+ properties:+ enabled:+ default: true+ description: Enabled controls whether OCR is enabled.+ type: boolean+ engine:+ default: easyocr+ description: Engine specifies the OCR engine to use+ (e.g., "easyocr", "tesseract").+ type: string+ forceFullPageOCR:+ default: false+ description: ForceFullPageOCR forces OCR on all pages+ even if text is extractable.+ type: boolean+ languages:+ description: Languages is a list of language codes+ for OCR (e.g., ["en", "de", "fr"]).+ items:+ type: string+ type: array+ type: object+ performance:+ description: Performance configures performance-related+ settings.+ properties:+ batchSize:+ default: 10+ description: BatchSize sets the number of pages to+ process in a single batch.+ format: int32+ minimum: 1+ type: integer+ enableGPU:+ default: false+ description: EnableGPU enables GPU acceleration if+ available.+ type: boolean+ maxWorkers:+ default: 4+ description: MaxWorkers sets the maximum number of+ worker threads per process.+ format: int32+ minimum: 1+ type: integer+ timeoutSeconds:+ default: 300+ description: TimeoutSeconds sets the processing timeout+ per document in seconds.+ format: int32+ minimum: 1+ type: integer+ type: object+ tableStructure:+ description: TableStructure configures table structure+ recognition settings.+ properties:+ enabled:+ default: true+ description: Enabled controls whether table structure+ recognition is enabled.+ type: boolean+ minConfidencePercent:+ default: 70+ description: MinConfidencePercent sets the minimum+ confidence threshold for table detection (0-100).+ format: int32+ maximum: 100+ minimum: 0+ type: integer+ mode:+ default: accurate+ description: Mode specifies the table extraction mode+ (e.g., "accurate", "fast").+ type: string+ type: object+ type: object+ createService:+ default: true+ description: |-+ CreateService indicates whether the operator should create the Service.+ If true (default), the operator creates a Service with the name specified in ServiceName.+ If false, the operator assumes the Service already exists and will only reference it.+ type: boolean+ createServiceAccount:+ default: true+ description: |-+ CreateServiceAccount indicates whether the operator should create the ServiceAccount.+ If true (default), the operator creates a ServiceAccount with the name specified in ServiceAccountName.+ If false, the operator assumes the ServiceAccount already exists and will only reference it.+ type: boolean+ env:+ description: Additional environment variables injected into+ the container.+ items:+ description: EnvVar represents an environment variable present+ in a Container.+ properties:+ name:+ description: Name of the environment variable. Must+ be a C_IDENTIFIER.+ type: string+ value:+ description: |-+ Variable references $(VAR_NAME) are expanded+ using the previously defined environment variables in the container and+ any service environment variables. If a variable cannot be resolved,+ the reference in the input string will be unchanged. Double $$ are reduced+ to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.+ "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".+ Escaped references will never be expanded, regardless of whether the variable+ exists or not.+ Defaults to "".+ type: string+ valueFrom:+ description: Source for the environment variable's value.+ Cannot be used if value is not empty.+ properties:+ configMapKeyRef:+ description: Selects a key of a ConfigMap.+ properties:+ key:+ description: The key to select.+ type: string+ name:+ default: ""+ description: |-+ Name of the referent.+ This field is effectively required, but due to backwards compatibility is+ allowed to be empty. Instances of this type with an empty value here are+ almost certainly wrong.+ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names+ type: string+ optional:+ description: Specify whether the ConfigMap or+ its key must be defined+ type: boolean+ required:+ - key+ type: object+ x-kubernetes-map-type: atomic+ fieldRef:+ description: |-+ Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,+ spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.+ properties:+ apiVersion:+ description: Version of the schema the FieldPath+ is written in terms of, defaults to "v1".+ type: string+ fieldPath:+ description: Path of the field to select in+ the specified API version.+ type: string+ required:+ - fieldPath+ type: object+ x-kubernetes-map-type: atomic+ resourceFieldRef:+ description: |-+ Selects a resource of the container: only resources limits and requests+ (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.+ properties:+ containerName:+ description: 'Container name: required for volumes,+ optional for env vars'+ type: string+ divisor:+ anyOf:+ - type: integer+ - type: string+ description: Specifies the output format of+ the exposed resources, defaults to "1"+ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$+ x-kubernetes-int-or-string: true+ resource:+ description: 'Required: resource to select'+ type: string+ required:+ - resource+ type: object+ x-kubernetes-map-type: atomic+ secretKeyRef:+ description: Selects a key of a secret in the pod's+ namespace+ properties:+ key:+ description: The key of the secret to select+ from. Must be a valid secret key.+ type: string+ name:+ default: ""+ description: |-+ Name of the referent.+ This field is effectively required, but due to backwards compatibility is+ allowed to be empty. Instances of this type with an empty value here are+ almost certainly wrong.+ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names+ type: string+ optional:+ description: Specify whether the Secret or its+ key must be defined+ type: boolean+ required:+ - key+ type: object+ x-kubernetes-map-type: atomic+ type: object+ required:+ - name+ type: object+ type: array+ hpa:+ description: HPA configures autoscaling for the docling-worker+ deployment.+ properties:+ behavior:+ description: Behavior configures the scaling behavior+ (scale up/down policies, stabilization windows).+ properties:+ scaleDown:+ description: |-+ scaleDown is scaling policy for scaling Down.+ If not set, the default value is to allow to scale down to minReplicas pods, with a+ 300 second stabilization window (i.e., the highest recommendation for+ the last 300sec is used).+ properties:+ policies:+ description: |-+ policies is a list of potential scaling polices which can be used during scaling.+ If not set, use the default values:+ - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window.+ - For scale down: allow all pods to be removed in a 15s window.+ items:+ description: HPAScalingPolicy is a single policy+ which must hold true for a specified past+ interval.+ properties:+ periodSeconds:+ description: |-+ periodSeconds specifies the window of time for which the policy should hold true.+ PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).+ format: int32+ type: integer+ type:+ description: type is used to specify the+ scaling policy.+ type: string+ value:+ description: |-+ value contains the amount of change which is permitted by the policy.+ It must be greater than zero+ format: int32+ type: integer+ required:+ - periodSeconds+ - type+ - value+ type: object+ type: array+ x-kubernetes-list-type: atomic+ selectPolicy:+ description: |-+ selectPolicy is used to specify which policy should be used.+ If not set, the default value Max is used.+ type: string+ stabilizationWindowSeconds:+ description: |-+ stabilizationWindowSeconds is the number of seconds for which past recommendations should be+ considered while scaling up or scaling down.+ StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour).+ If not set, use the default values:+ - For scale up: 0 (i.e. no stabilization is done).+ - For scale down: 300 (i.e. the stabilization window is 300 seconds long).+ format: int32+ type: integer+ tolerance:+ anyOf:+ - type: integer+ - type: string+ description: |-+ tolerance is the tolerance on the ratio between the current and desired+ metric value under which no updates are made to the desired number of+ replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not+ set, the default cluster-wide tolerance is applied (by default 10%).++ For example, if autoscaling is configured with a memory consumption target of 100Mi,+ and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be+ triggered when the actual consumption falls below 95Mi or exceeds 101Mi.++ This is an alpha field and requires enabling the HPAConfigurableTolerance+ feature gate.+ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$+ x-kubernetes-int-or-string: true+ type: object+ scaleUp:+ description: |-+ scaleUp is scaling policy for scaling Up.+ If not set, the default value is the higher of:+ * increase no more than 4 pods per 60 seconds+ * double the number of pods per 60 seconds+ No stabilization is used.+ properties:+ policies:+ description: |-+ policies is a list of potential scaling polices which can be used during scaling.+ If not set, use the default values:+ - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window.+ - For scale down: allow all pods to be removed in a 15s window.+ items:+ description: HPAScalingPolicy is a single policy+ which must hold true for a specified past+ interval.+ properties:+ periodSeconds:+ description: |-+ periodSeconds specifies the window of time for which the policy should hold true.+ PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).+ format: int32+ type: integer+ type:+ description: type is used to specify the+ scaling policy.+ type: string+ value:+ description: |-+ value contains the amount of change which is permitted by the policy.+ It must be greater than zero+ format: int32+ type: integer+ required:+ - periodSeconds+ - type+ - value+ type: object+ type: array+ x-kubernetes-list-type: atomic+ selectPolicy:+ description: |-+ selectPolicy is used to specify which policy should be used.+ If not set, the default value Max is used.+ type: string+ stabilizationWindowSeconds:+ description: |-+ stabilizationWindowSeconds is the number of seconds for which past recommendations should be+ considered while scaling up or scaling down.+ StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour).+ If not set, use the default values:+ - For scale up: 0 (i.e. no stabilization is done).+ - For scale down: 300 (i.e. the stabilization window is 300 seconds long).+ format: int32+ type: integer+ tolerance:+ anyOf:+ - type: integer+ - type: string+ description: |-+ tolerance is the tolerance on the ratio between the current and desired+ metric value under which no updates are made to the desired number of+ replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not+ set, the default cluster-wide tolerance is applied (by default 10%).++ For example, if autoscaling is configured with a memory consumption target of 100Mi,+ and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be+ triggered when the actual consumption falls below 95Mi or exceeds 101Mi.++ This is an alpha field and requires enabling the HPAConfigurableTolerance+ feature gate.+ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$+ x-kubernetes-int-or-string: true+ type: object+ type: object+ enabled:+ default: false+ description: Enabled controls whether HPA is created.+ type: boolean+ maxReplicas:+ description: MaxReplicas is the upper limit for the number+ of replicas.+ format: int32+ minimum: 1+ type: integer+ minReplicas:+ default: 1+ description: MinReplicas is the lower limit for the number+ of replicas.+ format: int32+ minimum: 1+ type: integer+ targetCPUUtilizationPercentage:+ description: TargetCPUUtilizationPercentage is the target+ average CPU utilization.+ format: int32+ maximum: 100+ minimum: 1+ type: integer+ targetMemoryUtilizationPercentage:+ description: TargetMemoryUtilizationPercentage is the+ target average memory utilization.+ format: int32+ maximum: 100+ minimum: 1+ type: integer+ required:+ - maxReplicas+ type: object+ image:+ description: Image is the container image (repository:tag).+ type: string+ imagePullPolicy:+ default: IfNotPresent+ description: PullPolicy describes a policy for if/when to+ pull a container image+ type: string+ imagePullSecrets:+ description: |-+ ImagePullSecrets for private registries, specific to this component.+ These are merged with the global imagePullSecrets from the OpenRAG spec.+ items:+ description: |-+ LocalObjectReference contains enough information to let you locate the+ referenced object inside the same namespace.+ properties:+ name:+ default: ""+ description: |-+ Name of the referent.+ This field is effectively required, but due to backwards compatibility is+ allowed to be empty. Instances of this type with an empty value here are+ almost certainly wrong.+ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names+ type: string+ type: object+ x-kubernetes-map-type: atomic+ type: array+ x-kubernetes-validations:+ - message: imagePullSecret name cannot be empty+ rule: self.all(x, x.name != '')+ labels:+ additionalProperties:+ type: string+ description: |-+ Labels are custom labels to add to the Deployment/StatefulSet object metadata.+ These labels appear on the workload resource itself, not the pods.+ Useful for querying and grouping Deployment/StatefulSet objects.+ maxProperties: 64+ type: object+ livenessProbe:+ description: LivenessProbe configures the liveness probe for+ the container.+ properties:+ exec:+ description: Exec specifies a command to execute in the+ container.+ properties:+ command:+ description: |-+ Command is the command line to execute inside the container, the working directory for the+ command is root ('/') in the container's filesystem. The command is simply exec'd, it is+ not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use+ a shell, you need to explicitly call out to that shell.+ Exit status of 0 is treated as live/healthy and non-zero is unhealthy.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ type: object+ failureThreshold:+ description: |-+ Minimum consecutive failures for the probe to be considered failed after having succeeded.+ Defaults to 3. Minimum value is 1.+ format: int32+ type: integer+ grpc:+ description: GRPC specifies a GRPC HealthCheckRequest.+ properties:+ port:+ description: Port number of the gRPC service. Number+ must be in the range 1 to 65535.+ format: int32+ type: integer+ service:+ default: ""+ description: |-+ Service is the name of the service to place in the gRPC HealthCheckRequest+ (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).++ If this is not specified, the default behavior is defined by gRPC.+ type: string+ required:+ - port+ type: object+ httpGet:+ description: HTTPGet specifies an HTTP GET request to+ perform.+ properties:+ host:+ description: |-+ Host name to connect to, defaults to the pod IP. You probably want to set+ "Host" in httpHeaders instead.+ type: string+ httpHeaders:+ description: Custom headers to set in the request.+ HTTP allows repeated headers.+ items:+ description: HTTPHeader describes a custom header+ to be used in HTTP probes+ properties:+ name:+ description: |-+ The header field name.+ This will be canonicalized upon output, so case-variant names will be understood as the same header.+ type: string+ value:+ description: The header field value+ type: string+ required:+ - name+ - value+ type: object+ type: array+ x-kubernetes-list-type: atomic+ path:+ description: Path to access on the HTTP server.+ type: string+ port:+ anyOf:+ - type: integer+ - type: string+ description: |-+ Name or number of the port to access on the container.+ Number must be in the range 1 to 65535.+ Name must be an IANA_SVC_NAME.+ x-kubernetes-int-or-string: true+ scheme:+ description: |-+ Scheme to use for connecting to the host.+ Defaults to HTTP.+ type: string+ required:+ - port+ type: object+ initialDelaySeconds:+ description: |-+ Number of seconds after the container has started before liveness probes are initiated.+ More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes+ format: int32+ type: integer+ periodSeconds:+ description: |-+ How often (in seconds) to perform the probe.+ Default to 10 seconds. Minimum value is 1.+ format: int32+ type: integer+ successThreshold:+ description: |-+ Minimum consecutive successes for the probe to be considered successful after having failed.+ Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.+ format: int32+ type: integer+ tcpSocket:+ description: TCPSocket specifies a connection to a TCP+ port.+ properties:+ host:+ description: 'Optional: Host name to connect to, defaults+ to the pod IP.'+ type: string+ port:+ anyOf:+ - type: integer+ - type: string+ description: |-+ Number or name of the port to access on the container.+ Number must be in the range 1 to 65535.+ Name must be an IANA_SVC_NAME.+ x-kubernetes-int-or-string: true+ required:+ - port+ type: object+ terminationGracePeriodSeconds:+ description: |-+ Optional duration in seconds the pod needs to terminate gracefully upon probe failure.+ The grace period is the duration in seconds after the processes running in the pod are sent+ a termination signal and the time when the processes are forcibly halted with a kill signal.+ Set this value longer than the expected cleanup time for your process.+ If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this+ value overrides the value provided by the pod spec.+ Value must be non-negative integer. The value zero indicates stop immediately via+ the kill signal (no opportunity to shut down).+ This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.+ Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.+ format: int64+ type: integer+ timeoutSeconds:+ description: |-+ Number of seconds after which the probe times out.+ Defaults to 1 second. Minimum value is 1.+ More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes+ format: int32+ type: integer+ type: object+ nodeSelector:+ additionalProperties:+ type: string+ type: object+ podAnnotations:+ additionalProperties:+ type: string+ description: |-+ PodAnnotations are custom annotations to add to the pod template.+ These annotations appear on the actual pods created by the Deployment/StatefulSet.+ Useful for sidecar injection (Istio, Vault), monitoring (Prometheus), and backup (Velero).+ maxProperties: 64+ type: object+ podLabels:+ additionalProperties:+ type: string+ description: |-+ PodLabels are custom labels to add to the pod template.+ These labels appear on the actual pods created by the Deployment/StatefulSet.+ Useful for pod selectors, monitoring queries, network policies, and service mesh.+ Merged with operator-managed labels (app.kubernetes.io/*).+ Cannot override operator-managed labels.+ maxProperties: 64+ type: object+ podSecurityContext:+ description: PodSecurityContext holds pod-level security attributes.+ properties:+ appArmorProfile:+ description: |-+ appArmorProfile is the AppArmor options to use by the containers in this pod.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ localhostProfile:+ description: |-+ localhostProfile indicates a profile loaded on the node that should be used.+ The profile must be preconfigured on the node to work.+ Must match the loaded name of the profile.+ Must be set if and only if type is "Localhost".+ type: string+ type:+ description: |-+ type indicates which kind of AppArmor profile will be applied.+ Valid options are:+ Localhost - a profile pre-loaded on the node.+ RuntimeDefault - the container runtime's default profile.+ Unconfined - no AppArmor enforcement.+ type: string+ required:+ - type+ type: object+ fsGroup:+ description: |-+ A special supplemental group that applies to all containers in a pod.+ Some volume types allow the Kubelet to change the ownership of that volume+ to be owned by the pod:++ 1. The owning GID will be the FSGroup+ 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)+ 3. The permission bits are OR'd with rw-rw----++ If unset, the Kubelet will not modify the ownership and permissions of any volume.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ fsGroupChangePolicy:+ description: |-+ fsGroupChangePolicy defines behavior of changing ownership and permission of the volume+ before being exposed inside Pod. This field will only apply to+ volume types which support fsGroup based ownership(and permissions).+ It will have no effect on ephemeral volume types such as: secret, configmaps+ and emptydir.+ Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.+ Note that this field cannot be set when spec.os.name is windows.+ type: string+ runAsGroup:+ description: |-+ The GID to run the entrypoint of the container process.+ Uses runtime default if unset.+ May also be set in SecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence+ for that container.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ runAsNonRoot:+ description: |-+ Indicates that the container must run as a non-root user.+ If true, the Kubelet will validate the image at runtime to ensure that it+ does not run as UID 0 (root) and fail to start the container if it does.+ If unset or false, no such validation will be performed.+ May also be set in SecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ type: boolean+ runAsUser:+ description: |-+ The UID to run the entrypoint of the container process.+ Defaults to user specified in image metadata if unspecified.+ May also be set in SecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence+ for that container.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ seLinuxChangePolicy:+ description: |-+ seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod.+ It has no effect on nodes that do not support SELinux or to volumes does not support SELinux.+ Valid values are "MountOption" and "Recursive".++ "Recursive" means relabeling of all files on all Pod volumes by the container runtime.+ This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node.++ "MountOption" mounts all eligible Pod volumes with `-o context` mount option.+ This requires all Pods that share the same volume to use the same SELinux label.+ It is not possible to share the same volume among privileged and unprivileged Pods.+ Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes+ whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their+ CSIDriver instance. Other volumes are always re-labelled recursively.+ "MountOption" value is allowed only when SELinuxMount feature gate is enabled.++ If not specified and SELinuxMount feature gate is enabled, "MountOption" is used.+ If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes+ and "Recursive" for all other volumes.++ This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.++ All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state.+ Note that this field cannot be set when spec.os.name is windows.+ type: string+ seLinuxOptions:+ description: |-+ The SELinux context to be applied to all containers.+ If unspecified, the container runtime will allocate a random SELinux context for each+ container. May also be set in SecurityContext. If set in+ both SecurityContext and PodSecurityContext, the value specified in SecurityContext+ takes precedence for that container.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ level:+ description: Level is SELinux level label that applies+ to the container.+ type: string+ role:+ description: Role is a SELinux role label that applies+ to the container.+ type: string+ type:+ description: Type is a SELinux type label that applies+ to the container.+ type: string+ user:+ description: User is a SELinux user label that applies+ to the container.+ type: string+ type: object+ seccompProfile:+ description: |-+ The seccomp options to use by the containers in this pod.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ localhostProfile:+ description: |-+ localhostProfile indicates a profile defined in a file on the node should be used.+ The profile must be preconfigured on the node to work.+ Must be a descending path, relative to the kubelet's configured seccomp profile location.+ Must be set if type is "Localhost". Must NOT be set for any other type.+ type: string+ type:+ description: |-+ type indicates which kind of seccomp profile will be applied.+ Valid options are:++ Localhost - a profile defined in a file on the node should be used.+ RuntimeDefault - the container runtime default profile should be used.+ Unconfined - no profile should be applied.+ type: string+ required:+ - type+ type: object+ supplementalGroups:+ description: |-+ A list of groups applied to the first process run in each container, in+ addition to the container's primary GID and fsGroup (if specified). If+ the SupplementalGroupsPolicy feature is enabled, the+ supplementalGroupsPolicy field determines whether these are in addition+ to or instead of any group memberships defined in the container image.+ If unspecified, no additional groups are added, though group memberships+ defined in the container image may still be used, depending on the+ supplementalGroupsPolicy field.+ Note that this field cannot be set when spec.os.name is windows.+ items:+ format: int64+ type: integer+ type: array+ x-kubernetes-list-type: atomic+ supplementalGroupsPolicy:+ description: |-+ Defines how supplemental groups of the first container processes are calculated.+ Valid values are "Merge" and "Strict". If not specified, "Merge" is used.+ (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled+ and the container runtime must implement support for this feature.+ Note that this field cannot be set when spec.os.name is windows.+ type: string+ sysctls:+ description: |-+ Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported+ sysctls (by the container runtime) might fail to launch.+ Note that this field cannot be set when spec.os.name is windows.+ items:+ description: Sysctl defines a kernel parameter to be+ set+ properties:+ name:+ description: Name of a property to set+ type: string+ value:+ description: Value of a property to set+ type: string+ required:+ - name+ - value+ type: object+ type: array+ x-kubernetes-list-type: atomic+ windowsOptions:+ description: |-+ The Windows specific settings applied to all containers.+ If unspecified, the options within a container's SecurityContext will be used.+ If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is linux.+ properties:+ gmsaCredentialSpec:+ description: |-+ GMSACredentialSpec is where the GMSA admission webhook+ (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the+ GMSA credential spec named by the GMSACredentialSpecName field.+ type: string+ gmsaCredentialSpecName:+ description: GMSACredentialSpecName is the name of+ the GMSA credential spec to use.+ type: string+ hostProcess:+ description: |-+ HostProcess determines if a container should be run as a 'Host Process' container.+ All of a Pod's containers must have the same effective HostProcess value+ (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).+ In addition, if HostProcess is true then HostNetwork must also be set to true.+ type: boolean+ runAsUserName:+ description: |-+ The UserName in Windows to run the entrypoint of the container process.+ Defaults to the user specified in image metadata if unspecified.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ type: string+ type: object+ type: object+ queueUrl:+ description: |-+ QueueURL for worker communication (e.g., Redis, RabbitMQ).+ Ignored when Valkey is enabled in DoclingComponentsSpec.+ type: string+ queueUrlSecret:+ description: |-+ QueueURLSecret references a Secret key for the queue connection string.+ Ignored when Valkey is enabled in DoclingComponentsSpec.+ properties:+ key:+ description: The key of the secret to select from. Must+ be a valid secret key.+ type: string+ name:+ default: ""+ description: |-+ Name of the referent.+ This field is effectively required, but due to backwards compatibility is+ allowed to be empty. Instances of this type with an empty value here are+ almost certainly wrong.+ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names+ type: string+ optional:+ description: Specify whether the Secret or its key must+ be defined+ type: boolean+ required:+ - key+ type: object+ x-kubernetes-map-type: atomic+ readinessProbe:+ description: ReadinessProbe configures the readiness probe+ for the container.+ properties:+ exec:+ description: Exec specifies a command to execute in the+ container.+ properties:+ command:+ description: |-+ Command is the command line to execute inside the container, the working directory for the+ command is root ('/') in the container's filesystem. The command is simply exec'd, it is+ not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use+ a shell, you need to explicitly call out to that shell.+ Exit status of 0 is treated as live/healthy and non-zero is unhealthy.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ type: object+ failureThreshold:+ description: |-+ Minimum consecutive failures for the probe to be considered failed after having succeeded.+ Defaults to 3. Minimum value is 1.+ format: int32+ type: integer+ grpc:+ description: GRPC specifies a GRPC HealthCheckRequest.+ properties:+ port:+ description: Port number of the gRPC service. Number+ must be in the range 1 to 65535.+ format: int32+ type: integer+ service:+ default: ""+ description: |-+ Service is the name of the service to place in the gRPC HealthCheckRequest+ (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).++ If this is not specified, the default behavior is defined by gRPC.+ type: string+ required:+ - port+ type: object+ httpGet:+ description: HTTPGet specifies an HTTP GET request to+ perform.+ properties:+ host:+ description: |-+ Host name to connect to, defaults to the pod IP. You probably want to set+ "Host" in httpHeaders instead.+ type: string+ httpHeaders:+ description: Custom headers to set in the request.+ HTTP allows repeated headers.+ items:+ description: HTTPHeader describes a custom header+ to be used in HTTP probes+ properties:+ name:+ description: |-+ The header field name.+ This will be canonicalized upon output, so case-variant names will be understood as the same header.+ type: string+ value:+ description: The header field value+ type: string+ required:+ - name+ - value+ type: object+ type: array+ x-kubernetes-list-type: atomic+ path:+ description: Path to access on the HTTP server.+ type: string+ port:+ anyOf:+ - type: integer+ - type: string+ description: |-+ Name or number of the port to access on the container.+ Number must be in the range 1 to 65535.+ Name must be an IANA_SVC_NAME.+ x-kubernetes-int-or-string: true+ scheme:+ description: |-+ Scheme to use for connecting to the host.+ Defaults to HTTP.+ type: string+ required:+ - port+ type: object+ initialDelaySeconds:+ description: |-+ Number of seconds after the container has started before liveness probes are initiated.+ More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes+ format: int32+ type: integer+ periodSeconds:+ description: |-+ How often (in seconds) to perform the probe.+ Default to 10 seconds. Minimum value is 1.+ format: int32+ type: integer+ successThreshold:+ description: |-+ Minimum consecutive successes for the probe to be considered successful after having failed.+ Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.+ format: int32+ type: integer+ tcpSocket:+ description: TCPSocket specifies a connection to a TCP+ port.+ properties:+ host:+ description: 'Optional: Host name to connect to, defaults+ to the pod IP.'+ type: string+ port:+ anyOf:+ - type: integer+ - type: string+ description: |-+ Number or name of the port to access on the container.+ Number must be in the range 1 to 65535.+ Name must be an IANA_SVC_NAME.+ x-kubernetes-int-or-string: true+ required:+ - port+ type: object+ terminationGracePeriodSeconds:+ description: |-+ Optional duration in seconds the pod needs to terminate gracefully upon probe failure.+ The grace period is the duration in seconds after the processes running in the pod are sent+ a termination signal and the time when the processes are forcibly halted with a kill signal.+ Set this value longer than the expected cleanup time for your process.+ If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this+ value overrides the value provided by the pod spec.+ Value must be non-negative integer. The value zero indicates stop immediately via+ the kill signal (no opportunity to shut down).+ This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.+ Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.+ format: int64+ type: integer+ timeoutSeconds:+ description: |-+ Number of seconds after which the probe times out.+ Defaults to 1 second. Minimum value is 1.+ More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes+ format: int32+ type: integer+ type: object+ replicas:+ default: 1+ format: int32+ minimum: 0+ type: integer+ resources:+ description: ResourceRequirements describes the compute resource+ requirements.+ properties:+ claims:+ description: |-+ Claims lists the names of resources, defined in spec.resourceClaims,+ that are used by this container.++ This is an alpha field and requires enabling the+ DynamicResourceAllocation feature gate.++ This field is immutable. It can only be set for containers.+ items:+ description: ResourceClaim references one entry in PodSpec.ResourceClaims.+ properties:+ name:+ description: |-+ Name must match the name of one entry in pod.spec.resourceClaims of+ the Pod where this field is used. It makes that resource available+ inside a container.+ type: string+ request:+ description: |-+ Request is the name chosen for a request in the referenced claim.+ If empty, everything from the claim is made available, otherwise+ only the result of this request.+ type: string+ required:+ - name+ type: object+ type: array+ x-kubernetes-list-map-keys:+ - name+ x-kubernetes-list-type: map+ limits:+ additionalProperties:+ anyOf:+ - type: integer+ - type: string+ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$+ x-kubernetes-int-or-string: true+ description: |-+ Limits describes the maximum amount of compute resources allowed.+ More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/+ type: object+ requests:+ additionalProperties:+ anyOf:+ - type: integer+ - type: string+ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$+ x-kubernetes-int-or-string: true+ description: |-+ Requests describes the minimum amount of compute resources required.+ If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,+ otherwise to an implementation-defined value. Requests cannot exceed Limits.+ More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/+ type: object+ type: object+ securityContext:+ description: SecurityContext holds container-level security+ attributes.+ properties:+ allowPrivilegeEscalation:+ description: |-+ AllowPrivilegeEscalation controls whether a process can gain more+ privileges than its parent process. This bool directly controls if+ the no_new_privs flag will be set on the container process.+ AllowPrivilegeEscalation is true always when the container is:+ 1) run as Privileged+ 2) has CAP_SYS_ADMIN+ Note that this field cannot be set when spec.os.name is windows.+ type: boolean+ appArmorProfile:+ description: |-+ appArmorProfile is the AppArmor options to use by this container. If set, this profile+ overrides the pod's appArmorProfile.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ localhostProfile:+ description: |-+ localhostProfile indicates a profile loaded on the node that should be used.+ The profile must be preconfigured on the node to work.+ Must match the loaded name of the profile.+ Must be set if and only if type is "Localhost".+ type: string+ type:+ description: |-+ type indicates which kind of AppArmor profile will be applied.+ Valid options are:+ Localhost - a profile pre-loaded on the node.+ RuntimeDefault - the container runtime's default profile.+ Unconfined - no AppArmor enforcement.+ type: string+ required:+ - type+ type: object+ capabilities:+ description: |-+ The capabilities to add/drop when running containers.+ Defaults to the default set of capabilities granted by the container runtime.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ add:+ description: Added capabilities+ items:+ description: Capability represent POSIX capabilities+ type+ type: string+ type: array+ x-kubernetes-list-type: atomic+ drop:+ description: Removed capabilities+ items:+ description: Capability represent POSIX capabilities+ type+ type: string+ type: array+ x-kubernetes-list-type: atomic+ type: object+ privileged:+ description: |-+ Run container in privileged mode.+ Processes in privileged containers are essentially equivalent to root on the host.+ Defaults to false.+ Note that this field cannot be set when spec.os.name is windows.+ type: boolean+ procMount:+ description: |-+ procMount denotes the type of proc mount to use for the containers.+ The default value is Default which uses the container runtime defaults for+ readonly paths and masked paths.+ This requires the ProcMountType feature flag to be enabled.+ Note that this field cannot be set when spec.os.name is windows.+ type: string+ readOnlyRootFilesystem:+ description: |-+ Whether this container has a read-only root filesystem.+ Default is false.+ Note that this field cannot be set when spec.os.name is windows.+ type: boolean+ runAsGroup:+ description: |-+ The GID to run the entrypoint of the container process.+ Uses runtime default if unset.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ runAsNonRoot:+ description: |-+ Indicates that the container must run as a non-root user.+ If true, the Kubelet will validate the image at runtime to ensure that it+ does not run as UID 0 (root) and fail to start the container if it does.+ If unset or false, no such validation will be performed.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ type: boolean+ runAsUser:+ description: |-+ The UID to run the entrypoint of the container process.+ Defaults to user specified in image metadata if unspecified.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ seLinuxOptions:+ description: |-+ The SELinux context to be applied to the container.+ If unspecified, the container runtime will allocate a random SELinux context for each+ container. May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ level:+ description: Level is SELinux level label that applies+ to the container.+ type: string+ role:+ description: Role is a SELinux role label that applies+ to the container.+ type: string+ type:+ description: Type is a SELinux type label that applies+ to the container.+ type: string+ user:+ description: User is a SELinux user label that applies+ to the container.+ type: string+ type: object+ seccompProfile:+ description: |-+ The seccomp options to use by this container. If seccomp options are+ provided at both the pod & container level, the container options+ override the pod options.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ localhostProfile:+ description: |-+ localhostProfile indicates a profile defined in a file on the node should be used.+ The profile must be preconfigured on the node to work.+ Must be a descending path, relative to the kubelet's configured seccomp profile location.+ Must be set if type is "Localhost". Must NOT be set for any other type.+ type: string+ type:+ description: |-+ type indicates which kind of seccomp profile will be applied.+ Valid options are:++ Localhost - a profile defined in a file on the node should be used.+ RuntimeDefault - the container runtime default profile should be used.+ Unconfined - no profile should be applied.+ type: string+ required:+ - type+ type: object+ windowsOptions:+ description: |-+ The Windows specific settings applied to all containers.+ If unspecified, the options from the PodSecurityContext will be used.+ If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is linux.+ properties:+ gmsaCredentialSpec:+ description: |-+ GMSACredentialSpec is where the GMSA admission webhook+ (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the+ GMSA credential spec named by the GMSACredentialSpecName field.+ type: string+ gmsaCredentialSpecName:+ description: GMSACredentialSpecName is the name of+ the GMSA credential spec to use.+ type: string+ hostProcess:+ description: |-+ HostProcess determines if a container should be run as a 'Host Process' container.+ All of a Pod's containers must have the same effective HostProcess value+ (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).+ In addition, if HostProcess is true then HostNetwork must also be set to true.+ type: boolean+ runAsUserName:+ description: |-+ The UserName in Windows to run the entrypoint of the container process.+ Defaults to the user specified in image metadata if unspecified.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ type: string+ type: object+ type: object+ serviceAccountName:+ description: |-+ ServiceAccountName is the name of the ServiceAccount to use for this component's pod.+ When CreateServiceAccount is true, the operator will create a ServiceAccount with this name.+ When CreateServiceAccount is false, the ServiceAccount must already exist in the target namespace.+ If not specified, defaults to "openrag-{role}" (e.g., "openrag-fe", "openrag-be", "openrag-lf").+ type: string+ serviceAnnotations:+ additionalProperties:+ type: string+ description: ServiceAnnotations are annotations to add to+ the Service resource.+ type: object+ serviceName:+ description: |-+ ServiceName is the name of the Service to use for this component.+ When CreateService is true, the operator will create a Service with this name.+ When CreateService is false, the Service must already exist in the target namespace.+ If not specified, defaults to "openrag-{role}" (e.g., "openrag-fe", "openrag-be", "openrag-lf").+ type: string+ serviceType:+ default: ClusterIP+ description: ServiceType specifies the type of Service to+ create (ClusterIP, LoadBalancer, NodePort).+ type: string+ storage:+ description: Storage configures a PVC for processing workspace.+ properties:+ accessModes:+ description: AccessModes for the PVC. Defaults to ["ReadWriteOnce"].+ items:+ type: string+ type: array+ enabled:+ default: true+ type: boolean+ existingClaim:+ description: ExistingClaim reuses a pre-existing PVC instead+ of creating one.+ type: string+ size:+ anyOf:+ - type: integer+ - type: string+ default: 10Gi+ description: Size of the PVC. Defaults to 10Gi.+ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$+ x-kubernetes-int-or-string: true+ storageClassName:+ description: StorageClassName passed to the PVC. Defaults+ to the cluster default.+ type: string+ type: object+ tolerations:+ items:+ description: |-+ The pod this Toleration is attached to tolerates any taint that matches+ the triple <key,value,effect> using the matching operator <operator>.+ properties:+ effect:+ description: |-+ Effect indicates the taint effect to match. Empty means match all taint effects.+ When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.+ type: string+ key:+ description: |-+ Key is the taint key that the toleration applies to. Empty means match all taint keys.+ If the key is empty, operator must be Exists; this combination means to match all values and all keys.+ type: string+ operator:+ description: |-+ Operator represents a key's relationship to the value.+ Valid operators are Exists and Equal. Defaults to Equal.+ Exists is equivalent to wildcard for value, so that a pod can+ tolerate all taints of a particular category.+ type: string+ tolerationSeconds:+ description: |-+ TolerationSeconds represents the period of time the toleration (which must be+ of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,+ it is not set, which means tolerate the taint forever (do not evict). Zero and+ negative values will be treated as 0 (evict immediately) by the system.+ format: int64+ type: integer+ value:+ description: |-+ Value is the taint value the toleration matches to.+ If the operator is Exists, the value should be empty, otherwise just a regular string.+ type: string+ type: object+ type: array+ topologySpreadConstraints:+ description: TopologySpreadConstraints for high availability+ pod distribution.+ items:+ description: TopologySpreadConstraint specifies how to spread+ matching pods among the given topology.+ properties:+ labelSelector:+ description: |-+ LabelSelector is used to find matching pods.+ Pods that match this label selector are counted to determine the number of pods+ in their corresponding topology domain.+ properties:+ matchExpressions:+ description: matchExpressions is a list of label+ selector requirements. The requirements are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label key that the+ selector applies to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ matchLabelKeys:+ description: |-+ MatchLabelKeys is a set of pod label keys to select the pods over which+ spreading will be calculated. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are ANDed with labelSelector+ to select the group of existing pods over which spreading will be calculated+ for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector.+ MatchLabelKeys cannot be set when LabelSelector isn't set.+ Keys that don't exist in the incoming pod labels will+ be ignored. A null or empty list means only match against labelSelector.++ This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ maxSkew:+ description: |-+ MaxSkew describes the degree to which pods may be unevenly distributed.+ When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference+ between the number of matching pods in the target topology and the global minimum.+ The global minimum is the minimum number of matching pods in an eligible domain+ or zero if the number of eligible domains is less than MinDomains.+ For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same+ labelSelector spread as 2/2/1:+ In this case, the global minimum is 1.+ | zone1 | zone2 | zone3 |+ | P P | P P | P |+ - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2;+ scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2)+ violate MaxSkew(1).+ - if MaxSkew is 2, incoming pod can be scheduled onto any zone.+ When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence+ to topologies that satisfy it.+ It's a required field. Default value is 1 and 0 is not allowed.+ format: int32+ type: integer+ minDomains:+ description: |-+ MinDomains indicates a minimum number of eligible domains.+ When the number of eligible domains with matching topology keys is less than minDomains,+ Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed.+ And when the number of eligible domains with matching topology keys equals or greater than minDomains,+ this value has no effect on scheduling.+ As a result, when the number of eligible domains is less than minDomains,+ scheduler won't schedule more than maxSkew Pods to those domains.+ If value is nil, the constraint behaves as if MinDomains is equal to 1.+ Valid values are integers greater than 0.+ When value is not nil, WhenUnsatisfiable must be DoNotSchedule.- This field is immutable. It can only be set for containers.- items:- description: ResourceClaim references one entry in PodSpec.ResourceClaims.- properties:- name:+ For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same+ labelSelector spread as 2/2/2:+ | zone1 | zone2 | zone3 |+ | P P | P P | P P |+ The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0.+ In this situation, new pod with the same labelSelector cannot be scheduled,+ because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones,+ it will violate MaxSkew.+ format: int32+ type: integer+ nodeAffinityPolicy:description: |-- Name must match the name of one entry in pod.spec.resourceClaims of- the Pod where this field is used. It makes that resource available- inside a container.+ NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector+ when calculating pod topology spread skew. Options are:+ - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations.+ - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.++ If this value is nil, the behavior is equivalent to the Honor policy.type: string- request:+ nodeTaintsPolicy:description: |-- Request is the name chosen for a request in the referenced claim.- If empty, everything from the claim is made available, otherwise- only the result of this request.+ NodeTaintsPolicy indicates how we will treat node taints when calculating+ pod topology spread skew. Options are:+ - Honor: nodes without taints, along with tainted nodes for which the incoming pod+ has a toleration, are included.+ - Ignore: node taints are ignored. All nodes are included.++ If this value is nil, the behavior is equivalent to the Ignore policy.+ type: string+ topologyKey:+ description: |-+ TopologyKey is the key of node labels. Nodes that have a label with this key+ and identical values are considered to be in the same topology.+ We consider each <key, value> as a "bucket", and try to put balanced number+ of pods into each bucket.+ We define a domain as a particular instance of a topology.+ Also, we define an eligible domain as a domain whose nodes meet the requirements of+ nodeAffinityPolicy and nodeTaintsPolicy.+ e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology.+ And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology.+ It's a required field.+ type: string+ whenUnsatisfiable:+ description: |-+ WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy+ the spread constraint.+ - DoNotSchedule (default) tells the scheduler not to schedule it.+ - ScheduleAnyway tells the scheduler to schedule the pod in any location,+ but giving higher precedence to topologies that would help reduce the+ skew.+ A constraint is considered "Unsatisfiable" for an incoming pod+ if and only if every possible node assignment for that pod would violate+ "MaxSkew" on some topology.+ For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same+ labelSelector spread as 3/1/1:+ | zone1 | zone2 | zone3 |+ | P P P | P | P |+ If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled+ to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies+ MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler+ won't make it *more* imbalanced.+ It's a required field.type: stringrequired:- - name+ - maxSkew+ - topologyKey+ - whenUnsatisfiabletype: objecttype: array- x-kubernetes-list-map-keys:- - name- x-kubernetes-list-type: map- limits:- additionalProperties:- anyOf:- - type: integer- - type: string- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$- x-kubernetes-int-or-string: true- description: |-- Limits describes the maximum amount of compute resources allowed.- More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/- type: object- requests:- additionalProperties:- anyOf:- - type: integer- - type: string- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$- x-kubernetes-int-or-string: true- description: |-- Requests describes the minimum amount of compute resources required.- If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,- otherwise to an implementation-defined value. Requests cannot exceed Limits.- More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/- type: object- type: object- serviceAccountName:- description: |-- ServiceAccountName is the name of the ServiceAccount to use for this component's pod.- When CreateServiceAccount is true, the operator will create a ServiceAccount with this name.- When CreateServiceAccount is false, the ServiceAccount must already exist in the target namespace.- If not specified, defaults to "openrag-{role}" (e.g., "openrag-fe", "openrag-be", "openrag-lf").- type: string- serviceName:- description: |-- ServiceName is the name of the Service to use for this component.- When CreateService is true, the operator will create a Service with this name.- When CreateService is false, the Service must already exist in the target namespace.- If not specified, defaults to "openrag-{role}" (e.g., "openrag-fe", "openrag-be", "openrag-lf").- type: string- storage:- description: Storage configures a PVC mounted at /app/backend-data.- properties:- enabled:- default: true- type: boolean- existingClaim:- description: ExistingClaim reuses a pre-existing PVC instead- of creating one.- type: string- size:- anyOf:- - type: integer- - type: string- default: 10Gi- description: Size of the PVC. Defaults to 10Gi.- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$- x-kubernetes-int-or-string: true- storageClassName:- description: StorageClassName passed to the PVC. Defaults- to the cluster default.- type: string+ required:+ - imagetype: object- tolerations:- items:- description: |-- The pod this Toleration is attached to tolerates any taint that matches- the triple <key,value,effect> using the matching operator <operator>.- properties:- effect:- description: |-- Effect indicates the taint effect to match. Empty means match all taint effects.- When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.- type: string- key:- description: |-- Key is the taint key that the toleration applies to. Empty means match all taint keys.- If the key is empty, operator must be Exists; this combination means to match all values and all keys.- type: string- operator:- description: |-- Operator represents a key's relationship to the value.- Valid operators are Exists and Equal. Defaults to Equal.- Exists is equivalent to wildcard for value, so that a pod can- tolerate all taints of a particular category.- type: string- tolerationSeconds:- description: |-- TolerationSeconds represents the period of time the toleration (which must be- of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,- it is not set, which means tolerate the taint forever (do not evict). Zero and- negative values will be treated as 0 (evict immediately) by the system.- format: int64- type: integer- value:- description: |-- Value is the taint value the toleration matches to.- If the operator is Exists, the value should be empty, otherwise just a regular string.- type: string- type: object- type: array- required:- - image- type: object- docling:- description: Docling configures an optional external document-conversion- service.- properties:- host:- description: Host is the Docling service hostname or IP.- type: string- port:- default: 5001- format: int32- type: integer- scheme:- default: http- type: string- required:- - hosttype: objectembedding:description: Embedding configures the embedding provider (EMBEDDING_PROVIDER,@@ -2417,6 +10328,16 @@ spec:Useful for GitOps metadata, deployment tracking, and automation tools.maxProperties: 64type: object+ args:+ description: Args overrides the container's command arguments.+ items:+ type: string+ type: array+ command:+ description: Command overrides the container's entrypoint.+ items:+ type: string+ type: arraycreateService:default: truedescription: |-@@ -2617,6 +10538,238 @@ spec:Cannot override operator-managed labels.maxProperties: 64type: object+ podSecurityContext:+ description: PodSecurityContext holds pod-level security attributes.+ properties:+ appArmorProfile:+ description: |-+ appArmorProfile is the AppArmor options to use by the containers in this pod.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ localhostProfile:+ description: |-+ localhostProfile indicates a profile loaded on the node that should be used.+ The profile must be preconfigured on the node to work.+ Must match the loaded name of the profile.+ Must be set if and only if type is "Localhost".+ type: string+ type:+ description: |-+ type indicates which kind of AppArmor profile will be applied.+ Valid options are:+ Localhost - a profile pre-loaded on the node.+ RuntimeDefault - the container runtime's default profile.+ Unconfined - no AppArmor enforcement.+ type: string+ required:+ - type+ type: object+ fsGroup:+ description: |-+ A special supplemental group that applies to all containers in a pod.+ Some volume types allow the Kubelet to change the ownership of that volume+ to be owned by the pod:++ 1. The owning GID will be the FSGroup+ 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)+ 3. The permission bits are OR'd with rw-rw----++ If unset, the Kubelet will not modify the ownership and permissions of any volume.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ fsGroupChangePolicy:+ description: |-+ fsGroupChangePolicy defines behavior of changing ownership and permission of the volume+ before being exposed inside Pod. This field will only apply to+ volume types which support fsGroup based ownership(and permissions).+ It will have no effect on ephemeral volume types such as: secret, configmaps+ and emptydir.+ Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.+ Note that this field cannot be set when spec.os.name is windows.+ type: string+ runAsGroup:+ description: |-+ The GID to run the entrypoint of the container process.+ Uses runtime default if unset.+ May also be set in SecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence+ for that container.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ runAsNonRoot:+ description: |-+ Indicates that the container must run as a non-root user.+ If true, the Kubelet will validate the image at runtime to ensure that it+ does not run as UID 0 (root) and fail to start the container if it does.+ If unset or false, no such validation will be performed.+ May also be set in SecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ type: boolean+ runAsUser:+ description: |-+ The UID to run the entrypoint of the container process.+ Defaults to user specified in image metadata if unspecified.+ May also be set in SecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence+ for that container.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ seLinuxChangePolicy:+ description: |-+ seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod.+ It has no effect on nodes that do not support SELinux or to volumes does not support SELinux.+ Valid values are "MountOption" and "Recursive".++ "Recursive" means relabeling of all files on all Pod volumes by the container runtime.+ This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node.++ "MountOption" mounts all eligible Pod volumes with `-o context` mount option.+ This requires all Pods that share the same volume to use the same SELinux label.+ It is not possible to share the same volume among privileged and unprivileged Pods.+ Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes+ whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their+ CSIDriver instance. Other volumes are always re-labelled recursively.+ "MountOption" value is allowed only when SELinuxMount feature gate is enabled.++ If not specified and SELinuxMount feature gate is enabled, "MountOption" is used.+ If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes+ and "Recursive" for all other volumes.++ This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.++ All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state.+ Note that this field cannot be set when spec.os.name is windows.+ type: string+ seLinuxOptions:+ description: |-+ The SELinux context to be applied to all containers.+ If unspecified, the container runtime will allocate a random SELinux context for each+ container. May also be set in SecurityContext. If set in+ both SecurityContext and PodSecurityContext, the value specified in SecurityContext+ takes precedence for that container.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ level:+ description: Level is SELinux level label that applies+ to the container.+ type: string+ role:+ description: Role is a SELinux role label that applies+ to the container.+ type: string+ type:+ description: Type is a SELinux type label that applies+ to the container.+ type: string+ user:+ description: User is a SELinux user label that applies+ to the container.+ type: string+ type: object+ seccompProfile:+ description: |-+ The seccomp options to use by the containers in this pod.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ localhostProfile:+ description: |-+ localhostProfile indicates a profile defined in a file on the node should be used.+ The profile must be preconfigured on the node to work.+ Must be a descending path, relative to the kubelet's configured seccomp profile location.+ Must be set if type is "Localhost". Must NOT be set for any other type.+ type: string+ type:+ description: |-+ type indicates which kind of seccomp profile will be applied.+ Valid options are:++ Localhost - a profile defined in a file on the node should be used.+ RuntimeDefault - the container runtime default profile should be used.+ Unconfined - no profile should be applied.+ type: string+ required:+ - type+ type: object+ supplementalGroups:+ description: |-+ A list of groups applied to the first process run in each container, in+ addition to the container's primary GID and fsGroup (if specified). If+ the SupplementalGroupsPolicy feature is enabled, the+ supplementalGroupsPolicy field determines whether these are in addition+ to or instead of any group memberships defined in the container image.+ If unspecified, no additional groups are added, though group memberships+ defined in the container image may still be used, depending on the+ supplementalGroupsPolicy field.+ Note that this field cannot be set when spec.os.name is windows.+ items:+ format: int64+ type: integer+ type: array+ x-kubernetes-list-type: atomic+ supplementalGroupsPolicy:+ description: |-+ Defines how supplemental groups of the first container processes are calculated.+ Valid values are "Merge" and "Strict". If not specified, "Merge" is used.+ (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled+ and the container runtime must implement support for this feature.+ Note that this field cannot be set when spec.os.name is windows.+ type: string+ sysctls:+ description: |-+ Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported+ sysctls (by the container runtime) might fail to launch.+ Note that this field cannot be set when spec.os.name is windows.+ items:+ description: Sysctl defines a kernel parameter to be set+ properties:+ name:+ description: Name of a property to set+ type: string+ value:+ description: Value of a property to set+ type: string+ required:+ - name+ - value+ type: object+ type: array+ x-kubernetes-list-type: atomic+ windowsOptions:+ description: |-+ The Windows specific settings applied to all containers.+ If unspecified, the options within a container's SecurityContext will be used.+ If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is linux.+ properties:+ gmsaCredentialSpec:+ description: |-+ GMSACredentialSpec is where the GMSA admission webhook+ (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the+ GMSA credential spec named by the GMSACredentialSpecName field.+ type: string+ gmsaCredentialSpecName:+ description: GMSACredentialSpecName is the name of the+ GMSA credential spec to use.+ type: string+ hostProcess:+ description: |-+ HostProcess determines if a container should be run as a 'Host Process' container.+ All of a Pod's containers must have the same effective HostProcess value+ (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).+ In addition, if HostProcess is true then HostNetwork must also be set to true.+ type: boolean+ runAsUserName:+ description: |-+ The UserName in Windows to run the entrypoint of the container process.+ Defaults to the user specified in image metadata if unspecified.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ type: string+ type: object+ type: objectreplicas:default: 1format: int32@@ -2665,21 +10818,213 @@ spec:pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$x-kubernetes-int-or-string: truedescription: |-- Limits describes the maximum amount of compute resources allowed.- More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/+ Limits describes the maximum amount of compute resources allowed.+ More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/+ type: object+ requests:+ additionalProperties:+ anyOf:+ - type: integer+ - type: string+ pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$+ x-kubernetes-int-or-string: true+ description: |-+ Requests describes the minimum amount of compute resources required.+ If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,+ otherwise to an implementation-defined value. Requests cannot exceed Limits.+ More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/+ type: object+ type: object+ securityContext:+ description: SecurityContext holds container-level security attributes.+ properties:+ allowPrivilegeEscalation:+ description: |-+ AllowPrivilegeEscalation controls whether a process can gain more+ privileges than its parent process. This bool directly controls if+ the no_new_privs flag will be set on the container process.+ AllowPrivilegeEscalation is true always when the container is:+ 1) run as Privileged+ 2) has CAP_SYS_ADMIN+ Note that this field cannot be set when spec.os.name is windows.+ type: boolean+ appArmorProfile:+ description: |-+ appArmorProfile is the AppArmor options to use by this container. If set, this profile+ overrides the pod's appArmorProfile.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ localhostProfile:+ description: |-+ localhostProfile indicates a profile loaded on the node that should be used.+ The profile must be preconfigured on the node to work.+ Must match the loaded name of the profile.+ Must be set if and only if type is "Localhost".+ type: string+ type:+ description: |-+ type indicates which kind of AppArmor profile will be applied.+ Valid options are:+ Localhost - a profile pre-loaded on the node.+ RuntimeDefault - the container runtime's default profile.+ Unconfined - no AppArmor enforcement.+ type: string+ required:+ - type+ type: object+ capabilities:+ description: |-+ The capabilities to add/drop when running containers.+ Defaults to the default set of capabilities granted by the container runtime.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ add:+ description: Added capabilities+ items:+ description: Capability represent POSIX capabilities+ type+ type: string+ type: array+ x-kubernetes-list-type: atomic+ drop:+ description: Removed capabilities+ items:+ description: Capability represent POSIX capabilities+ type+ type: string+ type: array+ x-kubernetes-list-type: atomic+ type: object+ privileged:+ description: |-+ Run container in privileged mode.+ Processes in privileged containers are essentially equivalent to root on the host.+ Defaults to false.+ Note that this field cannot be set when spec.os.name is windows.+ type: boolean+ procMount:+ description: |-+ procMount denotes the type of proc mount to use for the containers.+ The default value is Default which uses the container runtime defaults for+ readonly paths and masked paths.+ This requires the ProcMountType feature flag to be enabled.+ Note that this field cannot be set when spec.os.name is windows.+ type: string+ readOnlyRootFilesystem:+ description: |-+ Whether this container has a read-only root filesystem.+ Default is false.+ Note that this field cannot be set when spec.os.name is windows.+ type: boolean+ runAsGroup:+ description: |-+ The GID to run the entrypoint of the container process.+ Uses runtime default if unset.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ runAsNonRoot:+ description: |-+ Indicates that the container must run as a non-root user.+ If true, the Kubelet will validate the image at runtime to ensure that it+ does not run as UID 0 (root) and fail to start the container if it does.+ If unset or false, no such validation will be performed.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ type: boolean+ runAsUser:+ description: |-+ The UID to run the entrypoint of the container process.+ Defaults to user specified in image metadata if unspecified.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ seLinuxOptions:+ description: |-+ The SELinux context to be applied to the container.+ If unspecified, the container runtime will allocate a random SELinux context for each+ container. May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ level:+ description: Level is SELinux level label that applies+ to the container.+ type: string+ role:+ description: Role is a SELinux role label that applies+ to the container.+ type: string+ type:+ description: Type is a SELinux type label that applies+ to the container.+ type: string+ user:+ description: User is a SELinux user label that applies+ to the container.+ type: stringtype: object- requests:- additionalProperties:- anyOf:- - type: integer- - type: string- pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$- x-kubernetes-int-or-string: true+ seccompProfile:description: |-- Requests describes the minimum amount of compute resources required.- If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,- otherwise to an implementation-defined value. Requests cannot exceed Limits.- More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/+ The seccomp options to use by this container. If seccomp options are+ provided at both the pod & container level, the container options+ override the pod options.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ localhostProfile:+ description: |-+ localhostProfile indicates a profile defined in a file on the node should be used.+ The profile must be preconfigured on the node to work.+ Must be a descending path, relative to the kubelet's configured seccomp profile location.+ Must be set if type is "Localhost". Must NOT be set for any other type.+ type: string+ type:+ description: |-+ type indicates which kind of seccomp profile will be applied.+ Valid options are:++ Localhost - a profile defined in a file on the node should be used.+ RuntimeDefault - the container runtime default profile should be used.+ Unconfined - no profile should be applied.+ type: string+ required:+ - type+ type: object+ windowsOptions:+ description: |-+ The Windows specific settings applied to all containers.+ If unspecified, the options from the PodSecurityContext will be used.+ If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is linux.+ properties:+ gmsaCredentialSpec:+ description: |-+ GMSACredentialSpec is where the GMSA admission webhook+ (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the+ GMSA credential spec named by the GMSACredentialSpecName field.+ type: string+ gmsaCredentialSpecName:+ description: GMSACredentialSpecName is the name of the+ GMSA credential spec to use.+ type: string+ hostProcess:+ description: |-+ HostProcess determines if a container should be run as a 'Host Process' container.+ All of a Pod's containers must have the same effective HostProcess value+ (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).+ In addition, if HostProcess is true then HostNetwork must also be set to true.+ type: boolean+ runAsUserName:+ description: |-+ The UserName in Windows to run the entrypoint of the container process.+ Defaults to the user specified in image metadata if unspecified.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ type: stringtype: objecttype: objectserviceAccountName:@@ -2689,6 +11034,12 @@ spec:When CreateServiceAccount is false, the ServiceAccount must already exist in the target namespace.If not specified, defaults to "openrag-{role}" (e.g., "openrag-fe", "openrag-be", "openrag-lf").type: string+ serviceAnnotations:+ additionalProperties:+ type: string+ description: ServiceAnnotations are annotations to add to the+ Service resource.+ type: objectserviceName:description: |-ServiceName is the name of the Service to use for this component.@@ -2696,6 +11047,11 @@ spec:When CreateService is false, the Service must already exist in the target namespace.If not specified, defaults to "openrag-{role}" (e.g., "openrag-fe", "openrag-be", "openrag-lf").type: string+ serviceType:+ default: ClusterIP+ description: ServiceType specifies the type of Service to create+ (ClusterIP, LoadBalancer, NodePort).+ type: stringtolerations:items:description: |-@@ -2734,6 +11090,181 @@ spec:type: stringtype: objecttype: array+ topologySpreadConstraints:+ description: TopologySpreadConstraints for high availability pod+ distribution.+ items:+ description: TopologySpreadConstraint specifies how to spread+ matching pods among the given topology.+ properties:+ labelSelector:+ description: |-+ LabelSelector is used to find matching pods.+ Pods that match this label selector are counted to determine the number of pods+ in their corresponding topology domain.+ properties:+ matchExpressions:+ description: matchExpressions is a list of label selector+ requirements. The requirements are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label key that the selector+ applies to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ matchLabelKeys:+ description: |-+ MatchLabelKeys is a set of pod label keys to select the pods over which+ spreading will be calculated. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are ANDed with labelSelector+ to select the group of existing pods over which spreading will be calculated+ for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector.+ MatchLabelKeys cannot be set when LabelSelector isn't set.+ Keys that don't exist in the incoming pod labels will+ be ignored. A null or empty list means only match against labelSelector.++ This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ maxSkew:+ description: |-+ MaxSkew describes the degree to which pods may be unevenly distributed.+ When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference+ between the number of matching pods in the target topology and the global minimum.+ The global minimum is the minimum number of matching pods in an eligible domain+ or zero if the number of eligible domains is less than MinDomains.+ For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same+ labelSelector spread as 2/2/1:+ In this case, the global minimum is 1.+ | zone1 | zone2 | zone3 |+ | P P | P P | P |+ - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2;+ scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2)+ violate MaxSkew(1).+ - if MaxSkew is 2, incoming pod can be scheduled onto any zone.+ When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence+ to topologies that satisfy it.+ It's a required field. Default value is 1 and 0 is not allowed.+ format: int32+ type: integer+ minDomains:+ description: |-+ MinDomains indicates a minimum number of eligible domains.+ When the number of eligible domains with matching topology keys is less than minDomains,+ Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed.+ And when the number of eligible domains with matching topology keys equals or greater than minDomains,+ this value has no effect on scheduling.+ As a result, when the number of eligible domains is less than minDomains,+ scheduler won't schedule more than maxSkew Pods to those domains.+ If value is nil, the constraint behaves as if MinDomains is equal to 1.+ Valid values are integers greater than 0.+ When value is not nil, WhenUnsatisfiable must be DoNotSchedule.++ For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same+ labelSelector spread as 2/2/2:+ | zone1 | zone2 | zone3 |+ | P P | P P | P P |+ The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0.+ In this situation, new pod with the same labelSelector cannot be scheduled,+ because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones,+ it will violate MaxSkew.+ format: int32+ type: integer+ nodeAffinityPolicy:+ description: |-+ NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector+ when calculating pod topology spread skew. Options are:+ - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations.+ - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.++ If this value is nil, the behavior is equivalent to the Honor policy.+ type: string+ nodeTaintsPolicy:+ description: |-+ NodeTaintsPolicy indicates how we will treat node taints when calculating+ pod topology spread skew. Options are:+ - Honor: nodes without taints, along with tainted nodes for which the incoming pod+ has a toleration, are included.+ - Ignore: node taints are ignored. All nodes are included.++ If this value is nil, the behavior is equivalent to the Ignore policy.+ type: string+ topologyKey:+ description: |-+ TopologyKey is the key of node labels. Nodes that have a label with this key+ and identical values are considered to be in the same topology.+ We consider each <key, value> as a "bucket", and try to put balanced number+ of pods into each bucket.+ We define a domain as a particular instance of a topology.+ Also, we define an eligible domain as a domain whose nodes meet the requirements of+ nodeAffinityPolicy and nodeTaintsPolicy.+ e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology.+ And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology.+ It's a required field.+ type: string+ whenUnsatisfiable:+ description: |-+ WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy+ the spread constraint.+ - DoNotSchedule (default) tells the scheduler not to schedule it.+ - ScheduleAnyway tells the scheduler to schedule the pod in any location,+ but giving higher precedence to topologies that would help reduce the+ skew.+ A constraint is considered "Unsatisfiable" for an incoming pod+ if and only if every possible node assignment for that pod would violate+ "MaxSkew" on some topology.+ For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same+ labelSelector spread as 3/1/1:+ | zone1 | zone2 | zone3 |+ | P P P | P | P |+ If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled+ to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies+ MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler+ won't make it *more* imbalanced.+ It's a required field.+ type: string+ required:+ - maxSkew+ - topologyKey+ - whenUnsatisfiable+ type: object+ type: arrayrequired:- imagetype: object@@ -3691,6 +12222,16 @@ spec:Useful for GitOps metadata, deployment tracking, and automation tools.maxProperties: 64type: object+ args:+ description: Args overrides the container's command arguments.+ items:+ type: string+ type: array+ command:+ description: Command overrides the container's entrypoint.+ items:+ type: string+ type: arraycreateService:default: truedescription: |-@@ -3903,6 +12444,238 @@ spec:Cannot override operator-managed labels.maxProperties: 64type: object+ podSecurityContext:+ description: PodSecurityContext holds pod-level security attributes.+ properties:+ appArmorProfile:+ description: |-+ appArmorProfile is the AppArmor options to use by the containers in this pod.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ localhostProfile:+ description: |-+ localhostProfile indicates a profile loaded on the node that should be used.+ The profile must be preconfigured on the node to work.+ Must match the loaded name of the profile.+ Must be set if and only if type is "Localhost".+ type: string+ type:+ description: |-+ type indicates which kind of AppArmor profile will be applied.+ Valid options are:+ Localhost - a profile pre-loaded on the node.+ RuntimeDefault - the container runtime's default profile.+ Unconfined - no AppArmor enforcement.+ type: string+ required:+ - type+ type: object+ fsGroup:+ description: |-+ A special supplemental group that applies to all containers in a pod.+ Some volume types allow the Kubelet to change the ownership of that volume+ to be owned by the pod:++ 1. The owning GID will be the FSGroup+ 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)+ 3. The permission bits are OR'd with rw-rw----++ If unset, the Kubelet will not modify the ownership and permissions of any volume.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ fsGroupChangePolicy:+ description: |-+ fsGroupChangePolicy defines behavior of changing ownership and permission of the volume+ before being exposed inside Pod. This field will only apply to+ volume types which support fsGroup based ownership(and permissions).+ It will have no effect on ephemeral volume types such as: secret, configmaps+ and emptydir.+ Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.+ Note that this field cannot be set when spec.os.name is windows.+ type: string+ runAsGroup:+ description: |-+ The GID to run the entrypoint of the container process.+ Uses runtime default if unset.+ May also be set in SecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence+ for that container.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ runAsNonRoot:+ description: |-+ Indicates that the container must run as a non-root user.+ If true, the Kubelet will validate the image at runtime to ensure that it+ does not run as UID 0 (root) and fail to start the container if it does.+ If unset or false, no such validation will be performed.+ May also be set in SecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ type: boolean+ runAsUser:+ description: |-+ The UID to run the entrypoint of the container process.+ Defaults to user specified in image metadata if unspecified.+ May also be set in SecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence+ for that container.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ seLinuxChangePolicy:+ description: |-+ seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod.+ It has no effect on nodes that do not support SELinux or to volumes does not support SELinux.+ Valid values are "MountOption" and "Recursive".++ "Recursive" means relabeling of all files on all Pod volumes by the container runtime.+ This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node.++ "MountOption" mounts all eligible Pod volumes with `-o context` mount option.+ This requires all Pods that share the same volume to use the same SELinux label.+ It is not possible to share the same volume among privileged and unprivileged Pods.+ Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes+ whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their+ CSIDriver instance. Other volumes are always re-labelled recursively.+ "MountOption" value is allowed only when SELinuxMount feature gate is enabled.++ If not specified and SELinuxMount feature gate is enabled, "MountOption" is used.+ If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes+ and "Recursive" for all other volumes.++ This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.++ All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state.+ Note that this field cannot be set when spec.os.name is windows.+ type: string+ seLinuxOptions:+ description: |-+ The SELinux context to be applied to all containers.+ If unspecified, the container runtime will allocate a random SELinux context for each+ container. May also be set in SecurityContext. If set in+ both SecurityContext and PodSecurityContext, the value specified in SecurityContext+ takes precedence for that container.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ level:+ description: Level is SELinux level label that applies+ to the container.+ type: string+ role:+ description: Role is a SELinux role label that applies+ to the container.+ type: string+ type:+ description: Type is a SELinux type label that applies+ to the container.+ type: string+ user:+ description: User is a SELinux user label that applies+ to the container.+ type: string+ type: object+ seccompProfile:+ description: |-+ The seccomp options to use by the containers in this pod.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ localhostProfile:+ description: |-+ localhostProfile indicates a profile defined in a file on the node should be used.+ The profile must be preconfigured on the node to work.+ Must be a descending path, relative to the kubelet's configured seccomp profile location.+ Must be set if type is "Localhost". Must NOT be set for any other type.+ type: string+ type:+ description: |-+ type indicates which kind of seccomp profile will be applied.+ Valid options are:++ Localhost - a profile defined in a file on the node should be used.+ RuntimeDefault - the container runtime default profile should be used.+ Unconfined - no profile should be applied.+ type: string+ required:+ - type+ type: object+ supplementalGroups:+ description: |-+ A list of groups applied to the first process run in each container, in+ addition to the container's primary GID and fsGroup (if specified). If+ the SupplementalGroupsPolicy feature is enabled, the+ supplementalGroupsPolicy field determines whether these are in addition+ to or instead of any group memberships defined in the container image.+ If unspecified, no additional groups are added, though group memberships+ defined in the container image may still be used, depending on the+ supplementalGroupsPolicy field.+ Note that this field cannot be set when spec.os.name is windows.+ items:+ format: int64+ type: integer+ type: array+ x-kubernetes-list-type: atomic+ supplementalGroupsPolicy:+ description: |-+ Defines how supplemental groups of the first container processes are calculated.+ Valid values are "Merge" and "Strict". If not specified, "Merge" is used.+ (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled+ and the container runtime must implement support for this feature.+ Note that this field cannot be set when spec.os.name is windows.+ type: string+ sysctls:+ description: |-+ Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported+ sysctls (by the container runtime) might fail to launch.+ Note that this field cannot be set when spec.os.name is windows.+ items:+ description: Sysctl defines a kernel parameter to be set+ properties:+ name:+ description: Name of a property to set+ type: string+ value:+ description: Value of a property to set+ type: string+ required:+ - name+ - value+ type: object+ type: array+ x-kubernetes-list-type: atomic+ windowsOptions:+ description: |-+ The Windows specific settings applied to all containers.+ If unspecified, the options within a container's SecurityContext will be used.+ If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is linux.+ properties:+ gmsaCredentialSpec:+ description: |-+ GMSACredentialSpec is where the GMSA admission webhook+ (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the+ GMSA credential spec named by the GMSACredentialSpecName field.+ type: string+ gmsaCredentialSpecName:+ description: GMSACredentialSpecName is the name of the+ GMSA credential spec to use.+ type: string+ hostProcess:+ description: |-+ HostProcess determines if a container should be run as a 'Host Process' container.+ All of a Pod's containers must have the same effective HostProcess value+ (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).+ In addition, if HostProcess is true then HostNetwork must also be set to true.+ type: boolean+ runAsUserName:+ description: |-+ The UserName in Windows to run the entrypoint of the container process.+ Defaults to the user specified in image metadata if unspecified.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ type: string+ type: object+ type: objectreplicas:default: 1format: int32@@ -3996,6 +12769,198 @@ spec:- keytype: objectx-kubernetes-map-type: atomic+ securityContext:+ description: SecurityContext holds container-level security attributes.+ properties:+ allowPrivilegeEscalation:+ description: |-+ AllowPrivilegeEscalation controls whether a process can gain more+ privileges than its parent process. This bool directly controls if+ the no_new_privs flag will be set on the container process.+ AllowPrivilegeEscalation is true always when the container is:+ 1) run as Privileged+ 2) has CAP_SYS_ADMIN+ Note that this field cannot be set when spec.os.name is windows.+ type: boolean+ appArmorProfile:+ description: |-+ appArmorProfile is the AppArmor options to use by this container. If set, this profile+ overrides the pod's appArmorProfile.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ localhostProfile:+ description: |-+ localhostProfile indicates a profile loaded on the node that should be used.+ The profile must be preconfigured on the node to work.+ Must match the loaded name of the profile.+ Must be set if and only if type is "Localhost".+ type: string+ type:+ description: |-+ type indicates which kind of AppArmor profile will be applied.+ Valid options are:+ Localhost - a profile pre-loaded on the node.+ RuntimeDefault - the container runtime's default profile.+ Unconfined - no AppArmor enforcement.+ type: string+ required:+ - type+ type: object+ capabilities:+ description: |-+ The capabilities to add/drop when running containers.+ Defaults to the default set of capabilities granted by the container runtime.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ add:+ description: Added capabilities+ items:+ description: Capability represent POSIX capabilities+ type+ type: string+ type: array+ x-kubernetes-list-type: atomic+ drop:+ description: Removed capabilities+ items:+ description: Capability represent POSIX capabilities+ type+ type: string+ type: array+ x-kubernetes-list-type: atomic+ type: object+ privileged:+ description: |-+ Run container in privileged mode.+ Processes in privileged containers are essentially equivalent to root on the host.+ Defaults to false.+ Note that this field cannot be set when spec.os.name is windows.+ type: boolean+ procMount:+ description: |-+ procMount denotes the type of proc mount to use for the containers.+ The default value is Default which uses the container runtime defaults for+ readonly paths and masked paths.+ This requires the ProcMountType feature flag to be enabled.+ Note that this field cannot be set when spec.os.name is windows.+ type: string+ readOnlyRootFilesystem:+ description: |-+ Whether this container has a read-only root filesystem.+ Default is false.+ Note that this field cannot be set when spec.os.name is windows.+ type: boolean+ runAsGroup:+ description: |-+ The GID to run the entrypoint of the container process.+ Uses runtime default if unset.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ runAsNonRoot:+ description: |-+ Indicates that the container must run as a non-root user.+ If true, the Kubelet will validate the image at runtime to ensure that it+ does not run as UID 0 (root) and fail to start the container if it does.+ If unset or false, no such validation will be performed.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ type: boolean+ runAsUser:+ description: |-+ The UID to run the entrypoint of the container process.+ Defaults to user specified in image metadata if unspecified.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is windows.+ format: int64+ type: integer+ seLinuxOptions:+ description: |-+ The SELinux context to be applied to the container.+ If unspecified, the container runtime will allocate a random SELinux context for each+ container. May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ level:+ description: Level is SELinux level label that applies+ to the container.+ type: string+ role:+ description: Role is a SELinux role label that applies+ to the container.+ type: string+ type:+ description: Type is a SELinux type label that applies+ to the container.+ type: string+ user:+ description: User is a SELinux user label that applies+ to the container.+ type: string+ type: object+ seccompProfile:+ description: |-+ The seccomp options to use by this container. If seccomp options are+ provided at both the pod & container level, the container options+ override the pod options.+ Note that this field cannot be set when spec.os.name is windows.+ properties:+ localhostProfile:+ description: |-+ localhostProfile indicates a profile defined in a file on the node should be used.+ The profile must be preconfigured on the node to work.+ Must be a descending path, relative to the kubelet's configured seccomp profile location.+ Must be set if type is "Localhost". Must NOT be set for any other type.+ type: string+ type:+ description: |-+ type indicates which kind of seccomp profile will be applied.+ Valid options are:++ Localhost - a profile defined in a file on the node should be used.+ RuntimeDefault - the container runtime default profile should be used.+ Unconfined - no profile should be applied.+ type: string+ required:+ - type+ type: object+ windowsOptions:+ description: |-+ The Windows specific settings applied to all containers.+ If unspecified, the options from the PodSecurityContext will be used.+ If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.+ Note that this field cannot be set when spec.os.name is linux.+ properties:+ gmsaCredentialSpec:+ description: |-+ GMSACredentialSpec is where the GMSA admission webhook+ (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the+ GMSA credential spec named by the GMSACredentialSpecName field.+ type: string+ gmsaCredentialSpecName:+ description: GMSACredentialSpecName is the name of the+ GMSA credential spec to use.+ type: string+ hostProcess:+ description: |-+ HostProcess determines if a container should be run as a 'Host Process' container.+ All of a Pod's containers must have the same effective HostProcess value+ (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).+ In addition, if HostProcess is true then HostNetwork must also be set to true.+ type: boolean+ runAsUserName:+ description: |-+ The UserName in Windows to run the entrypoint of the container process.+ Defaults to the user specified in image metadata if unspecified.+ May also be set in PodSecurityContext. If set in both SecurityContext and+ PodSecurityContext, the value specified in SecurityContext takes precedence.+ type: string+ type: object+ type: objectserviceAccountName:description: |-ServiceAccountName is the name of the ServiceAccount to use for this component's pod.@@ -4003,6 +12968,12 @@ spec:When CreateServiceAccount is false, the ServiceAccount must already exist in the target namespace.If not specified, defaults to "openrag-{role}" (e.g., "openrag-fe", "openrag-be", "openrag-lf").type: string+ serviceAnnotations:+ additionalProperties:+ type: string+ description: ServiceAnnotations are annotations to add to the+ Service resource.+ type: objectserviceName:description: |-ServiceName is the name of the Service to use for this component.@@ -4010,10 +12981,20 @@ spec:When CreateService is false, the Service must already exist in the target namespace.If not specified, defaults to "openrag-{role}" (e.g., "openrag-fe", "openrag-be", "openrag-lf").type: string+ serviceType:+ default: ClusterIP+ description: ServiceType specifies the type of Service to create+ (ClusterIP, LoadBalancer, NodePort).+ type: stringstorage:description: Storage configures a PVC mounted at /app/data (LangflowSQLite + flows).properties:+ accessModes:+ description: AccessModes for the PVC. Defaults to ["ReadWriteOnce"].+ items:+ type: string+ type: arrayenabled:default: truetype: boolean@@ -4072,6 +13053,181 @@ spec:type: stringtype: objecttype: array+ topologySpreadConstraints:+ description: TopologySpreadConstraints for high availability pod+ distribution.+ items:+ description: TopologySpreadConstraint specifies how to spread+ matching pods among the given topology.+ properties:+ labelSelector:+ description: |-+ LabelSelector is used to find matching pods.+ Pods that match this label selector are counted to determine the number of pods+ in their corresponding topology domain.+ properties:+ matchExpressions:+ description: matchExpressions is a list of label selector+ requirements. The requirements are ANDed.+ items:+ description: |-+ A label selector requirement is a selector that contains values, a key, and an operator that+ relates the key and values.+ properties:+ key:+ description: key is the label key that the selector+ applies to.+ type: string+ operator:+ description: |-+ operator represents a key's relationship to a set of values.+ Valid operators are In, NotIn, Exists and DoesNotExist.+ type: string+ values:+ description: |-+ values is an array of string values. If the operator is In or NotIn,+ the values array must be non-empty. If the operator is Exists or DoesNotExist,+ the values array must be empty. This array is replaced during a strategic+ merge patch.+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ required:+ - key+ - operator+ type: object+ type: array+ x-kubernetes-list-type: atomic+ matchLabels:+ additionalProperties:+ type: string+ description: |-+ matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels+ map is equivalent to an element of matchExpressions, whose key field is "key", the+ operator is "In", and the values array contains only "value". The requirements are ANDed.+ type: object+ type: object+ x-kubernetes-map-type: atomic+ matchLabelKeys:+ description: |-+ MatchLabelKeys is a set of pod label keys to select the pods over which+ spreading will be calculated. The keys are used to lookup values from the+ incoming pod labels, those key-value labels are ANDed with labelSelector+ to select the group of existing pods over which spreading will be calculated+ for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector.+ MatchLabelKeys cannot be set when LabelSelector isn't set.+ Keys that don't exist in the incoming pod labels will+ be ignored. A null or empty list means only match against labelSelector.++ This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).+ items:+ type: string+ type: array+ x-kubernetes-list-type: atomic+ maxSkew:+ description: |-+ MaxSkew describes the degree to which pods may be unevenly distributed.+ When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference+ between the number of matching pods in the target topology and the global minimum.+ The global minimum is the minimum number of matching pods in an eligible domain+ or zero if the number of eligible domains is less than MinDomains.+ For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same+ labelSelector spread as 2/2/1:+ In this case, the global minimum is 1.+ | zone1 | zone2 | zone3 |+ | P P | P P | P |+ - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2;+ scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2)+ violate MaxSkew(1).+ - if MaxSkew is 2, incoming pod can be scheduled onto any zone.+ When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence+ to topologies that satisfy it.+ It's a required field. Default value is 1 and 0 is not allowed.+ format: int32+ type: integer+ minDomains:+ description: |-+ MinDomains indicates a minimum number of eligible domains.+ When the number of eligible domains with matching topology keys is less than minDomains,+ Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed.+ And when the number of eligible domains with matching topology keys equals or greater than minDomains,+ this value has no effect on scheduling.+ As a result, when the number of eligible domains is less than minDomains,+ scheduler won't schedule more than maxSkew Pods to those domains.+ If value is nil, the constraint behaves as if MinDomains is equal to 1.+ Valid values are integers greater than 0.+ When value is not nil, WhenUnsatisfiable must be DoNotSchedule.++ For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same+ labelSelector spread as 2/2/2:+ | zone1 | zone2 | zone3 |+ | P P | P P | P P |+ The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0.+ In this situation, new pod with the same labelSelector cannot be scheduled,+ because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones,+ it will violate MaxSkew.+ format: int32+ type: integer+ nodeAffinityPolicy:+ description: |-+ NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector+ when calculating pod topology spread skew. Options are:+ - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations.+ - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.++ If this value is nil, the behavior is equivalent to the Honor policy.+ type: string+ nodeTaintsPolicy:+ description: |-+ NodeTaintsPolicy indicates how we will treat node taints when calculating+ pod topology spread skew. Options are:+ - Honor: nodes without taints, along with tainted nodes for which the incoming pod+ has a toleration, are included.+ - Ignore: node taints are ignored. All nodes are included.++ If this value is nil, the behavior is equivalent to the Ignore policy.+ type: string+ topologyKey:+ description: |-+ TopologyKey is the key of node labels. Nodes that have a label with this key+ and identical values are considered to be in the same topology.+ We consider each <key, value> as a "bucket", and try to put balanced number+ of pods into each bucket.+ We define a domain as a particular instance of a topology.+ Also, we define an eligible domain as a domain whose nodes meet the requirements of+ nodeAffinityPolicy and nodeTaintsPolicy.+ e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology.+ And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology.+ It's a required field.+ type: string+ whenUnsatisfiable:+ description: |-+ WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy+ the spread constraint.+ - DoNotSchedule (default) tells the scheduler not to schedule it.+ - ScheduleAnyway tells the scheduler to schedule the pod in any location,+ but giving higher precedence to topologies that would help reduce the+ skew.+ A constraint is considered "Unsatisfiable" for an incoming pod+ if and only if every possible node assignment for that pod would violate+ "MaxSkew" on some topology.+ For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same+ labelSelector spread as 3/1/1:+ | zone1 | zone2 | zone3 |+ | P P P | P | P |+ If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled+ to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies+ MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler+ won't make it *more* imbalanced.+ It's a required field.+ type: string+ required:+ - maxSkew+ - topologyKey+ - whenUnsatisfiable+ type: object+ type: arrayrequired:- imagetype: objectdiff --git a/kubernetes/operator/config/rbac/role.yaml b/kubernetes/operator/config/rbac/role.yamlindex 75046e088..bea94f8ee 100644--- a/kubernetes/operator/config/rbac/role.yaml+++ b/kubernetes/operator/config/rbac/role.yaml@@ -49,6 +49,18 @@ rules:- patch- update- watch+- apiGroups:+ - autoscaling+ resources:+ - horizontalpodautoscalers+ verbs:+ - create+ - delete+ - get+ - list+ - patch+ - update+ - watch- apiGroups:- coordination.k8s.ioresources:diff --git a/kubernetes/operator/config/samples/docling-complete.yaml b/kubernetes/operator/config/samples/docling-complete.yamlnew file mode 100644index 000000000..b170558cc--- /dev/null+++ b/kubernetes/operator/config/samples/docling-complete.yaml@@ -0,0 +1,359 @@+apiVersion: openr.ag/v1alpha1+kind: OpenRAG+metadata:+ name: openrag-docling-complete+ namespace: openrag-system+spec:+ # Global settings+ imagePullSecrets:+ - name: registry-credentials++ # Docling components+ doclingComponents:+ # Docling Serve - API server with security, reliability, and configuration+ enabled: true+ serve:+ image: ghcr.io/docling-project/docling-serve-cpu:v1.15.1+ imagePullPolicy: IfNotPresent+ replicas: 2++ # Resource management+ resources:+ requests:+ cpu: "500m"+ memory: "1Gi"+ limits:+ cpu: "2000m"+ memory: "4Gi"++ securityContext:+ allowPrivilegeEscalation: false+ readOnlyRootFilesystem: true+ runAsNonRoot: true+ runAsUser: 1000+ capabilities:+ drop:+ - ALL++ livenessProbe:+ httpGet:+ path: /health+ port: 5001+ initialDelaySeconds: 30+ periodSeconds: 10+ timeoutSeconds: 5+ failureThreshold: 3++ readinessProbe:+ httpGet:+ path: /health+ port: 5001+ initialDelaySeconds: 10+ periodSeconds: 5+ timeoutSeconds: 3+ failureThreshold: 3++ # High availability - topology spread+ topologySpreadConstraints:+ - maxSkew: 1+ topologyKey: kubernetes.io/hostname+ whenUnsatisfiable: DoNotSchedule+ labelSelector:+ matchLabels:+ app.kubernetes.io/component: ds+ # - maxSkew: 1+ # topologyKey: topology.kubernetes.io/zone+ # whenUnsatisfiable: ScheduleAnyway+ # labelSelector:+ # matchLabels:+ # app.kubernetes.io/component: ds++ # Service configuration+ serviceType: ClusterIP+ serviceAnnotations:+ prometheus.io/scrape: "true"+ prometheus.io/port: "5001"++ # Node placement+ nodeSelector:+ workload-type: compute++ tolerations:+ - key: "workload-type"+ operator: "Equal"+ value: "compute"+ effect: "NoSchedule"++ # Phase 1: Labels and annotations+ labels:+ team: "ai-platform"+ cost-center: "engineering"++ annotations:+ description: "Docling serve API server"++ podLabels:+ app.kubernetes.io/version: "1.0.0"++ podAnnotations:+ prometheus.io/scrape: "true"+ prometheus.io/port: "5001"++ # HPA with advanced scaling behavior+ hpa:+ enabled: true+ minReplicas: 2+ maxReplicas: 10+ targetCPUUtilizationPercentage: 70+ targetMemoryUtilizationPercentage: 80++ # Fine-grained scaling control+ behavior:+ scaleUp:+ stabilizationWindowSeconds: 60+ policies:+ - type: Percent+ value: 50+ periodSeconds: 60+ - type: Pods+ value: 2+ periodSeconds: 60+ selectPolicy: Max+ scaleDown:+ stabilizationWindowSeconds: 300+ policies:+ - type: Percent+ value: 10+ periodSeconds: 60+ - type: Pods+ value: 1+ periodSeconds: 60+ selectPolicy: Min++ # Docling Worker - Background processing with full features+ worker:+ image: ghcr.io/docling-project/docling-serve-cpu:v1.15.1+ imagePullPolicy: IfNotPresent+ replicas: 3++ # Resource management+ resources:+ requests:+ cpu: "1000m"+ memory: "2Gi"+ limits:+ cpu: "4000m"+ memory: "8Gi"++ # Container-level security context+ securityContext:+ allowPrivilegeEscalation: false+ readOnlyRootFilesystem: true+ runAsNonRoot: true+ runAsUser: 1001+ capabilities:+ drop:+ - ALL++ # Custom health probes+ livenessProbe:+ exec:+ command:+ - /bin/sh+ - -c+ - "pgrep -f docling-worker"+ initialDelaySeconds: 60+ periodSeconds: 30+ timeoutSeconds: 10+ failureThreshold: 3++ readinessProbe:+ exec:+ command:+ - /bin/sh+ - -c+ - "test -f /tmp/worker-ready"+ initialDelaySeconds: 30+ periodSeconds: 10+ timeoutSeconds: 5+ failureThreshold: 3++ # High availability - topology spread+ topologySpreadConstraints:+ - maxSkew: 1+ topologyKey: kubernetes.io/hostname+ whenUnsatisfiable: ScheduleAnyway+ labelSelector:+ matchLabels:+ app.kubernetes.io/component: dw++ # Node placement+ nodeSelector:+ workload-type: compute-intensive++ tolerations:+ - key: "workload-type"+ operator: "Equal"+ value: "compute-intensive"+ effect: "NoSchedule"+ - key: "gpu"+ operator: "Exists"+ effect: "NoSchedule"++ # Labels and annotations+ labels:+ team: "ai-platform"+ cost-center: "engineering"++ annotations:+ description: "Docling background workers"++ podLabels:+ app.kubernetes.io/version: "1.0.0"++ podAnnotations:+ prometheus.io/scrape: "true"+ prometheus.io/port: "9090"++ # Worker concurrency+ concurrency: 4++ # Docling-specific configuration+ config:+ # OCR settings+ ocr:+ enabled: true+ engine: "easyocr"+ languages:+ - "en"+ - "de"+ - "fr"+ - "es"+ forceFullPageOCR: false++ # Table structure recognition+ tableStructure:+ enabled: true+ mode: "accurate"+ minConfidencePercent: 75++ # Performance tuning for workers+ performance:+ batchSize: 20 # Higher batch size for workers+ maxWorkers: 8 # More workers per pod+ timeoutSeconds: 600 # Longer timeout for complex documents+ enableGPU: false++ # Model configuration+ models:+ layoutModel: "microsoft/layoutlmv3-base"+ ocrModel: "easyocr-default"+ tableModel: "microsoft/table-transformer-detection"+ modelCachePath: "/models"++ # Additional custom environment variables+ extraEnv:+ - name: "DOCLING_LOG_LEVEL"+ value: "DEBUG"+ - name: "DOCLING_WORKER_NAME"+ valueFrom:+ fieldRef:+ fieldPath: metadata.name++ # Phase 1: HPA with conservative scaling+ hpa:+ enabled: true+ minReplicas: 3+ maxReplicas: 20+ targetCPUUtilizationPercentage: 80+ targetMemoryUtilizationPercentage: 85++ # Conservative scaling to avoid thrashing+ behavior:+ scaleUp:+ stabilizationWindowSeconds: 120+ policies:+ - type: Percent+ value: 25+ periodSeconds: 120+ - type: Pods+ value: 1+ periodSeconds: 120+ selectPolicy: Min+ scaleDown:+ stabilizationWindowSeconds: 600+ policies:+ - type: Pods+ value: 1+ periodSeconds: 180+ selectPolicy: Min++ # Valkey (Redis-compatible) - Queue backend with security+ valkey:+ image: valkey/valkey:7.2-alpine+ imagePullPolicy: IfNotPresent+ replicas: 1++ # Resource management+ resources:+ requests:+ cpu: "250m"+ memory: "512Mi"+ limits:+ cpu: "1000m"+ memory: "2Gi"++ # Container-level security context+ securityContext:+ allowPrivilegeEscalation: false+ readOnlyRootFilesystem: false # Valkey needs to write to /data+ runAsNonRoot: true+ runAsUser: 999+ capabilities:+ drop:+ - ALL++ # High availability - topology spread+ topologySpreadConstraints:+ - maxSkew: 1+ topologyKey: kubernetes.io/hostname+ whenUnsatisfiable: DoNotSchedule+ labelSelector:+ matchLabels:+ app.kubernetes.io/component: valkey++ # Storage configuration+ storage:+ size: "10Gi"+ storageClassName: "fast-ssd"+ accessModes:+ - ReadWriteOnce++ # Node placement+ nodeSelector:+ storage-type: ssd++ tolerations:+ - key: "storage-type"+ operator: "Equal"+ value: "ssd"+ effect: "NoSchedule"++ # Labels and annotations+ labels:+ team: "ai-platform"+ cost-center: "engineering"++ annotations:+ description: "Valkey queue backend"++ podLabels:+ app.kubernetes.io/version: "7.2"++ podAnnotations:+ prometheus.io/scrape: "true"+ prometheus.io/port: "6379"++ # Authentication+ password: "change-me-in-production"+diff --git a/kubernetes/operator/config/samples/kind-cluster-openrag-cr.yaml b/kubernetes/operator/config/samples/kind-cluster-openrag-cr.yamlindex 3ca0467e3..9d50a94b5 100644--- a/kubernetes/operator/config/samples/kind-cluster-openrag-cr.yaml+++ b/kubernetes/operator/config/samples/kind-cluster-openrag-cr.yaml@@ -56,7 +56,42 @@ spec:# indexName: documents# credentialsSecret: opensearch-credentials # keys: username, password- # External Docling — optional document conversion+ # Operator-managed Docling components — optional document processing+ # doclingComponents:+ # enabled: true+ # serve:+ # image: langflowai/docling-serve:latest+ # replicas: 1+ # resources:+ # requests:+ # cpu: "500m"+ # memory: "1Gi"+ # limits:+ # cpu: "1"+ # memory: "2Gi"+ # storage:+ # enabled: true+ # size: "10Gi"+ # hpa:+ # enabled: false+ # worker:+ # image: langflowai/docling-worker:latest+ # replicas: 1+ # resources:+ # requests:+ # cpu: "500m"+ # memory: "1Gi"+ # limits:+ # cpu: "1"+ # memory: "2Gi"+ # storage:+ # enabled: true+ # size: "10Gi"+ # queueUrl: "redis://redis-master.redis.svc.cluster.local:6379/0"+ # hpa:+ # enabled: false++ # External Docling — optional external document conversion service (legacy)# docling:# host: docling-serve.docling.svc.cluster.local# port: 5001diff --git a/kubernetes/operator/config/samples/openrag_v1alpha1_openrag.yaml b/kubernetes/operator/config/samples/openrag_v1alpha1_openrag.yamlindex 3b497dbb6..9835dd4c5 100644--- a/kubernetes/operator/config/samples/openrag_v1alpha1_openrag.yaml+++ b/kubernetes/operator/config/samples/openrag_v1alpha1_openrag.yaml@@ -75,7 +75,87 @@ spec:# indexName: documents# credentialsSecret: opensearch-credentials # keys: username, password- # External Docling — optional document conversion+ # Operator-managed Docling components — optional document processing+ # doclingComponents:+ # enabled: true+ # serve:+ # image: langflowai/docling-serve:latest+ # replicas: 2+ # port: 5001+ # resources:+ # requests:+ # cpu: "1"+ # memory: "2Gi"+ # limits:+ # cpu: "2"+ # memory: "4Gi"+ # storage:+ # enabled: true+ # size: "20Gi"+ # storageClassName: "fast-ssd"+ # nodeSelector:+ # workload: "cpu-intensive"+ # tolerations:+ # - key: "docling"+ # operator: "Equal"+ # value: "true"+ # effect: "NoSchedule"+ # labels:+ # team: "ml-ops"+ # annotations:+ # prometheus.io/scrape: "true"+ # prometheus.io/port: "5001"+ # podLabels:+ # app.kubernetes.io/component: "document-processor"+ # podAnnotations:+ # sidecar.istio.io/inject: "true"+ # hpa:+ # enabled: true+ # minReplicas: 1+ # maxReplicas: 5+ # targetCPUUtilizationPercentage: 70+ # targetMemoryUtilizationPercentage: 80+ # worker:+ # image: langflowai/docling-worker:latest+ # replicas: 3+ # resources:+ # requests:+ # cpu: "2"+ # memory: "4Gi"+ # limits:+ # cpu: "4"+ # memory: "8Gi"+ # storage:+ # enabled: true+ # size: "50Gi"+ # storageClassName: "standard"+ # queueUrl: "redis://redis-master.redis.svc.cluster.local:6379/0"+ # # Or use secret:+ # # queueUrlSecret:+ # # name: docling-queue-creds+ # # key: QUEUE_URL+ # nodeSelector:+ # workload: "cpu-intensive"+ # tolerations:+ # - key: "docling"+ # operator: "Equal"+ # value: "true"+ # effect: "NoSchedule"+ # labels:+ # team: "ml-ops"+ # annotations:+ # prometheus.io/scrape: "true"+ # podLabels:+ # app.kubernetes.io/component: "document-worker"+ # hpa:+ # enabled: true+ # minReplicas: 2+ # maxReplicas: 10+ # targetCPUUtilizationPercentage: 70+ # targetMemoryUtilizationPercentage: 80++ # External Docling — optional external document conversion service (legacy)+ # Use doclingComponents above to deploy docling within the operator# docling:# host: docling-serve.docling.svc.cluster.local# port: 5001diff --git a/kubernetes/operator/internal/controller/openrag_controller.go b/kubernetes/operator/internal/controller/openrag_controller.goindex fd16cfffd..c1a985991 100644--- a/kubernetes/operator/internal/controller/openrag_controller.go+++ b/kubernetes/operator/internal/controller/openrag_controller.go@@ -10,6 +10,7 @@ import ("time"appsv1 "k8s.io/api/apps/v1"+ autoscalingv2 "k8s.io/api/autoscaling/v2"corev1 "k8s.io/api/core/v1"networkingv1 "k8s.io/api/networking/v1""k8s.io/apimachinery/pkg/api/errors"@@ -52,6 +53,7 @@ func NewOpenRAGReconciler(c client.Client, s *runtime.Scheme) *OpenRAGReconciler// +kubebuilder:rbac:groups=openr.ag,resources=openrags/status,verbs=get;update;patch// +kubebuilder:rbac:groups=openr.ag,resources=openrags/finalizers,verbs=update// +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;create;update;patch;delete+// +kubebuilder:rbac:groups=autoscaling,resources=horizontalpodautoscalers,verbs=get;list;watch;create;update;patch;delete// +kubebuilder:rbac:groups=core,resources=namespaces,verbs=get;list;watch;create;delete// +kubebuilder:rbac:groups=core,resources=services,verbs=get;list;watch;create;update;patch;delete// +kubebuilder:rbac:groups=core,resources=serviceaccounts,verbs=get;list;watch;create;update;patch;delete@@ -109,6 +111,9 @@ func (r *OpenRAGReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctif err := r.reconcileDeployments(ctx, instance, targetNS); err != nil {return ctrl.Result{}, fmt.Errorf("deployments: %w", err)}+ if err := r.reconcileDoclingComponents(ctx, instance, targetNS); err != nil {+ return ctrl.Result{}, fmt.Errorf("docling components: %w", err)+ }if instance.Spec.NetworkPolicy.Enabled {if err := r.reconcileNetworkPolicy(ctx, instance, targetNS); err != nil {return ctrl.Result{}, fmt.Errorf("network policy: %w", err)@@ -465,7 +470,16 @@ func (r *OpenRAGReconciler) buildBackendEnv(ctx context.Context, o *openragv1alp}// Docling configuration from CR spec- if d := o.Spec.Docling; d != nil {+ // Priority: DoclingComponents (operator-managed) > Docling (external)+ if dc := o.Spec.DoclingComponents; dc != nil && dc.Enabled && dc.Serve != nil {+ // Use operator-managed docling-serve+ port := int32(5001)+ if dc.Serve.Port > 0 {+ port = dc.Serve.Port+ }+ envVars["DOCLING_SERVE_URL"] = fmt.Sprintf("http://%s:%d", getServiceName(o, "ds"), port)+ } else if d := o.Spec.Docling; d != nil {+ // Use external docling servicescheme := d.Schemeif scheme == "" {scheme = "http"@@ -575,6 +589,12 @@ func (r *OpenRAGReconciler) reconcilePVCs(ctx context.Context, o *openragv1alphaif d.storage == nil || !d.storage.Enabled || d.storage.ExistingClaim != "" {continue}+ // Default to ReadWriteOnce if not specified+ accessModes := d.storage.AccessModes+ if len(accessModes) == 0 {+ accessModes = []corev1.PersistentVolumeAccessMode{corev1.ReadWriteOnce}+ }+pvc := &corev1.PersistentVolumeClaim{ObjectMeta: metav1.ObjectMeta{Name: d.name,@@ -582,7 +602,7 @@ func (r *OpenRAGReconciler) reconcilePVCs(ctx context.Context, o *openragv1alphaLabels: map[string]string{"app.kubernetes.io/managed-by": "openrag-operator"},},Spec: corev1.PersistentVolumeClaimSpec{- AccessModes: []corev1.PersistentVolumeAccessMode{corev1.ReadWriteOnce},+ AccessModes: accessModes,StorageClassName: d.storage.StorageClassName,Resources: corev1.VolumeResourceRequirements{Requests: corev1.ResourceList{@@ -930,6 +950,1085 @@ func (r *OpenRAGReconciler) langflowDeployment(o *openragv1alpha1.OpenRAG, targe}}+// reconcileDoclingComponents orchestrates docling deployment and HPA.+func (r *OpenRAGReconciler) reconcileDoclingComponents(ctx context.Context, o *openragv1alpha1.OpenRAG, targetNS string) error {+ if o.Spec.DoclingComponents == nil || !o.Spec.DoclingComponents.Enabled {+ return nil+ }++ dc := o.Spec.DoclingComponents++ // Deploy Valkey first if enabled+ if dc.Valkey != nil {+ if err := r.reconcileValkey(ctx, o, targetNS); err != nil {+ return fmt.Errorf("valkey: %w", err)+ }+ }++ // Reconcile service accounts for docling components+ if dc.Serve != nil && shouldCreateServiceAccount(o, "ds") {+ sa := &corev1.ServiceAccount{+ ObjectMeta: metav1.ObjectMeta{+ Name: getServiceAccountName(o, "ds"),+ Namespace: targetNS,+ Labels: componentLabels(o.Name, "ds"),+ },+ }+ if err := r.setOwnerOrLabel(o, sa, targetNS); err != nil {+ return err+ }+ if err := r.createOrUpdate(ctx, sa); err != nil {+ return fmt.Errorf("docling-serve serviceaccount: %w", err)+ }+ }++ if dc.Worker != nil && shouldCreateServiceAccount(o, "dw") {+ sa := &corev1.ServiceAccount{+ ObjectMeta: metav1.ObjectMeta{+ Name: getServiceAccountName(o, "dw"),+ Namespace: targetNS,+ Labels: componentLabels(o.Name, "dw"),+ },+ }+ if err := r.setOwnerOrLabel(o, sa, targetNS); err != nil {+ return err+ }+ if err := r.createOrUpdate(ctx, sa); err != nil {+ return fmt.Errorf("docling-worker serviceaccount: %w", err)+ }+ }++ // Reconcile PVCs for docling components+ if dc.Serve != nil && dc.Serve.Storage != nil && dc.Serve.Storage.Enabled {+ pvcName := resourceName("ds-data")+ if dc.Serve.Storage.ExistingClaim == "" {+ // Default to ReadWriteOnce if not specified+ accessModes := dc.Serve.Storage.AccessModes+ if len(accessModes) == 0 {+ accessModes = []corev1.PersistentVolumeAccessMode{corev1.ReadWriteOnce}+ }++ pvc := &corev1.PersistentVolumeClaim{+ ObjectMeta: metav1.ObjectMeta{+ Name: pvcName,+ Namespace: targetNS,+ Labels: componentLabels(o.Name, "ds"),+ },+ Spec: corev1.PersistentVolumeClaimSpec{+ AccessModes: accessModes,+ Resources: corev1.VolumeResourceRequirements{+ Requests: corev1.ResourceList{+ corev1.ResourceStorage: dc.Serve.Storage.Size,+ },+ },+ StorageClassName: dc.Serve.Storage.StorageClassName,+ },+ }+ if err := r.setOwnerOrLabel(o, pvc, targetNS); err != nil {+ return err+ }+ if err := r.createOrUpdate(ctx, pvc); err != nil {+ return fmt.Errorf("docling-serve pvc: %w", err)+ }+ }+ }++ if dc.Worker != nil && dc.Worker.Storage != nil && dc.Worker.Storage.Enabled {+ pvcName := resourceName("dw-data")+ if dc.Worker.Storage.ExistingClaim == "" {+ // Default to ReadWriteOnce if not specified+ accessModes := dc.Worker.Storage.AccessModes+ if len(accessModes) == 0 {+ accessModes = []corev1.PersistentVolumeAccessMode{corev1.ReadWriteOnce}+ }++ pvc := &corev1.PersistentVolumeClaim{+ ObjectMeta: metav1.ObjectMeta{+ Name: pvcName,+ Namespace: targetNS,+ Labels: componentLabels(o.Name, "dw"),+ },+ Spec: corev1.PersistentVolumeClaimSpec{+ AccessModes: accessModes,+ Resources: corev1.VolumeResourceRequirements{+ Requests: corev1.ResourceList{+ corev1.ResourceStorage: dc.Worker.Storage.Size,+ },+ },+ StorageClassName: dc.Worker.Storage.StorageClassName,+ },+ }+ if err := r.setOwnerOrLabel(o, pvc, targetNS); err != nil {+ return err+ }+ if err := r.createOrUpdate(ctx, pvc); err != nil {+ return fmt.Errorf("docling-worker pvc: %w", err)+ }+ }+ }++ // Reconcile service for docling-serve+ if dc.Serve != nil && shouldCreateService(o, "ds") {+ port := int32(5001)+ if dc.Serve.Port > 0 {+ port = dc.Serve.Port+ }++ // Default to ClusterIP if not specified+ serviceType := dc.Serve.ServiceType+ if serviceType == "" {+ serviceType = corev1.ServiceTypeClusterIP+ }++ svc := &corev1.Service{+ ObjectMeta: metav1.ObjectMeta{+ Name: getServiceName(o, "ds"),+ Namespace: targetNS,+ Labels: componentLabels(o.Name, "ds"),+ Annotations: dc.Serve.ServiceAnnotations,+ },+ Spec: corev1.ServiceSpec{+ Type: serviceType,+ Selector: componentLabels(o.Name, "ds"),+ Ports: []corev1.ServicePort{+ {Name: "http", Port: port, TargetPort: intstr.FromInt32(port), Protocol: corev1.ProtocolTCP},+ },+ },+ }+ if err := r.setOwnerOrLabel(o, svc, targetNS); err != nil {+ return err+ }+ if err := r.createOrUpdate(ctx, svc); err != nil {+ return fmt.Errorf("docling-serve service: %w", err)+ }+ }++ // Reconcile deployments+ if dc.Serve != nil {+ deploy := r.doclingServeDeployment(o, targetNS)+ if err := r.setOwnerOrLabel(o, deploy, targetNS); err != nil {+ return err+ }+ if err := r.createOrUpdate(ctx, deploy); err != nil {+ return fmt.Errorf("docling-serve deployment: %w", err)+ }+ }++ if dc.Worker != nil {+ deploy := r.doclingWorkerDeployment(o, targetNS)+ if err := r.setOwnerOrLabel(o, deploy, targetNS); err != nil {+ return err+ }+ if err := r.createOrUpdate(ctx, deploy); err != nil {+ return fmt.Errorf("docling-worker deployment: %w", err)+ }+ }++ // Reconcile HPA for docling-serve+ if dc.Serve != nil && dc.Serve.HPA != nil && dc.Serve.HPA.Enabled {+ hpa := r.doclingServeHPA(o, targetNS)+ if err := r.setOwnerOrLabel(o, hpa, targetNS); err != nil {+ return err+ }+ if err := r.createOrUpdate(ctx, hpa); err != nil {+ return fmt.Errorf("docling-serve hpa: %w", err)+ }+ } else {+ // Delete HPA if it exists but is now disabled+ hpa := &autoscalingv2.HorizontalPodAutoscaler{+ ObjectMeta: metav1.ObjectMeta{+ Name: resourceName("ds-hpa"),+ Namespace: targetNS,+ },+ }+ if err := r.deleteIfExists(ctx, hpa); err != nil {+ return fmt.Errorf("delete docling-serve hpa: %w", err)+ }+ }++ // Reconcile HPA for docling-worker+ if dc.Worker != nil && dc.Worker.HPA != nil && dc.Worker.HPA.Enabled {+ hpa := r.doclingWorkerHPA(o, targetNS)+ if err := r.setOwnerOrLabel(o, hpa, targetNS); err != nil {+ return err+ }+ if err := r.createOrUpdate(ctx, hpa); err != nil {+ return fmt.Errorf("docling-worker hpa: %w", err)+ }+ } else {+ // Delete HPA if it exists but is now disabled+ hpa := &autoscalingv2.HorizontalPodAutoscaler{+ ObjectMeta: metav1.ObjectMeta{+ Name: resourceName("dw-hpa"),+ Namespace: targetNS,+ },+ }+ if err := r.deleteIfExists(ctx, hpa); err != nil {+ return fmt.Errorf("delete docling-worker hpa: %w", err)+ }+ }++ return nil+}++// buildDoclingConfigEnv converts DoclingConfig to environment variables+func buildDoclingConfigEnv(config *openragv1alpha1.DoclingConfig) []corev1.EnvVar {+ if config == nil {+ return nil+ }++ envVars := []corev1.EnvVar{}++ // OCR configuration+ if config.OCR != nil {+ if config.OCR.Enabled != nil {+ envVars = append(envVars, corev1.EnvVar{+ Name: "DOCLING_OCR_ENABLED",+ Value: fmt.Sprintf("%t", *config.OCR.Enabled),+ })+ }+ if config.OCR.Engine != "" {+ envVars = append(envVars, corev1.EnvVar{+ Name: "DOCLING_OCR_ENGINE",+ Value: config.OCR.Engine,+ })+ }+ if len(config.OCR.Languages) > 0 {+ envVars = append(envVars, corev1.EnvVar{+ Name: "DOCLING_OCR_LANGUAGES",+ Value: strings.Join(config.OCR.Languages, ","),+ })+ }+ if config.OCR.ForceFullPageOCR != nil {+ envVars = append(envVars, corev1.EnvVar{+ Name: "DOCLING_OCR_FORCE_FULL_PAGE",+ Value: fmt.Sprintf("%t", *config.OCR.ForceFullPageOCR),+ })+ }+ }++ // Table structure configuration+ if config.TableStructure != nil {+ if config.TableStructure.Enabled != nil {+ envVars = append(envVars, corev1.EnvVar{+ Name: "DOCLING_TABLE_STRUCTURE_ENABLED",+ Value: fmt.Sprintf("%t", *config.TableStructure.Enabled),+ })+ }+ if config.TableStructure.Mode != "" {+ envVars = append(envVars, corev1.EnvVar{+ Name: "DOCLING_TABLE_MODE",+ Value: config.TableStructure.Mode,+ })+ }+ if config.TableStructure.MinConfidencePercent != nil {+ envVars = append(envVars, corev1.EnvVar{+ Name: "DOCLING_TABLE_MIN_CONFIDENCE",+ Value: fmt.Sprintf("%d", *config.TableStructure.MinConfidencePercent),+ })+ }+ }++ // Performance configuration+ if config.Performance != nil {+ if config.Performance.BatchSize != nil {+ envVars = append(envVars, corev1.EnvVar{+ Name: "DOCLING_BATCH_SIZE",+ Value: fmt.Sprintf("%d", *config.Performance.BatchSize),+ })+ }+ if config.Performance.MaxWorkers != nil {+ envVars = append(envVars, corev1.EnvVar{+ Name: "DOCLING_MAX_WORKERS",+ Value: fmt.Sprintf("%d", *config.Performance.MaxWorkers),+ })+ }+ if config.Performance.TimeoutSeconds != nil {+ envVars = append(envVars, corev1.EnvVar{+ Name: "DOCLING_TIMEOUT",+ Value: fmt.Sprintf("%d", *config.Performance.TimeoutSeconds),+ })+ }+ if config.Performance.EnableGPU != nil {+ envVars = append(envVars, corev1.EnvVar{+ Name: "DOCLING_ENABLE_GPU",+ Value: fmt.Sprintf("%t", *config.Performance.EnableGPU),+ })+ }+ }++ // Models configuration+ if config.Models != nil {+ if config.Models.LayoutModel != "" {+ envVars = append(envVars, corev1.EnvVar{+ Name: "DOCLING_LAYOUT_MODEL",+ Value: config.Models.LayoutModel,+ })+ }+ if config.Models.OCRModel != "" {+ envVars = append(envVars, corev1.EnvVar{+ Name: "DOCLING_OCR_MODEL",+ Value: config.Models.OCRModel,+ })+ }+ if config.Models.TableModel != "" {+ envVars = append(envVars, corev1.EnvVar{+ Name: "DOCLING_TABLE_MODEL",+ Value: config.Models.TableModel,+ })+ }+ if config.Models.ModelCachePath != "" {+ envVars = append(envVars, corev1.EnvVar{+ Name: "DOCLING_MODEL_CACHE_PATH",+ Value: config.Models.ModelCachePath,+ })+ }+ }++ // Add extra environment variables+ envVars = append(envVars, config.ExtraEnv...)++ return envVars+}++func (r *OpenRAGReconciler) doclingServeDeployment(o *openragv1alpha1.OpenRAG, targetNS string) *appsv1.Deployment {+ spec := o.Spec.DoclingComponents.Serve+ replicas := replicasOrDefault(spec.Replicas)+ port := int32(5001)+ if spec.Port > 0 {+ port = spec.Port+ }++ volumes := []corev1.Volume{+ {+ Name: "docling-serve-temp",+ VolumeSource: corev1.VolumeSource{EmptyDir: &corev1.EmptyDirVolumeSource{}},+ },+ }+ mounts := []corev1.VolumeMount{+ {Name: "docling-serve-temp", MountPath: "/tmp"},+ }++ if spec.Storage != nil && spec.Storage.Enabled {+ pvcName := resourceName("ds-data")+ if spec.Storage.ExistingClaim != "" {+ pvcName = spec.Storage.ExistingClaim+ }+ volumes = append(volumes, corev1.Volume{+ Name: "docling-serve-data",+ VolumeSource: corev1.VolumeSource{+ PersistentVolumeClaim: &corev1.PersistentVolumeClaimVolumeSource{ClaimName: pvcName},+ },+ })+ mounts = append(mounts, corev1.VolumeMount{Name: "docling-serve-data", MountPath: "/app/cache"})+ }++ envVars := []corev1.EnvVar{+ {Name: "DOCLING_PORT", Value: fmt.Sprintf("%d", port)},+ {Name: "DOCLING_CACHE_DIR", Value: "/app/cache"},+ }+ // Add docling configuration environment variables+ envVars = append(envVars, buildDoclingConfigEnv(spec.Config)...)+ // Add user-specified environment variables+ envVars = append(envVars, spec.Env...)++ baseLabels := componentLabels(o.Name, "ds")+ deploymentLabels := mergeDeploymentLabels(baseLabels, spec.Labels)+ deploymentAnnotations := mergeDeploymentAnnotations(spec.Annotations)+ podLabels := mergePodLabels(baseLabels, spec.PodLabels)+ podAnnotations := mergePodAnnotations(spec.PodAnnotations)++ deploymentSpec := appsv1.DeploymentSpec{+ Selector: &metav1.LabelSelector{MatchLabels: baseLabels},+ Strategy: appsv1.DeploymentStrategy{Type: appsv1.RollingUpdateDeploymentStrategyType},+ Template: corev1.PodTemplateSpec{+ ObjectMeta: metav1.ObjectMeta{+ Labels: podLabels,+ Annotations: podAnnotations,+ },+ Spec: corev1.PodSpec{+ ServiceAccountName: getServiceAccountName(o, "ds"),+ ImagePullSecrets: mergeImagePullSecrets(o.Spec.ImagePullSecrets, spec.ImagePullSecrets),+ SecurityContext: spec.PodSecurityContext,+ NodeSelector: spec.NodeSelector,+ Tolerations: spec.Tolerations,+ Affinity: spec.Affinity,+ TopologySpreadConstraints: spec.TopologySpreadConstraints,+ Volumes: volumes,+ Containers: []corev1.Container{+ {+ Name: "docling-serve",+ Image: spec.Image,+ ImagePullPolicy: spec.ImagePullPolicy,+ Command: spec.Command,+ Args: spec.Args,+ Ports: []corev1.ContainerPort{{Name: "http", ContainerPort: port}},+ Env: envVars,+ Resources: spec.Resources,+ VolumeMounts: mounts,+ SecurityContext: spec.SecurityContext,+ LivenessProbe: probeOrDefault(spec.LivenessProbe, httpProbe("/health", port, 30, 10)),+ ReadinessProbe: probeOrDefault(spec.ReadinessProbe, httpProbe("/health", port, 10, 5)),+ },+ },+ },+ },+ }++ // Only set Replicas if HPA is not enabled+ // When HPA is active, it controls the replica count+ if spec.HPA == nil || !spec.HPA.Enabled {+ deploymentSpec.Replicas = &replicas+ }++ return &appsv1.Deployment{+ ObjectMeta: metav1.ObjectMeta{+ Name: resourceName("ds"),+ Namespace: targetNS,+ Labels: deploymentLabels,+ Annotations: deploymentAnnotations,+ },+ Spec: deploymentSpec,+ }+}++func (r *OpenRAGReconciler) doclingWorkerDeployment(o *openragv1alpha1.OpenRAG, targetNS string) *appsv1.Deployment {+ spec := o.Spec.DoclingComponents.Worker+ replicas := replicasOrDefault(spec.Replicas)++ volumes := []corev1.Volume{+ {+ Name: "docling-worker-temp",+ VolumeSource: corev1.VolumeSource{EmptyDir: &corev1.EmptyDirVolumeSource{}},+ },+ }+ mounts := []corev1.VolumeMount{+ {Name: "docling-worker-temp", MountPath: "/tmp"},+ }++ if spec.Storage != nil && spec.Storage.Enabled {+ pvcName := resourceName("dw-data")+ if spec.Storage.ExistingClaim != "" {+ pvcName = spec.Storage.ExistingClaim+ }+ volumes = append(volumes, corev1.Volume{+ Name: "docling-worker-data",+ VolumeSource: corev1.VolumeSource{+ PersistentVolumeClaim: &corev1.PersistentVolumeClaimVolumeSource{ClaimName: pvcName},+ },+ })+ mounts = append(mounts, corev1.VolumeMount{Name: "docling-worker-data", MountPath: "/app/workspace"})+ }++ // Build environment variables+ envVars := []corev1.EnvVar{+ {Name: "DOCLING_WORKSPACE_DIR", Value: "/app/workspace"},+ }++ // Add DOCLING_SERVE_URL if serve component is enabled+ if o.Spec.DoclingComponents.Serve != nil {+ port := int32(5001)+ if o.Spec.DoclingComponents.Serve.Port > 0 {+ port = o.Spec.DoclingComponents.Serve.Port+ }+ envVars = append(envVars, corev1.EnvVar{+ Name: "DOCLING_SERVE_URL",+ Value: fmt.Sprintf("http://%s:%d", getServiceName(o, "ds"), port),+ })+ }++ // Add queue URL - Priority: Valkey > spec.QueueURL > spec.QueueURLSecret+ if o.Spec.DoclingComponents.Valkey != nil {+ // Use operator-managed Valkey+ valkeySpec := o.Spec.DoclingComponents.Valkey+ port := int32(6379)+ if valkeySpec.Port > 0 {+ port = valkeySpec.Port+ }+ database := int32(0)+ if valkeySpec.Database > 0 {+ database = valkeySpec.Database+ }++ serviceName := getServiceName(o, "valkey")+ // If password is provided directly (not via secret), include it in URL+ if valkeySpec.Password != "" {+ envVars = append(envVars, corev1.EnvVar{+ Name: "QUEUE_URL",+ Value: fmt.Sprintf("redis://:%s@%s.%s.svc.cluster.local:%d/%d", valkeySpec.Password, serviceName, targetNS, port, database),+ })+ } else if valkeySpec.PasswordSecret != nil {+ // Use secret reference for password+ envVars = append(envVars, corev1.EnvVar{+ Name: "VALKEY_PASSWORD",+ ValueFrom: &corev1.EnvVarSource{+ SecretKeyRef: valkeySpec.PasswordSecret,+ },+ })+ // Build URL with password placeholder - app must construct final URL+ envVars = append(envVars, corev1.EnvVar{+ Name: "QUEUE_URL",+ Value: fmt.Sprintf("redis://:$(VALKEY_PASSWORD)@%s.%s.svc.cluster.local:%d/%d", serviceName, targetNS, port, database),+ })+ } else {+ // No password+ envVars = append(envVars, corev1.EnvVar{+ Name: "QUEUE_URL",+ Value: fmt.Sprintf("redis://%s.%s.svc.cluster.local:%d/%d", serviceName, targetNS, port, database),+ })+ }+ } else if spec.QueueURL != "" {+ // Use user-provided queue URL+ envVars = append(envVars, corev1.EnvVar{+ Name: "QUEUE_URL",+ Value: spec.QueueURL,+ })+ } else if spec.QueueURLSecret != nil {+ // Use secret reference+ envVars = append(envVars, corev1.EnvVar{+ Name: "QUEUE_URL",+ ValueFrom: &corev1.EnvVarSource{+ SecretKeyRef: spec.QueueURLSecret,+ },+ })+ }++ // Add concurrency setting+ if spec.Concurrency != nil {+ envVars = append(envVars, corev1.EnvVar{+ Name: "DOCLING_WORKER_CONCURRENCY",+ Value: fmt.Sprintf("%d", *spec.Concurrency),+ })+ }++ // Add docling configuration environment variables+ envVars = append(envVars, buildDoclingConfigEnv(spec.Config)...)++ // Append additional env vars from spec+ envVars = append(envVars, spec.Env...)++ baseLabels := componentLabels(o.Name, "dw")+ deploymentLabels := mergeDeploymentLabels(baseLabels, spec.Labels)+ deploymentAnnotations := mergeDeploymentAnnotations(spec.Annotations)+ podLabels := mergePodLabels(baseLabels, spec.PodLabels)+ podAnnotations := mergePodAnnotations(spec.PodAnnotations)++ deploymentSpec := appsv1.DeploymentSpec{+ Selector: &metav1.LabelSelector{MatchLabels: baseLabels},+ Strategy: appsv1.DeploymentStrategy{Type: appsv1.RollingUpdateDeploymentStrategyType},+ Template: corev1.PodTemplateSpec{+ ObjectMeta: metav1.ObjectMeta{+ Labels: podLabels,+ Annotations: podAnnotations,+ },+ Spec: corev1.PodSpec{+ ServiceAccountName: getServiceAccountName(o, "dw"),+ ImagePullSecrets: mergeImagePullSecrets(o.Spec.ImagePullSecrets, spec.ImagePullSecrets),+ SecurityContext: spec.PodSecurityContext,+ NodeSelector: spec.NodeSelector,+ Tolerations: spec.Tolerations,+ Affinity: spec.Affinity,+ TopologySpreadConstraints: spec.TopologySpreadConstraints,+ Volumes: volumes,+ Containers: []corev1.Container{+ {+ Name: "docling-worker",+ Image: spec.Image,+ ImagePullPolicy: spec.ImagePullPolicy,+ Command: spec.Command,+ Args: spec.Args,+ Env: envVars,+ Resources: spec.Resources,+ VolumeMounts: mounts,+ SecurityContext: spec.SecurityContext,+ LivenessProbe: spec.LivenessProbe,+ ReadinessProbe: spec.ReadinessProbe,+ },+ },+ },+ },+ }++ // Only set Replicas if HPA is not enabled+ // When HPA is active, it controls the replica count+ if spec.HPA == nil || !spec.HPA.Enabled {+ deploymentSpec.Replicas = &replicas+ }++ return &appsv1.Deployment{+ ObjectMeta: metav1.ObjectMeta{+ Name: resourceName("dw"),+ Namespace: targetNS,+ Labels: deploymentLabels,+ Annotations: deploymentAnnotations,+ },+ Spec: deploymentSpec,+ }+}++func (r *OpenRAGReconciler) doclingServeHPA(o *openragv1alpha1.OpenRAG, targetNS string) *autoscalingv2.HorizontalPodAutoscaler {+ hpaSpec := o.Spec.DoclingComponents.Serve.HPA+ minReplicas := ptr.To(int32(1))+ if hpaSpec.MinReplicas != nil {+ minReplicas = hpaSpec.MinReplicas+ }++ metrics := []autoscalingv2.MetricSpec{}+ if hpaSpec.TargetCPUUtilizationPercentage != nil {+ metrics = append(metrics, autoscalingv2.MetricSpec{+ Type: autoscalingv2.ResourceMetricSourceType,+ Resource: &autoscalingv2.ResourceMetricSource{+ Name: corev1.ResourceCPU,+ Target: autoscalingv2.MetricTarget{+ Type: autoscalingv2.UtilizationMetricType,+ AverageUtilization: hpaSpec.TargetCPUUtilizationPercentage,+ },+ },+ })+ }+ if hpaSpec.TargetMemoryUtilizationPercentage != nil {+ metrics = append(metrics, autoscalingv2.MetricSpec{+ Type: autoscalingv2.ResourceMetricSourceType,+ Resource: &autoscalingv2.ResourceMetricSource{+ Name: corev1.ResourceMemory,+ Target: autoscalingv2.MetricTarget{+ Type: autoscalingv2.UtilizationMetricType,+ AverageUtilization: hpaSpec.TargetMemoryUtilizationPercentage,+ },+ },+ })+ }++ baseLabels := componentLabels(o.Name, "ds")+ return &autoscalingv2.HorizontalPodAutoscaler{+ ObjectMeta: metav1.ObjectMeta{+ Name: resourceName("ds-hpa"),+ Namespace: targetNS,+ Labels: baseLabels,+ },+ Spec: autoscalingv2.HorizontalPodAutoscalerSpec{+ ScaleTargetRef: autoscalingv2.CrossVersionObjectReference{+ APIVersion: "apps/v1",+ Kind: "Deployment",+ Name: resourceName("ds"),+ },+ MinReplicas: minReplicas,+ MaxReplicas: hpaSpec.MaxReplicas,+ Metrics: metrics,+ Behavior: hpaSpec.Behavior,+ },+ }+}++func (r *OpenRAGReconciler) doclingWorkerHPA(o *openragv1alpha1.OpenRAG, targetNS string) *autoscalingv2.HorizontalPodAutoscaler {+ hpaSpec := o.Spec.DoclingComponents.Worker.HPA+ minReplicas := ptr.To(int32(1))+ if hpaSpec.MinReplicas != nil {+ minReplicas = hpaSpec.MinReplicas+ }++ metrics := []autoscalingv2.MetricSpec{}+ if hpaSpec.TargetCPUUtilizationPercentage != nil {+ metrics = append(metrics, autoscalingv2.MetricSpec{+ Type: autoscalingv2.ResourceMetricSourceType,+ Resource: &autoscalingv2.ResourceMetricSource{+ Name: corev1.ResourceCPU,+ Target: autoscalingv2.MetricTarget{+ Type: autoscalingv2.UtilizationMetricType,+ AverageUtilization: hpaSpec.TargetCPUUtilizationPercentage,+ },+ },+ })+ }+ if hpaSpec.TargetMemoryUtilizationPercentage != nil {+ metrics = append(metrics, autoscalingv2.MetricSpec{+ Type: autoscalingv2.ResourceMetricSourceType,+ Resource: &autoscalingv2.ResourceMetricSource{+ Name: corev1.ResourceMemory,+ Target: autoscalingv2.MetricTarget{+ Type: autoscalingv2.UtilizationMetricType,+ AverageUtilization: hpaSpec.TargetMemoryUtilizationPercentage,+ },+ },+ })+ }++ baseLabels := componentLabels(o.Name, "dw")+ return &autoscalingv2.HorizontalPodAutoscaler{+ ObjectMeta: metav1.ObjectMeta{+ Name: resourceName("dw-hpa"),+ Namespace: targetNS,+ Labels: baseLabels,+ },+ Spec: autoscalingv2.HorizontalPodAutoscalerSpec{+ ScaleTargetRef: autoscalingv2.CrossVersionObjectReference{+ APIVersion: "apps/v1",+ Kind: "Deployment",+ Name: resourceName("dw"),+ },+ MinReplicas: minReplicas,+ MaxReplicas: hpaSpec.MaxReplicas,+ Metrics: metrics,+ Behavior: hpaSpec.Behavior,+ },+ }+}++// reconcileValkey deploys Valkey StatefulSet, Service, ConfigMap, and optional Secret.+func (r *OpenRAGReconciler) reconcileValkey(ctx context.Context, o *openragv1alpha1.OpenRAG, targetNS string) error {+ valkeySpec := o.Spec.DoclingComponents.Valkey++ // Reconcile ServiceAccount+ if shouldCreateServiceAccount(o, "valkey") {+ sa := &corev1.ServiceAccount{+ ObjectMeta: metav1.ObjectMeta{+ Name: getServiceAccountName(o, "valkey"),+ Namespace: targetNS,+ Labels: componentLabels(o.Name, "valkey"),+ },+ }+ if err := r.setOwnerOrLabel(o, sa, targetNS); err != nil {+ return err+ }+ if err := r.createOrUpdate(ctx, sa); err != nil {+ return fmt.Errorf("valkey serviceaccount: %w", err)+ }+ }++ // Reconcile ConfigMap+ cm := r.valkeyConfigMap(o, targetNS)+ if err := r.setOwnerOrLabel(o, cm, targetNS); err != nil {+ return err+ }+ if err := r.createOrUpdate(ctx, cm); err != nil {+ return fmt.Errorf("valkey configmap: %w", err)+ }++ // Reconcile Secret (if password is configured)+ if valkeySpec.Password != "" || valkeySpec.PasswordSecret != nil {+ secret, err := r.valkeySecret(ctx, o, targetNS)+ if err != nil {+ return fmt.Errorf("valkey secret: %w", err)+ }+ if err := r.setOwnerOrLabel(o, secret, targetNS); err != nil {+ return err+ }+ if err := r.createOrUpdate(ctx, secret); err != nil {+ return fmt.Errorf("valkey secret create: %w", err)+ }+ }++ // Reconcile headless Service (for StatefulSet)+ headlessSvc := r.valkeyHeadlessService(o, targetNS)+ if err := r.setOwnerOrLabel(o, headlessSvc, targetNS); err != nil {+ return err+ }+ if err := r.createOrUpdate(ctx, headlessSvc); err != nil {+ return fmt.Errorf("valkey headless service: %w", err)+ }++ // Reconcile Service+ if shouldCreateService(o, "valkey") {+ svc := r.valkeyService(o, targetNS)+ if err := r.setOwnerOrLabel(o, svc, targetNS); err != nil {+ return err+ }+ if err := r.createOrUpdate(ctx, svc); err != nil {+ return fmt.Errorf("valkey service: %w", err)+ }+ }++ // Reconcile StatefulSet+ sts := r.valkeyStatefulSet(o, targetNS)+ if err := r.setOwnerOrLabel(o, sts, targetNS); err != nil {+ return err+ }+ if err := r.createOrUpdate(ctx, sts); err != nil {+ return fmt.Errorf("valkey statefulset: %w", err)+ }++ return nil+}++func (r *OpenRAGReconciler) valkeyStatefulSet(o *openragv1alpha1.OpenRAG, targetNS string) *appsv1.StatefulSet {+ spec := o.Spec.DoclingComponents.Valkey+ replicas := replicasOrDefault(spec.Replicas)+ port := int32(6379)+ if spec.Port > 0 {+ port = spec.Port+ }++ volumes := []corev1.Volume{+ {+ Name: "valkey-config",+ VolumeSource: corev1.VolumeSource{+ ConfigMap: &corev1.ConfigMapVolumeSource{+ LocalObjectReference: corev1.LocalObjectReference{Name: resourceName("valkey-config")},+ },+ },+ },+ }+ mounts := []corev1.VolumeMount{+ {Name: "valkey-config", MountPath: "/etc/valkey", ReadOnly: true},+ {Name: "valkey-data", MountPath: "/data"},+ }++ // Add password volume if configured+ if spec.Password != "" || spec.PasswordSecret != nil {+ volumes = append(volumes, corev1.Volume{+ Name: "valkey-auth",+ VolumeSource: corev1.VolumeSource{+ Secret: &corev1.SecretVolumeSource{+ SecretName: resourceName("valkey-auth"),+ },+ },+ })+ mounts = append(mounts, corev1.VolumeMount{+ Name: "valkey-auth",+ MountPath: "/etc/valkey-auth",+ ReadOnly: true,+ })+ }++ baseLabels := componentLabels(o.Name, "valkey")+ deploymentLabels := mergeDeploymentLabels(baseLabels, spec.Labels)+ deploymentAnnotations := mergeDeploymentAnnotations(spec.Annotations)+ podLabels := mergePodLabels(baseLabels, spec.PodLabels)+ podAnnotations := mergePodAnnotations(spec.PodAnnotations)++ // Build command+ command := []string{"valkey-server", "/etc/valkey/valkey.conf"}+ if spec.Password != "" || spec.PasswordSecret != nil {+ command = append(command, "--requirepass", "$(cat /etc/valkey-auth/password)")+ }++ sts := &appsv1.StatefulSet{+ ObjectMeta: metav1.ObjectMeta{+ Name: resourceName("valkey"),+ Namespace: targetNS,+ Labels: deploymentLabels,+ Annotations: deploymentAnnotations,+ },+ Spec: appsv1.StatefulSetSpec{+ ServiceName: resourceName("valkey-headless"),+ Replicas: &replicas,+ Selector: &metav1.LabelSelector{MatchLabels: baseLabels},+ Template: corev1.PodTemplateSpec{+ ObjectMeta: metav1.ObjectMeta{+ Labels: podLabels,+ Annotations: podAnnotations,+ },+ Spec: corev1.PodSpec{+ ServiceAccountName: getServiceAccountName(o, "valkey"),+ ImagePullSecrets: mergeImagePullSecrets(o.Spec.ImagePullSecrets, spec.ImagePullSecrets),+ NodeSelector: spec.NodeSelector,+ Tolerations: spec.Tolerations,+ Affinity: spec.Affinity,+ SecurityContext: spec.PodSecurityContext,+ TopologySpreadConstraints: spec.TopologySpreadConstraints,+ Volumes: volumes,+ Containers: []corev1.Container{+ {+ Name: "valkey",+ Image: spec.Image,+ ImagePullPolicy: spec.ImagePullPolicy,+ Command: []string{"/bin/sh", "-c"},+ Args: []string{strings.Join(command, " ")},+ Ports: []corev1.ContainerPort{{Name: "valkey", ContainerPort: port}},+ Resources: spec.Resources,+ SecurityContext: spec.SecurityContext,+ VolumeMounts: mounts,+ LivenessProbe: &corev1.Probe{+ ProbeHandler: corev1.ProbeHandler{+ Exec: &corev1.ExecAction{+ Command: []string{"valkey-cli", "ping"},+ },+ },+ InitialDelaySeconds: 30,+ PeriodSeconds: 10,+ },+ ReadinessProbe: &corev1.Probe{+ ProbeHandler: corev1.ProbeHandler{+ Exec: &corev1.ExecAction{+ Command: []string{"valkey-cli", "ping"},+ },+ },+ InitialDelaySeconds: 5,+ PeriodSeconds: 5,+ },+ },+ },+ },+ },+ },+ }++ // Add VolumeClaimTemplate if storage is enabled+ if spec.Storage != nil && spec.Storage.Enabled && spec.Storage.ExistingClaim == "" {+ // Default to ReadWriteOnce if not specified+ accessModes := spec.Storage.AccessModes+ if len(accessModes) == 0 {+ accessModes = []corev1.PersistentVolumeAccessMode{corev1.ReadWriteOnce}+ }++ sts.Spec.VolumeClaimTemplates = []corev1.PersistentVolumeClaim{+ {+ ObjectMeta: metav1.ObjectMeta{+ Name: "valkey-data",+ Labels: baseLabels,+ },+ Spec: corev1.PersistentVolumeClaimSpec{+ AccessModes: accessModes,+ Resources: corev1.VolumeResourceRequirements{+ Requests: corev1.ResourceList{+ corev1.ResourceStorage: spec.Storage.Size,+ },+ },+ StorageClassName: spec.Storage.StorageClassName,+ },+ },+ }+ } else if spec.Storage != nil && spec.Storage.ExistingClaim != "" {+ // Use existing PVC+ sts.Spec.Template.Spec.Volumes = append(sts.Spec.Template.Spec.Volumes, corev1.Volume{+ Name: "valkey-data",+ VolumeSource: corev1.VolumeSource{+ PersistentVolumeClaim: &corev1.PersistentVolumeClaimVolumeSource{+ ClaimName: spec.Storage.ExistingClaim,+ },+ },+ })+ } else {+ // Use emptyDir if storage is not enabled+ sts.Spec.Template.Spec.Volumes = append(sts.Spec.Template.Spec.Volumes, corev1.Volume{+ Name: "valkey-data",+ VolumeSource: corev1.VolumeSource{EmptyDir: &corev1.EmptyDirVolumeSource{}},+ })+ }++ return sts+}++func (r *OpenRAGReconciler) valkeyService(o *openragv1alpha1.OpenRAG, targetNS string) *corev1.Service {+ spec := o.Spec.DoclingComponents.Valkey+ port := int32(6379)+ if spec.Port > 0 {+ port = spec.Port+ }++ baseLabels := componentLabels(o.Name, "valkey")+ return &corev1.Service{+ ObjectMeta: metav1.ObjectMeta{+ Name: getServiceName(o, "valkey"),+ Namespace: targetNS,+ Labels: baseLabels,+ },+ Spec: corev1.ServiceSpec{+ Type: corev1.ServiceTypeClusterIP,+ Selector: baseLabels,+ Ports: []corev1.ServicePort{+ {Name: "valkey", Port: port, TargetPort: intstr.FromInt32(port), Protocol: corev1.ProtocolTCP},+ },+ },+ }+}++func (r *OpenRAGReconciler) valkeyHeadlessService(o *openragv1alpha1.OpenRAG, targetNS string) *corev1.Service {+ spec := o.Spec.DoclingComponents.Valkey+ port := int32(6379)+ if spec.Port > 0 {+ port = spec.Port+ }++ baseLabels := componentLabels(o.Name, "valkey")+ return &corev1.Service{+ ObjectMeta: metav1.ObjectMeta{+ Name: resourceName("valkey-headless"),+ Namespace: targetNS,+ Labels: baseLabels,+ },+ Spec: corev1.ServiceSpec{+ Type: corev1.ServiceTypeClusterIP,+ ClusterIP: "None",+ Selector: baseLabels,+ Ports: []corev1.ServicePort{+ {Name: "valkey", Port: port, TargetPort: intstr.FromInt32(port), Protocol: corev1.ProtocolTCP},+ },+ },+ }+}++func (r *OpenRAGReconciler) valkeyConfigMap(o *openragv1alpha1.OpenRAG, targetNS string) *corev1.ConfigMap {+ spec := o.Spec.DoclingComponents.Valkey+ port := int32(6379)+ if spec.Port > 0 {+ port = spec.Port+ }++ maxMemory := "256mb"+ if spec.MaxMemory != "" {+ maxMemory = spec.MaxMemory+ }++ maxMemoryPolicy := "allkeys-lru"+ if spec.MaxMemoryPolicy != "" {+ maxMemoryPolicy = spec.MaxMemoryPolicy+ }++ config := fmt.Sprintf(`# Valkey configuration+port %d+bind 0.0.0.0+protected-mode yes+maxmemory %s+maxmemory-policy %s+save 900 1+save 300 10+save 60 10000+dir /data+appendonly yes+appendfilename "appendonly.aof"+`, port, maxMemory, maxMemoryPolicy)++ baseLabels := componentLabels(o.Name, "valkey")+ return &corev1.ConfigMap{+ ObjectMeta: metav1.ObjectMeta{+ Name: resourceName("valkey-config"),+ Namespace: targetNS,+ Labels: baseLabels,+ },+ Data: map[string]string{+ "valkey.conf": config,+ },+ }+}++func (r *OpenRAGReconciler) valkeySecret(ctx context.Context, o *openragv1alpha1.OpenRAG, targetNS string) (*corev1.Secret, error) {+ spec := o.Spec.DoclingComponents.Valkey+ var password string++ if spec.Password != "" {+ password = spec.Password+ } else if spec.PasswordSecret != nil {+ pwd, err := r.readSecretValue(ctx, targetNS, spec.PasswordSecret)+ if err != nil {+ return nil, fmt.Errorf("failed to read valkey password: %w", err)+ }+ password = pwd+ }++ baseLabels := componentLabels(o.Name, "valkey")+ return &corev1.Secret{+ ObjectMeta: metav1.ObjectMeta{+ Name: resourceName("valkey-auth"),+ Namespace: targetNS,+ Labels: baseLabels,+ },+ StringData: map[string]string{+ "password": password,+ },+ }, nil+}+func (r *OpenRAGReconciler) reconcileNetworkPolicy(ctx context.Context, o *openragv1alpha1.OpenRAG, targetNS string) error {labels := componentLabels(o.Name, "lf")@@ -1020,6 +2119,16 @@ func (r *OpenRAGReconciler) createOrUpdate(ctx context.Context, obj client.Objecreturn r.Update(ctx, obj)}+// deleteIfExists deletes an object if it exists, ignoring NotFound errors.+// This is useful for cleaning up resources when they are disabled in the CR.+func (r *OpenRAGReconciler) deleteIfExists(ctx context.Context, obj client.Object) error {+ err := r.Delete(ctx, obj)+ if err != nil && !errors.IsNotFound(err) {+ return err+ }+ return nil+}+func desiredHash(obj client.Object) (string, error) {tmp := obj.DeepCopyObject().(client.Object)tmp.SetResourceVersion("")@@ -1100,15 +2209,29 @@ func targetNamespace(o *openragv1alpha1.OpenRAG) string {// resourceName generates a DNS-1035 compliant name for Kubernetes resources.// Since each namespace is tenant-exclusive, we don't need to include the CR name.-// This provides clean, predictable names: openrag-fe, openrag-be, openrag-lf.+// This provides clean, predictable names: openrag-fe, openrag-be, openrag-lf, docling-serve, docling-worker.func resourceName(role string) string {- return "openrag-" + role+ switch role {+ case "ds":+ return "docling-serve"+ case "dw":+ return "docling-worker"+ default:+ return "openrag-" + role+ }}// saName generates service account names.// Since each namespace is tenant-exclusive, we don't need to include the CR name.func saName(role string) string {- return "openrag-" + role+ switch role {+ case "ds":+ return "docling-serve"+ case "dw":+ return "docling-worker"+ default:+ return "openrag-" + role+ }}// getServiceAccountName returns the ServiceAccount name for a component.@@ -1122,6 +2245,18 @@ func getServiceAccountName(o *openragv1alpha1.OpenRAG, role string) string {customName = o.Spec.Backend.ServiceAccountNamecase "lf":customName = o.Spec.Langflow.ServiceAccountName+ case "ds":+ if o.Spec.DoclingComponents != nil && o.Spec.DoclingComponents.Serve != nil {+ customName = o.Spec.DoclingComponents.Serve.ServiceAccountName+ }+ case "dw":+ if o.Spec.DoclingComponents != nil && o.Spec.DoclingComponents.Worker != nil {+ customName = o.Spec.DoclingComponents.Worker.ServiceAccountName+ }+ case "valkey":+ if o.Spec.DoclingComponents != nil && o.Spec.DoclingComponents.Valkey != nil {+ customName = o.Spec.DoclingComponents.Valkey.ServiceAccountName+ }}if customName != "" {return customName@@ -1140,6 +2275,18 @@ func shouldCreateServiceAccount(o *openragv1alpha1.OpenRAG, role string) bool {createFlag = o.Spec.Backend.CreateServiceAccountcase "lf":createFlag = o.Spec.Langflow.CreateServiceAccount+ case "ds":+ if o.Spec.DoclingComponents != nil && o.Spec.DoclingComponents.Serve != nil {+ createFlag = o.Spec.DoclingComponents.Serve.CreateServiceAccount+ }+ case "dw":+ if o.Spec.DoclingComponents != nil && o.Spec.DoclingComponents.Worker != nil {+ createFlag = o.Spec.DoclingComponents.Worker.CreateServiceAccount+ }+ case "valkey":+ if o.Spec.DoclingComponents != nil && o.Spec.DoclingComponents.Valkey != nil {+ createFlag = o.Spec.DoclingComponents.Valkey.CreateServiceAccount+ }}// Default to true if not specifiedif createFlag == nil {@@ -1159,6 +2306,18 @@ func getServiceName(o *openragv1alpha1.OpenRAG, role string) string {customName = o.Spec.Backend.ServiceNamecase "lf":customName = o.Spec.Langflow.ServiceName+ case "ds":+ if o.Spec.DoclingComponents != nil && o.Spec.DoclingComponents.Serve != nil {+ customName = o.Spec.DoclingComponents.Serve.ServiceName+ }+ case "dw":+ if o.Spec.DoclingComponents != nil && o.Spec.DoclingComponents.Worker != nil {+ customName = o.Spec.DoclingComponents.Worker.ServiceName+ }+ case "valkey":+ if o.Spec.DoclingComponents != nil && o.Spec.DoclingComponents.Valkey != nil {+ customName = o.Spec.DoclingComponents.Valkey.ServiceName+ }}if customName != "" {return customName@@ -1177,6 +2336,14 @@ func shouldCreateService(o *openragv1alpha1.OpenRAG, role string) bool {createFlag = o.Spec.Backend.CreateServicecase "lf":createFlag = o.Spec.Langflow.CreateService+ case "ds":+ if o.Spec.DoclingComponents != nil && o.Spec.DoclingComponents.Serve != nil {+ createFlag = o.Spec.DoclingComponents.Serve.CreateService+ }+ case "dw":+ if o.Spec.DoclingComponents != nil && o.Spec.DoclingComponents.Worker != nil {+ createFlag = o.Spec.DoclingComponents.Worker.CreateService+ }}// Default to true if not specifiedif createFlag == nil {@@ -1293,6 +2460,14 @@ func httpProbe(path string, port, initialDelay, period int32) *corev1.Probe {}}+// probeOrDefault returns the custom probe if provided, otherwise returns the default probe.+func probeOrDefault(custom, defaultProbe *corev1.Probe) *corev1.Probe {+ if custom != nil {+ return custom+ }+ return defaultProbe+}+func tcpPort(p int32) networkingv1.NetworkPolicyPort {proto := corev1.ProtocolTCPv := intstr.FromInt32(p)