Skip to content

In Alertmanager, when IP family in k8s Service is configured as "IPv6 only" on dual stack lab, Pod to pod communication happens over IPv4 address. #4803

@AVESH-RAI

Description

@AVESH-RAI

What did you do?

Alertmanager is brought in HA mode on a dual stack K8s cluster. The Service configured is

`
args:

  • --cluster.advertise-address=[$(POD_IP)]:9094
  • --cluster.peer=alertmanager-pod-0.headless-svc.cluster.local:9094
  • --cluster.peer=alertmanager-pod-1.headless-svc.cluster.local:9094
    `

Service.yaml
spec: ipFamilies: - IPv6 ipFamilyPolicy: SingleStack

What did you expect to see?

Pod should communicate over IPv6 address only.

What did you see instead? Under which circumstances?

We see that pod is communicating over IPv4 address, even when headless service is configured in IPv6 (IP family)

System information

Kubernetes

Alertmanager version

alertmanager-v0.28.1


### Alertmanager configuration file

```yaml

Prometheus version


Prometheus configuration file

Logs


Metadata

Metadata

Assignees

Type

No type

Projects

Status

To triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions