-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
daprd sidecar startup error: "/.kube/config: no such file or directory" #7682
Comments
I'm having the same intermittent issue. I raised it in the dapr discord and received this advice:
|
Indeed @darraghjones what is written there is correct. It is suspicious to me as to why this is happening intermittently and seemingly at random. Containers in Kubernetes Pods will only execute once all associated volumes are ready and successfully mounted into the target container(s). Service account tokens should always be written to the underlying tmpfs volume before mounting into the Dapr container. If confident that the service account has been enabled for mounting to Pods, this happening randomly would suggest to me that there may be some kind of race condition in the underlying Kubernetes provider (AKS). |
I am also facing similar kind of issue in AKS cronjob->job->pod->containers(application and daprd). time="2024-04-26T02:49:33.995282529Z" level=info msg="Closing HTTP server [::1]:3500…" app_id=newcsp-scheduler-notifyinactiveusers instance=newcsp-scheduler-notifyinactiveusers-1-z962r scope=dapr.runtime.http type=log ver=1.12.0 Appreciate if you have any solution for above issue at the earliest. |
A note here that this was seen intermittently in EKS as well, so not AKS specific. |
In what area(s)?
/area runtime
What version of Dapr?
1.13.0 but also observed in 1.12 and 1.11.
Expected Behavior
Dapr sidecars start up successfully when a K8S pod is created
Actual Behavior
Dapr sidecar fails with
K8S tries to restart the
daprd
container several times, but they all fail.The only way to get out of it is to delete the whole pod: K8S will recreate the pod and
daprd
can be started successfullySteps to Reproduce the Problem
We've been observing this for months now: Every couple of days, one of the pods in our AKS clusters fails to start up, because the
daprd
sidecar crashes (with the error above).As soon as we delete the pod and let K8S create a new one,
daprd
starts up successfully.Frequency: We have multiple clusters, each running a dozen or more pods with Dapr sidecar. Once every couple of days one of them fails to start up. By now, it has happened to all AKS clusters and all our services. I.e. the issue is not specific to one of our services or a specific cluster/node.
The text was updated successfully, but these errors were encountered: