Security
Configure authentication, SSL/TLS encryption, and pod and container security contexts for GridGain 9 clusters managed by the Kubernetes Operator.
The operator supports configuring authentication, SSL/TLS encryption, and Kubernetes security contexts for GridGain clusters.
Authentication
Authentication is configured through the clusterConfig field. The operator supports basic and LDAP authentication types, with basic as the default.
Provide the authentication configuration as a JSON document in clusterConfig.content:
spec:
clusterConfig:
content: |
{
"security": {
"enabled": true,
"authentication": {
"providers": [
{
"name": "basic",
"type": "basic",
"users": [
{"username": "admin", "password": "changeme", "roles": ["system"]}
]
}
]
}
}
}For further details on GridGain authentication providers and role definitions, see Authentication.
SSL/TLS
SSL/TLS encryption secures communication between GridGain nodes, between clients and the cluster, and on the REST API. Configuration requires a keystore and truststore, typically stored in a Kubernetes Secret.
First, create the Secret containing your certificate files:
Then mount the Secret into pods and reference the certificates in both the cluster configuration and the node configuration.
Mount the certificates using extraVolumes and extraVolumeMounts:
Enable SSL in the cluster configuration:
Enable SSL on the node-level connectors in the node configuration:
For more details on GridGain SSL/TLS configuration, see SSL/TLS documentation.
Pod Security Context
The securityContext field sets the security context for the entire pod. Use it to enforce non-root execution and enable seccomp profiles:
Setting fsGroup ensures that volumes mounted into the pod are writable by the GridGain process.
Container Security Context
The containerSecurityContext field applies to the GridGain container specifically. Use it to drop capabilities and prevent privilege escalation:
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

