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 applications not showing on Dapr Dashboard #249

Closed
7i11 opened this issue Mar 25, 2023 · 2 comments
Closed

StatefulSet applications not showing on Dapr Dashboard #249

7i11 opened this issue Mar 25, 2023 · 2 comments
Assignees
Labels
Milestone

Comments

@7i11
Copy link

7i11 commented Mar 25, 2023

I have Dapr installed in my Kubernetes cluster using the Helm Chart version 1.10.4. It is working perfectly, and I have a couple of applications listed on the dashboard. It should be noted that these applications are ReplicaSets with the Dapr sidecar running in the same pod, injected by the sidecar-injector using Dapr podAnnotations.

The problem:
I am also installing Keycloak using a Helm Chart. However, instead of being a ReplicaSet, Keycloak is implemented as a StatefulSet. I was able to add the Dapr annotations to the Keycloak pods, and the sidecar was successfully injected into the pods. In fact, Dapr can interact with Keycloak without any issues. The only problem is that Keycloak does not show up in the list of applications on the Dapr Dashboard.

I understand that the Dapr Dashboard might not fully support StatefulSets yet, but it would be great if this feature could be added in future releases to provide a more comprehensive view of all Dapr-enabled applications in a cluster, regardless of whether they are ReplicaSets or StatefulSets.

Thank you.

@7i11 7i11 added the kind/bug label Mar 25, 2023
fabrizziocht added a commit to fabrizziocht/dapr-dashboard that referenced this issue Jul 2, 2023
Changes made in instances.go
* Get kubernetes instances including StatefulSets
* Update GetMetadata method
* Update GetDeploymentConfiguration method
* Update Logstream to read container logs from StatefulSets
Changes made in helmchart:
* include statefulsets as allowed resource for Role/ClusterRole CDR
* Update dashboard.yaml to allow statefulsets in Role/ClusterRole CDR

Signed-off-by: fabrizziocht <[email protected]>
@fabrizziocht
Copy link
Contributor

fabrizziocht commented Jul 2, 2023

Hello, I've just send a PR with some changes to read statefulsets with dapr: PR#255
Regards
Fabri

yaron2 added a commit that referenced this issue Jul 7, 2023
Changes made in instances.go
* Get kubernetes instances including StatefulSets
* Update GetMetadata method
* Update GetDeploymentConfiguration method
* Update Logstream to read container logs from StatefulSets
Changes made in helmchart:
* include statefulsets as allowed resource for Role/ClusterRole CDR
* Update dashboard.yaml to allow statefulsets in Role/ClusterRole CDR

Signed-off-by: fabrizziocht <[email protected]>
Co-authored-by: Yaron Schneider <[email protected]>
@7i11
Copy link
Author

7i11 commented Aug 25, 2023

@fabrizziocht Thank you! 🤘

@7i11 7i11 closed this as completed Aug 25, 2023
@artursouza artursouza added this to the 0.14.0 milestone Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants