WEKA Operator full deployment workflow
Deploy WEKA on Kubernetes end-to-end: from environment preparation and operator installation through resource provisioning and post-deployment storage configuration.
Workflow
2
Configure control plane readiness, HugePages, Kubelet settings, image pull secrets, and failure domains.
4
Select external or local driver distribution and apply the required policy.
6
Deploy the WekaCluster, create the optional client secret, and install the WekaClient when needed.
7
Optionally expose WEKA management endpoints through an operator-managed Service and Ingress.
8
Assign unique proxy subnets when multiple WEKA clusters share the same Kubernetes environment.
9
Configure CSI behavior and storage provisioning for WEKA clients.
1. Obtain setup information
Identify and record the credentials required to pull WEKA container images and the specific version tags for your deployment.
Before you begin
Contact the WEKA Customer Success Team to receive your authorized registry credentials.
Procedure
Access WEKA Operator page to identify the latest
WEKA_OPERATOR_VERSIONandWEKA_IMAGE_VERSION_TAG.Record the following credentials for your image pull secret:
Registry:
quay.ioQUAY_USERNAME
QUAY_PASSWORD
QUAY_SECRET_KEY: Typically
quay-io-robot-secret.

2. Prepare Kubernetes environment
Ensure the infrastructure meets the performance and resiliency requirements of the WEKA data plane. This step covers control plane configuration, node hardware and software requirements, HugePages, port requirements, and Kubelet CPU policy.
Control plane high availability
Configure the Kubernetes control plane for high availability to match WEKA resiliency. High availability depends on etcd quorum.
Quorum rule: etcd requires an odd number of members (N) and tolerates failures up to (N-1)/2 failures.
Recommendation: Use five or nine etcd members for production storage backends.
Node hardware and software requirements
Verify that every node in the cluster meets these specifications:
Kubernetes version: 1.25 or later (OpenShift 4.17 or later).
Storage allocation: Reserve approximately 20 GiB per WEKA container plus 10 GiB per allocated CPU core in
/opt/k8s-weka. Do not use NFS or network-attached storage.Kernel headers: Ensure kernel headers exactly match the running kernel version to allow driver compilation.
Configure HugePages for Kubernetes worker nodes
WEKA processes require dedicated HugePages memory. Configure HugePages on every worker node before deploying the WekaCluster. Nodes without HugePages configured will fail to schedule WEKA pods.
Memory allocation requirements
Use the following formula to calculate the required number of 2 MiB HugePages for your server:
Variables:
Server capacity
Total usable capacity of all drives assigned to WEKA on the server, measured in GiB.
Ratio
Controls the metadata memory component in the HugePages calculation. Server capacity is divided by this value, so a higher ratio allocates less memory to metadata, which reduces total HugePages consumption. The default is 1000. Set to 2000 to lower HugePages usage on servers where reduced metadata allocation is acceptable.
Cores for WEKA
Number of CPU cores allocated to the WEKA container on the server.
WEKA Container factor
Fixed HugePages allocation of 1.7 GiB for each WEKA container.
Headroom
Additional 10% buffer, expressed as 1.1, to account for memory fragmentation and operational variance. If you plan to run additional workloads that require HugePages, add their planned requirements on top of the calculated value.
Example calculation
Server specifications:
CPU cores: 64 total; 63 dedicated to WEKA.
Storage: 16 drives × 15.3 TiB = 244.8 TiB usable (250,675 GiB).
Step 1: Calculate total GiB:
Step 2: Convert to MiB:
Step 3: Calculate HugePages:
Apply HugePages settings
Before you begin:
Identify the number of drives and CPU cores allocated to WEKA on the server.
Ensure you have root or
sudopermissions on the worker nodes.
Procedure:
Check the current HugePages status on the server:
Apply the calculated HugePages value. Replace
<calculated-value>with the value computed for your server:Persist the setting to ensure it remains active after a reboot:
Kubernetes port requirements
The WEKA Operator automatically allocates ports to prevent collisions in multi-cluster environments. Manual configuration is typically unnecessary unless specific infrastructure or policy requirements apply.
WEKA Operator (v1.10+) / WEKA (v5.1.0+)
35000
260 ports per cluster
WEKA Operator / WEKA (previous versions)
35000
500 ports per cluster
WEKA client connectivity
45000
Maximum: 65535
Reserve ports on each node
To prevent the Linux kernel from assigning WEKA ports to other processes, add the following to /etc/sysctl.d/99-weka.conf on every node. For example:
The range 35000–37600 covers 2,600 ports, which supports up to 10 WekaCluster instances at 260 ports each. If you plan to deploy more than 10 clusters, extend the upper bound by 260 ports per additional cluster.
For full kernel parameter configuration, see Set custom kernel parameters.
Configure Kubelet requirements
Enable the static CPU Manager policy on all worker nodes to give WEKA processes dedicated CPU cores. Without this, the Kubernetes scheduler can place other workloads on the same cores, causing contention and reducing I/O throughput.
Also enable strict-cpu-reservation to keep Burstable and Best Effort pods off the reserved cores.
For the full rationale, sibling-pair guidance, and version-specific reservation details, see WEKA Operator best practices.
Before you begin: identify HyperThreading sibling cores
On hyperthreaded systems, each physical core exposes two logical CPUs. Include both logical CPUs from the same physical core in reservedSystemCPUs to ensure full isolation. Reserving only one sibling of a physical core leaves that core shared.
Run the following commands to identify sibling pairs on the node:
Example output for a 12-logical-CPU, single-socket server with HyperThreading enabled:
In this example, there are 6 physical cores and 12 logical CPUs. CPUs that share the same
CORE and SOCKET values are HyperThreading siblings:
0
0
6
1
1
7
2
2
8
3
3
9
4
4
10
5
5
11
The thread_siblings_list confirms these pairs directly:
Procedure
Edit the Kubelet configuration file on each worker node and add the following settings. In this example, physical core 0 is reserved for the OS.
reservedSystemCPUsincludes both logical CPUs of that core (CPU 0 and its HT sibling, CPU 6):
Adjust reservedSystemCPUs to match the sibling pairs reported by thread_siblings_list on your node. Reserve at least one physical CPU (two sibling cores) for the Kubelet. Reserve additional physical cores, including both logical CPUs for each core, when OS or platform workloads require more capacity.
Save the file and restart the Kubelet:
Related information
Control CPU Management Policies on the Node
Configure image pull secrets
Set up Kubernetes secrets to enable secure image pulling from the WEKA container registry. These secrets must exist in every namespace where WEKA resources are deployed.
Before you begin
Identify your QUAY_USERNAME, QUAY_PASSWORD, and QUAY_SECRET_KEY from step 1.
Procedure
Define the target namespaces and ensure they do not overlap to prevent configuration conflicts.
Create the secret in the
weka-operator-systemnamespace. Repeat the same step in every namespace where you plan to create a WEKA CR. For example, if you deploy WEKA resources in thedefaultnamespace, create the secret there as well:
Configure failure domains
Group backend nodes into failure domains to ensure high availability and data protection. A failure domain represents a set of processes that share a common physical risk, such as a rack, power circuit, or network switch.
The system distributes data and parity blocks from the same stripe across different failure domains. If an entire failure domain fails, the cluster reconstructs the missing data from the remaining domains.
Select a failure domain mode
Implicit (default)
Assigns every process as its own independent failure domain.
Deployments where infrastructure shared risks cannot be identified by Kubernetes node labels.
Explicit
Groups processes into named domains based on physical node labels.
Deployments where containers share a rack, switch, or power source.
Determine stripe width and domain count
Coordinate the number of failure domains with the stripe width and protection level during cluster formation. Stripe width and protection levels are permanent once set.
Constraint to prevent data loss: blocks lost during a failure domain failure = stripe width / number of failure domains. This value must not exceed the parity block count (P).
Minimum healthy server requirements:
5+2
4
16+ 2
9
5+4
3
16+4
5
Map a single node label
Label every backend node with a physical grouping value:
Configure the
failureDomainfield in theWekaClusterCR:label: The node label key identifying the failure domain.skew: The permitted difference in container count between domains.
Use composite topology labels
Combine existing Kubernetes topology labels, such as zone and rack, into a compound failure domain identity.
Procedure
Identify the existing labels on your nodes:
Add the
compositeLabelslist to theWekaClusterCR:The operator combines these values. For example, a node in zone
us-east-1aonrack-1becomes failure domainus-east-1a/rack-1.
Verify the configuration
Confirm the distribution of containers across the defined domains.
Procedure
Apply the CR changes:
Check the container status:
Verify that the
FAILURE DOMAINcolumn displays your custom label values instead ofAUTO.
3. Install the WEKA Operator
Manage the lifecycle of WEKA resources by installing the WEKA Operator. This process involves applying Custom Resource Definitions (CRDs) and deploying the operator controller with specific configurations for the Container Storage Interface (CSI) and drive types.
Before you begin
Ensure the
QUAY_SECRET_KEYis created in theweka-operator-systemnamespace (completed in step 2).Install Helm on a local server, unless using a higher-level deployment tool such as Argo CD:
Confirm
kubectlis installed and configured against the target cluster.Identify your deployment configuration before running the Helm command:
Operator v1.7.0 and later
--set csi.installationEnabled=true
Operator v1.10 and later with AlloyFlash
--set driveSharing.driveTypesRatio='{tlc: 9, qlc: 1}'
Operator v1.10 and later with single drive type
--set driveSharing.driveTypesRatio='{qlc: 0}'
Procedure
Download and apply the CRDs so the Kubernetes API can recognize WEKA resources. Replace
<WEKA_OPERATOR_VERSION>with your version:
Deploy the WEKA Operator using the Helm flags that match your configuration. The following examples show the two most common layouts:
Mixed flash configuration (AlloyFlashTM):
This setting allocates 9/10 capacity to TLC and 1/10 to QLC.
Single drive type:
This setting configures a single drive type and disables Hybrid Flash.
Verify the installation. The
weka-operator-controller-managerpod must showRunningstatus:
Expected output:
If the pod does not reach Running state, see Troubleshoot WEKA Operator deployments.
3.1 Configure operator-wide settings
Configure embedded CSI and driver build settings that apply across the operator.
From WEKA Operator v1.16.2, use a WekaPolicy with configurationPayload for these settings. Create the policy only when you must change a default.
Helm values, including csi.installationEnabled and csi.storageClassCreationDisabled, remain Helm settings. Do not add them to the WekaPolicy.
Before you begin
Install WEKA Operator v1.16.2 or later.
Identify the configuration attributes that require non-default values.
Procedure
Create
weka-configuration.yamlwith only the attributes you need to change. This example forces driver builder containers to use the WEKA CLI in the builder image:
Apply the manifest:
Verify that the policy was created:
Configuration attributes
csi.metricsEnabled
Enables the Prometheus metrics endpoints of the CSI controller, the CSI node plugin, and the controller sidecars. Set to false to disable the endpoints.
true
csi.fsGroupPolicy
Sets fsGroupPolicy on the CSIDriver object. This setting determines whether Kubernetes applies the pod fsGroup to the volume. Possible values: File, None, ReadWriteOnceWithFSType.
File
drivers.forceBuilderCli
Forces the drivers-builder init containers to use the WEKA CLI from the builder image instead of the cluster image. Set to true when the WEKA CLI in the cluster image lacks components required to build drivers for the node operating system, such as NixOS.
false
The interval attribute does not apply to this policy. For the complete list of fields, see the WekaPolicy API reference.
4. Manage driver distribution
If outbound access to drivers.weka.io is available, use the pre-built driver service. Configure driver distribution only when you need a local build and distribution path for client and backend processes.
Choose a distribution method
Standard Linux distribution with supported kernel, outbound access to drivers.weka.io
Pre-built drivers (recommended): No build infrastructure required. By default, the drivers are pulled from https://drivers.weka.io.
Air-gapped environment, custom or patched kernel, or no external network access
Local driver builder: Configure driver distribution policy.
For architectural details on how driver distribution works, see WEKA Operator driver management.
Before you begin
Ensure a WEKA-compatible image (
weka-in-container) and a validimagePullSecretare accessible.Confirm that builder container versions match the target WEKA version.
For local distribution: ensure kernel headers matching the running kernel are installed on the build server. On Ubuntu, install
linux-headers-$(uname -r). On Rocky Linux, installkernel-devel-$(uname -r)andkernel-headers-$(uname -r). Also confirm port 60002 is open for communication between the operator, Drivers-Builder, Drivers-Dist, and Drivers-Loader.
Local driver distribution components: When using a local builder, the operator deploys three components:
Drivers-Builder: Compiles the kernel module for specific WEKA and kernel version combinations.
Drivers-Dist: An internal HTTP server that stores and serves compiled driver packages.
Service: A Kubernetes Service that exposes Drivers-Dist at a stable internal endpoint.
Procedure
Define node selection using a
nodeSelectorto identify target Kubernetes nodes that require the driver.Apply a WekaPolicy to deploy the driver distribution service. Use the example that matches your environment:
Install a compiler in the builder container.
The driver builder compiles kernel modules in the builder container. Install a compiler that matches the node kernel requirements.
Add
builderPreRunScriptto theWekaPolicyspecification:
For RPM-based builder images (for example, Rocky Linux):
WekaPolicy additional attributes
image
The WEKA container image used for the distributor and default builder.
interval
How often the operator reconciles the policy. Default: 1m.
builderPreRunScript
Optional script to run before the build, for example to install a compiler.
ensureNICsPayload
Defines the configuration for ensuring a specific number of data NICs on selected nodes.
signDrivesPayload
Configures parameters to scan and sign drives for WEKA backend containers.
configurationPayload
Defines operator-wide settings for the embedded CSI plugin (csi) and driver builds (drivers). Available from Operator v1.16.2. See Configure operator-wide settings.
Apply the configuration:
5. Discover and sign drives
Identify and prepare physical storage devices before provisioning the WEKA cluster.
How drive discovery works
When a drive discovery operation runs, the operator performs three actions on each node:
Annotates the node with a list of known serial IDs for all accessible drives.
Creates the extended resource
weka.io/driveson the node to indicate the count of ready drives.Marks only healthy, unblocked drives as available. Drives with errors or manual blocks are excluded.
Choose a discovery method
WekaManualOperation
One-time action for initial manual provisioning.
WekaPolicy
Automated periodic discovery. Initiates immediately when it detects node updates or hardware additions. Recommended for production.
Understand the shared field
The shared field in the signDrivesPayload controls whether SSD Proxy is enabled on the signed drives.
Procedure
Define drive sharing and signing: Apply a WekaPolicy to sign compatible drives.
all-not-root
Signs all detected block devices except the root device.
aws-all
Detects NVMe devices using AWS PCI identifiers.
device-paths
Targets specific device paths listed in the manifest.
6. Provision WEKA resources
Deploy the WekaCluster and WekaClient Custom Resources to provision the backend storage and connect your Kubernetes nodes.
Perform these steps in sequence:
Install the WekaCluster CR.
Create the WEKA cluster client secret (only required if WekaCluster and WekaClient are not deployed on the same Kubernetes cluster)
Install the WekaClient CR.
6.1. Install the WekaCluster CR
Provision the WEKA cluster backend using the WekaCluster CR. This resource defines the storage containers, drive configurations, and networking for the cluster.
Before you begin
Verify that drives are signed and discovered (step 5).
Verify the driver distribution service is accessible. WEKA recommends the external service at
https://drivers.weka.io.If you set
shared: truewhen signing drives, select a sizing method for the dynamic template:clusterCapacity: Sets the target usable capacity for the whole cluster. The operator derives the container and drive layout automatically.containerCapacity: Sets the capacity per drive container. Required whenshared: trueis set andclusterCapacityis not set.numDrives: Assigns whole drives per drive container. Applies whenshared: falseis set. Optional, defaults to1.
Procedure
Create
weka-cluster.yaml:
If your cluster requires settings that cannot be applied through standard configuration, for example overriding the default bucket count on a small or non-standard cluster, set
spec.overrides.postFormClusterScriptin the manifest before applying it. The operator runs this script once, after the cluster forms and beforestart-io. Use it only when no standard configuration option achieves the required result:
To inspect the field definition, run:
Apply the manifest:
Related information
6.2. Create the WEKA cluster client secret
Create a Kubernetes Secret that stores the credentials WekaClient uses to join the WEKA cluster. This is required only when WekaClient and WekaCluster are not deployed in the same Kubernetes cluster.
Before you begin
Obtain the org, join-secret, password, and username from your WEKA backend.
Procedure
Encode each credential value to base64.
Create
secret.yaml:
Apply the secret:
6.3. Install the WekaClient CR
If you need WEKA clients on Kubernetes, deploy the WekaClient CR on the designated Kubernetes nodes. WekaClient works like a DaemonSet and provisions one pod per selected node to provide a persistent WEKA data plane for your workloads.
Before you begin
Label every worker node intended to host WEKA client pods:
Example:
Verify that the Kubernetes Secret (for example,
weka-cluster-dev) exists in theweka-operator-systemnamespace and contains base64-encoded cluster credentials (org,join-secret,password, andusername).Identify whether you are using the external driver distribution service (
https://drivers.weka.io) or a local service endpoint.
Procedure
Create
weka-client.yamlusing the connection type that matches your environment: Both connection modes support the embedded CSI plugin.
Apply the manifest.
7. Manage the WEKA cluster management proxy
Optionally - access WEKA management endpoints through an operator-managed Service, and optionally expose them outside the Kubernetes cluster using a Kubernetes Ingress.
Required infrastructure
WEKA does not install or configure the following components. These remain the responsibility of the platform administrator:
Ingress controller
Manages incoming traffic, for example NGINX or Traefik.
External connectivity
A load balancer or equivalent mechanism to route traffic from outside the cluster.
DNS resolution
Configured hostnames that resolve to the Ingress controller's external IP.
TLS termination
Optional platform-managed certificate management for secure HTTPS communication.
Ingress configuration
WEKA simplifies basic setups by managing Ingress configuration through a single ingressClass setting. For advanced or customized networking scenarios, wrap or modify the service using standard Kubernetes Ingress resources.
8. Assign network space proxy subnets for multiple WEKA clusters
Optionally, allocate a unique proxy subnet to each WEKA cluster when you deploy more than one WekaCluster on the same Kubernetes environment. Each WEKA cluster uses an internal proxy subnet for its network space. When two clusters share the same subnet, their address ranges overlap and cause routing conflicts.
Assign a non-overlapping subnet to every WEKA cluster so that each cluster keeps a dedicated address range and isolates its traffic from other tenants on the same Kubernetes nodes.
Before you begin
Deploy the WEKA Operator on the target Kubernetes environment.
Identify every WEKA cluster already deployed on the same Kubernetes environment.
Procedure
Record the proxy subnets already assigned to the existing WEKA clusters:
For each new WEKA cluster, choose a subnet in CIDR notation that no other WEKA cluster on the same Kubernetes environment uses.
Assign the subnet to the WEKA cluster:
Confirm the assignment by listing the proxy subnets again and verifying that each WEKA cluster holds a distinct range:
9. Perform post-deployment storage configuration on WEKA client
If your deployment includes a WEKA client on Kubernetes and embedded CSI is enabled, configure the CSI plugin and storage classes based on your operator version to enable persistent volume provisioning.
Embedded CSI is part of the WekaClient resource in both connection modes: targetCluster for a WekaCluster in the same Kubernetes cluster, and joinIpPorts for a WEKA cluster outside Kubernetes.
v1.7.0 and later
Embedded CSI is supported. When embedded CSI is enabled during operator installation, the operator configures the CSI plugin and StorageClass automatically.
Proceed to create a Persistent Volume Claim (PVC).See dynamic-and-static-provisioning.md.
v1.6.2 and earlier
Embedded CSI is not available. CSI requires manual installation.
See weka-csi-plugin.
Last updated