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
- Add support for headless `Service` The await logic for `Service` hangs forever if the user supplies a headless `Service` that has an empty selector (i.e., targets no `Pod`s). This commit will re-use ... — committed to pulumi/pulumi-kubernetes by hausdorff 6 years ago
- Add support for headless `Service` The await logic for `Service` hangs forever if the user supplies a headless `Service` that has an empty selector (i.e., targets no `Pod`s). This commit will re-use ... — committed to pulumi/pulumi-kubernetes by hausdorff 6 years ago
- Add support for headless `Service` The await logic for `Service` hangs forever if the user supplies a headless `Service` that has an empty selector (i.e., targets no `Pod`s). This commit will re-use ... — committed to pulumi/pulumi-kubernetes by hausdorff 6 years ago
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:
which shows that all the metadata and selectors are configured correctly.