zalando / zalando/postgres-operator

pod_role_label missing with istio sidecar injected

Open
#680 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
5.2k
Forks
1.1k
Avg merge
2d 16h
Merged PRs (30d)
3

Description

We are running Istio in Kubernetes with automatic sidecar injection. When we turn on the sidecar injection on the postgres statefulset we face an issue, the postgres operator is not able to update the statefulset pods label. Specifically the spilo-role label is not generated, resulting in Endpoints not getting generated.
Is there a way to get around this issue?

We are currently using postgres-operator version 1.1.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with postgres-operator 1.1.0, Kubernetes automatic sidecar injection, and the postgres StatefulSet. Inspect how the spilo-role pod label is generated and how its absence affects Endpoints; done means the label and Endpoints are generated when sidecar injection is enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes, postgresql
Domain
databases, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.