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

Quick Start

Install the GridGain Kubernetes Operator, deploy a three-node GridGain 9 cluster, and verify it using the CLI tool.

This guide walks you through installing the operator, deploying a three-node GridGain 9 cluster, and verifying that everything is working.

Prerequisites

  • A valid GridGain 9 license.

  • A Kubernetes cluster running version 1.22 or later. The operator uses apiextensions.k8s.io/v1 CRDs and server-side apply, both of which require Kubernetes 1.22+.

  • kubectl configured with administrative access to the target cluster.

  • Container registry access: The default controller image is gridgain/gridgain9-k8s-operator:0.1.0 on Docker Hub. If you use a private registry or custom image, adjust the Deployment in resources/controller-resources.yaml before applying it.

Install the Operator

Installation is a two-step process: you apply the Custom Resource Definition first, then deploy the controller and its supporting resources.

Install the CRD

Download the Custom Resource Definition file and apply it to register the GridGain9Cluster resource type with the Kubernetes API server:

kubectl apply --server-side=true -f crd.yaml

The --server-side=true flag is recommended. Client-side application may fail or time out on objects of this size.

Install Controller Resources

Download the controller manifest file and apply it:

This creates the gridgain9-system namespace, a dedicated ServiceAccount, default roles and bindings, a metrics service, and the gridgain9-controller-manager Deployment.

Verify the Installation

Confirm that the CRD is registered and the controller is running:

The gridgain9clusters resource should appear in the CRD list, and the controller pod should be in a Running state.

Deploy a Cluster

Create a License Secret

GridGain 9 requires a license for cluster initialization. In this tutorial, we will create a secret to safely manage the license. Create a Kubernetes Secret from your license file:

The Secret must reside in the same namespace where you will create the GridGain9Cluster resource.

For quick tests or demos, you can skip the Secret and embed the license content directly in the manifest using spec.license.content.

Apply the Cluster Manifest

Create a file named simple-cluster.yaml with the following content:

In the example above, we use the specific GridGain version. You can remove the image element to install the latest GridGain version instead.

Then, apply it:

This deploys a three-node cluster as specified in the replicas configuration, with 20Gi persistent volumes for each. The operator creates a StatefulSet, a headless service for node discovery, and a Job to initialize the cluster with your license.

Verify the Deployment

Watch the cluster resource until the Phase shows Running:

Check that all pods are ready:

Verify the cluster topology from inside a pod:

Use the CLI Tool

Once the cluster is running, the GridGain CLI tool is available inside each pod at /opt/gridgain9cli/bin/gridgain9. For this tutorial, we will connect to a node in the cluster, and then use the CLI tool to execute some simple queries.

  • First, open an interactive shell on one of the pods:

  • From inside the pod, start the CLI tool:

  • Confirm the connection to the cluster, then enter the SQL REPL mode by typing sql.

  • Create a table:

  • Insert some data:

  • Query the data:

  • To leave the SQL REPL mode, type exit;.

For more information about available SQL statements, see the SQL Reference section.

Clean Up

To remove the cluster and all resources the operator created for it:

The operator uses a finalizer to ensure graceful shutdown and cleanup of all nodes.

To remove the operator itself, remove the CRD and the resources:

Deleting the CRD removes the GridGain9Cluster API entirely. Make sure all custom resources are deleted first to avoid stuck objects.

This page is: Copyright © 2026 MariaDB. All rights reserved.

spinner

Last updated

Was this helpful?