-
Notifications
You must be signed in to change notification settings - Fork 115
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
Headless Service for StatefulSet hangs on create/update "Finding Pods to direct traffic to" #1514
Comments
I want to add that I'm facing this very same issue but when setupping PostgreSQL into AKS via StatefulSet and Service. For some reason Service initialization gets stuck forever and it doesn't create it at all into Kubernetes. As described above, it gets stuck to "Finding pods to direct traffic to" and then it finally timeouts with identical error. |
Could you try to reproduce this with 3.5.1+ version of the Kubernetes provider? You would have to make sure that a previous version of the provider is not being pulled in (e.g if the resource was created with an older provider version). Deleting the resources and creating with the latest Kubernetes provider would be one way to ensure this is the case. We have made several fixes in the await logic in #1647 which went out in v3.5.1. |
Indeed it work fine now with the package "@pulumi/kubernetes" in version 3.6.0. I let you close the issue. |
With the latest version 3.10.1, I'm facing the same issue as well. The k8s provider version is v1.21.2-eks-06eac09. import * as pulumi from '@pulumi/pulumi';
import * as k8s from '@pulumi/kubernetes';
/* resources */
const name = 'redis';
const service = new k8s.core.v1.Service(name, {
spec: {
clusterIP: 'None',
selector: { app: name },
ports: [{ port: 6379 }]
}
}); |
@Iced-Sun I'd guess that you are somehow pulling in an old version of the k8s provider that doesn't contain the fix. As a workaround, I'd suggest adding the |
Hello, currently I cannot create a healdess service which i want to used from my statefullSet,
the issue #248 looks exactly the same. But was closed 2 years ago so it's probably another problem.
Expected behavior
Service headless was not blocking my statefullset deployment
Current behavior
When I update my Pulumi stack I have the following issue :
Steps to reproduce
I try to upgrade Loki from version 2.1.0 to 2.2.0 and they move from deployment to statefullset.
I used helm to generate a staticfile :
helm install --dry-run promtail grafana/loki > loki.yaml
Then I clean the Helm stuff and used kube2pulumi to have a loki.ts file.
After some modification regarding my project I have something like that
Context (Environment)
Kubernetes Server version :
1.19.8
Pulumi resources :
The text was updated successfully, but these errors were encountered: