#17221·rook

ROOK_POD_IP has no awareness of ipFamily

Author: lethedataCreated Mar 20, 2026Updated Sep 29, 2026
Labelsbugnetworking

Is this a bug report or feature request?

  • Bug Report

Deviation from expected behavior:

In a dualstack environment where kubelet uses --node-ip=IPv4,IPv6, if ipFamily is set to IPv6, public_bind_addr is still the IPv4 address leading to a non-functional cluster. This also happens with --node-ip=IPv6,IPv4 and ipFamily: IPv4 but binds to IPv6 address.

https://github.com/rook/rook/blob/f6309dfc8d3d6394c3dde00eb18c562955c8f873/pkg/operator/k8sutil/pod.go#L75-L79

Same as https://github.com/rook/rook/issues/7522 which was automatically closed due to inactivity.

This seems to be caused by ipFamily only adjusts the ms_bind_ipv6 and ms_bind_ipv4 settings while public_bind_addr, set by env ROOK_POD_IP, binds to whichever address family comes first in the status.podIPs (legacy status.podIP) which is determined by kubelet's --node-ip flag.

Expected behavior:

Setting ipFamily also makes public_bind_addr to attach to the correct address family.

File(s) to submit:

Helm values

yaml
cephClusterSpec:
  network:
    ipFamily: "IPv6"

Environment:

  • OS (e.g. from /etc/os-release): AlmaLinux 10.1 (Heliotrope Lion)
  • Kernel (e.g. uname -a): Linux ltdatakcore01 6.12.0-124.43.1.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Mar 11 06:19:32 EDT 2026 x86_64 GNU/Linux
  • Cloud provider or hardware configuration: bare metal
  • Rook version (use rook version inside of a Rook Pod): rook: v1.19.2, go: go1.25.6
  • Storage backend version (e.g. for ceph do ceph -v): ceph version 20.2.0 (69f84cc2651aa259a15bc192ddaabd3baba07489) tentacle (stable)
  • Kubernetes version (use kubectl version): Client Version: v1.33.9, Kustomize Version: v5.6.0, Server Version: v1.35.1+k0s (I am aware of the minor version skew of +/-1)
  • Kubernetes cluster type (e.g. Tectonic, GKE, OpenShift): k0s
  • Storage backend status (e.g. for Ceph use ceph health in the [Rook Ceph toolbox](https://rook.io/docs/rook/latest-release/Troubleshooting/ceph-toolbox/#interactive-toolbox)): ceph health hangs due to non functional cluster