How to Encrypt Inter-Node Cluster Traffic With Linkerd on Kubernetes
Encrypt GridGain 8 discovery and communication traffic with automatic mTLS from a Linkerd service mesh, with no keystores and no cluster configuration changes.
Prerequisites
A running Kubernetes cluster with
kubectlaccess. The commands below were tested on kind. They apply unchanged to managed Kubernetes (EKS, GKE, AKS).The Linkerd CLI (install guide).
GridGain 8 only: A GridGain Enterprise evaluation or commercial license file (
gridgain-license.xml) from gridgain.com/tryfree.
Overview
Cache nodes chatter constantly: discovery on 47500 and communication on 47100 carry the traffic that keeps the cluster together. By default that traffic is plain TCP. This guide encrypts it with Linkerd, which issues and rotates short-lived workload certificates and applies mutual TLS at a per-pod proxy. The cluster runs with no SSL configuration of its own and no keystores to manage.
The procedure runs against GridGain 8 Enterprise.
Two notes on the environment. This guide uses Kubernetes rather than the standard local Docker setup because a service mesh is a Kubernetes construct. It uses two cache nodes rather than one because the traffic this guide encrypts is the traffic between nodes, which only exists once a second node joins.
Install Linkerd
Recent Linkerd releases require the Gateway API CRDs. Install them first, then install the Linkerd CRDs and control plane.
kubectl apply --server-side -f \
https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.2.1/standard-install.yaml
linkerd install --crds | kubectl apply -f -
linkerd install | kubectl apply -f -The Linkerd CLI install output prints the Gateway API version it expects. This guide pins v1.2.1 to match the current Linkerd edge release. If your CLI recommends a different version, apply that one instead.
Verify the installation:
Every check group should pass, ending with the overall result:
Deploy the Two-Node Cluster
Deploy a two-node cluster with the Linkerd annotations on the pod template. The manifests below define three objects: a ConfigMap holding the node configuration, a headless Service for peer discovery, and a StatefulSet running two cache nodes. The two annotations that enable mesh encryption are called out after the code.
GridGain 8 Enterprise requires a license. Create the namespace and a Secret from your license file first:
Save the following as ignite-cluster.yaml. The node configuration adds the GridGain plugin pointing at the mounted license:
Apply the manifests:
The two annotations on the pod template are what enable mesh encryption:
linkerd.io/inject: enabledadds alinkerd-proxysidecar to each pod. The proxy transparently wraps outbound connections in mTLS and unwraps inbound ones.config.linkerd.io/opaque-ports: "10800,47100,47500"marks the cache ports as opaque. Linkerd runs HTTP protocol detection on every connection by default. The discovery and communication SPIs are server-first binary protocols where neither side sends identifiable bytes, so detection stalls for ten seconds, past the cache's own handshake timeout, and the cluster fails to form. Marking these ports opaque skips detection while keeping mTLS. Port 8080, the HTTP REST port, stays out of the list because Linkerd handles HTTP traffic natively. Port 11211 is the legacy binary REST port, not an HTTP port.
Wait for both pods to report 2/2 containers (the cache node plus the proxy):
Both pods come up sequentially and settle at 2/2:
Verify Mutual TLS is Flowing
Confirm that the discovery and communication traffic is actually encrypted and authenticated. Query the proxy metrics on one node and filter for TLS-secured TCP connections:
The matching lines show discovery (47500) and communication (47100) connections, both inbound and outbound, carrying tls="true" and a verified peer identity:
Each line reports a TCP connection the proxy opened or accepted with tls="true". The inbound entries on the communication SPI (47100) and discovery SPI (47500) carry a verified client_id, and the outbound entry to dst_pod="ignite-1" confirms ignite-0 is actively talking to ignite-1 over encrypted discovery. Together they confirm node-to-node traffic is mutually authenticated and encrypted.
Troubleshooting
Related
How to Encrypt Cluster Traffic with Istio mTLS on Kubernetes - A fuller mesh that also encrypts thin-client and external traffic and exposes an HTTPS gateway.
Linkerd automatic mTLS reference - How Linkerd issues and rotates workload certificates.
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

