Open grecuionut opened 10 months ago
If I'm not mistaken, the generated service name for a statefulset comes from the serviceName
field in the StatefulSet.
Having looked over a number of the Loki/Mimir/Tempo helm charts we currently use, many of them do not correctly template the serviceName against the appropriate headless Service.
We are trying to scale down ingesters using the MutatingAdmissionWebhook as described here.
The required labels and annotations were added to the objects as shown below:
When trying the scale down the
statefulset/mimir-ingester-zone-a
, the operator failing to resolve the pod when sending HTTP post request, as the fqdn is constructed as<pod_name>.<service_name>.<namespace>.svc.cluster.local
.These are the existing services:
In order to resolve the pod, the headless service should be used instead (mimir-ingester-headless). More info
Operator logs