pulumi-kubernetes: Headless Service for StatefulSet hangs on create/update "Finding Pods to direct traffic to"

Headless service required for StatefulSets with appropriate label selectors and clusterIP set to "None"tries to wait for pods. Workaround is to abort the create, do a refresh, and then subsequent updates are ok.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 26 (13 by maintainers)

Commits related to this issue

Most upvoted comments

It worked - thank you @lblackstone.

@pbzdyl I just wanted to say, thank you so much for being so persistent! If you’d like a shirt or a beanie, let me know and I’ll send it your way. Drop me a line @ alex@pulumi.com

@pbzdyl You should be able to test out this fix in the latest dev release.(@pulumi/kubernetes@0.19.1-dev.1548452037)

@pbzdyl Alright, just wanted to confirm. I’ll take another look at the provider code today.

@lblackstone here it is:

StatefulSet .spec.selector.matchLabels = { app: example, deployment: example } StatefulSet .spec.template.metadata.labels = { app: example, deployment: example } Service .spec.selector = { app: example, deployment: example }

Also:

$ kubectl get pods --selector app=example,deployment=example
NAME           READY   STATUS    RESTARTS   AGE
<redacted>-0   1/1     Running   0          2d

which shows that all the metadata and selectors are configured correctly.