For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

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 kubectl access. 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: enabled adds a linkerd-proxy sidecar 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.

Linkerd adds three sources of overhead: a per-connection mTLS handshake (amortized across long-lived inter-node connections), per-packet encryption, and one extra in-pod hop through the proxy on every request. Most meshed workloads do not notice them, but a distributed cache is throughput-sensitive. This guide does not benchmark the overhead. Measure it against your own workload before rolling a mesh into production.

Troubleshooting

Nodes never form a cluster; logs show handshake timeouts

The opaque-ports annotation is missing or does not list the SPI ports. Linkerd's HTTP protocol detection stalls on the server-first communication and discovery protocols until the cache's handshake timeout fires. Confirm the pod template carries config.linkerd.io/opaque-ports: "10800,47100,47500", then restart the StatefulSet: kubectl rollout restart statefulset/ignite -n ignite.

Pods stay at 1/1 instead of 2/2

The proxy was not injected. Confirm the pod template carries the linkerd.io/inject: enabled annotation under spec.template.metadata.annotations, not on the StatefulSet itself. Reapply the manifest and, if needed, restart the StatefulSet with kubectl rollout restart statefulset/ignite -n ignite.

linkerd install fails with a Gateway API CRD error

Recent Linkerd releases require the Gateway API CRDs to be present first. Apply them with the kubectl apply --server-side command from Step 1 before running linkerd install.

Linkerd or meshed pods crash-loop in the proxy-init container

The proxy-init logs show iptables stopping on a rule that uses --match multiport, -m comment, or -m owner. Linkerd's proxy-init programs iptables with match extensions that need the xt_multiport, xt_comment, and xt_owner kernel modules. Containers cannot load modules, so the host kernel must provide them. On most managed Kubernetes this is already true. On a self-managed node where it is not, load them on the host (for example sudo modprobe xt_multiport xt_comment xt_owner, persisted via /etc/modules-load.d/) and recreate the pods. If the modules are present but not found, the running kernel may not match the installed module tree after a kernel upgrade; reboot the node so the two align.

GridGain 8 node exits at startup with a license error

The license Secret is missing, mounted at the wrong path, or expired. Confirm the Secret exists (kubectl get secret gridgain-license -n ignite) and that the config's licenseUrl matches the mount path (/ignite/license/gridgain-license.xml). GridGain Enterprise evaluation licenses are time-limited; download a current one from gridgain.com/tryfree if yours has lapsed.

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

Last updated

Was this helpful?