For the complete documentation index, see llms.txt. This page is also available as Markdown.

Weka Operator secrets management

Manage the Kubernetes secrets created by the WEKA operator to store credentials and connection information required for cluster interaction. The operator automatically handles the lifecycle states.

Secret types and purposes

The operator creates four distinct secrets for each WekaCluster to facilitate different access requirements:

Secret type
Format
Purpose

Operator Secret

weka-operator-<cluster-uid>

Used by the operator for administrative operations.

User Admin Secret

weka-cluster-<cluster-name>

Provides access for the weka cluster with admin rights

Client Secret

weka-client-<cluster-name>

Used by WEKA clients to connect to the cluster with the minimum privileges required to join as a client.

CSI Secret

weka-csi-<cluster-name>

Used by the CSI plugin for storage provisioning.

Configure Client Secret

WEKA clients use this secret to connect to the cluster. Use this procedure when the client and WEKA cluster run on different Kubernetes clusters.

Manual creation command:

kubectl create secret generic weka-client-<cluster-name> \
  --from-literal=username=wekaclient<cluster-uid-short> \
  --from-literal=password=<password> \
  --from-literal=org=Root \
  --from-literal=join-secret=<join-token>

Configure CSI Secret

The CSI plugin requires this secret to manage and provision storage resources. It includes backend connection details:

  • endpoints: A comma-separated list of Weka API endpoints in <ip>:<port> format.

  • scheme: The API access scheme, such as https.

  • nfsTargetIps: The IP addresses for NFS targets.

Manual creation command:


Usage in WekaClient resources

The method for connecting a WekaClient Custom Resource depends on how the cluster is provisioned:

  1. Operator-provisioned clusters: The WekaClient automatically uses the client secret created by the operator when you specify the targetCluster.

  2. Manual connection to non-operator clusters: When specifying targetIPs instead of a targetCluster, you must create the CSI secret manually. Ensure the secret includes a join-secret if the cluster requires it.

Last updated