Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StatefulSet example is broken #2001

Closed
lblackstone opened this issue Jun 2, 2022 · 0 comments · Fixed by #2476
Closed

StatefulSet example is broken #2001

lblackstone opened this issue Jun 2, 2022 · 0 comments · Fixed by #2476
Assignees
Labels
area/docs Improvements or additions to documentation kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed
Milestone

Comments

@lblackstone
Copy link
Member

lblackstone commented Jun 2, 2022

The StatefulSet example is not working. I found two problems:

  1. The resource names may not contain capital letters, because that results in the following error: resource default/nginxService-8df4f50e was not successfully created by the Kubernetes API server : Service "nginxService-8df4f50e" is invalid: metadata.name: Invalid value: "nginxService-8df4f50e": a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name', or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?')
  2. The Service includes a selector, which causes Pulumi's await logic to block waiting for the referenced Pods to be ready. Since the StatefulSet is waiting on the Service, this causes a circular dependency. This could be resolved by either removing the selector from the Service, or by adding the skipAwait annotation.

Related: #1995 (comment)

@lblackstone lblackstone self-assigned this Jun 27, 2023
@lblackstone lblackstone added this to the 0.91 milestone Jun 27, 2023
@lblackstone lblackstone added area/docs Improvements or additions to documentation kind/bug Some behavior is incorrect or out of spec labels Jun 27, 2023
@pulumi-bot pulumi-bot added the resolution/fixed This issue was fixed label Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docs Improvements or additions to documentation kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants