-
Notifications
You must be signed in to change notification settings - Fork 277
Not working with dapr #1420
Comments
Not sure this is a feature request, I expect a transparent proxy to honor the health checks of containers in the pod. @draychev let me know if there's something I can do to help with this. |
@yaron2 I'll take you up on your offer to help. @shashankram and I chatted and decided we'll reclassify as a feature request because we had planned to spend some focused time on testing OSM w/ Dapr and fine-tuning, but we have not had a chance to get to this. 🔜 |
That's a fair point. Is Dapr a sidecar to the application pod? If the liveness probes are failing, it seems as though these are being blocked by the proxy. The proxy blocks all traffic by default, this can be changed by enabling permissive mode to allow service-to-service traffic between namespaces participating in the service mesh (during install: @exosapp @yaron2 would you mind trying the Dapr inegration with permissive mode enabled during install? |
Ignore this comment, the result will be the same. We need a bit more work to allow enabling this. |
It seems like you found the root cause, can you explain what causes this? |
@yaron2 the problem seems to be that we only allow traffic destined to the application service pod and not other services. We have more work to do before inbound traffic to non application containers works as expected. |
How do you know which container in a pod is the application container? |
Refer to https://github.com/openservicemesh/osm/blob/main/pkg/catalog/xds_certificates.go#L19 There are some limitations that need to be addressed:
|
I was able to run Dapr successfully on my cluster and the health probes did not fail. I installed Dapr via Dapr cli and set the enable mtls to false, osm was installed via cli (with --enable-permissive-traffic-policy=true). We updated the health probes in osm : https://github.com/openservicemesh/osm/blob/main/docs/content/docs/application_health_probes.md which could have potentially fixed the issue. FYI, I am working on this issue #2875 as a follow up and will write a doc to demo how osm works with the Dapr hello kubernetes example (https://github.com/dapr/quickstarts/tree/master/hello-kubernetes) |
Bug description:
Affected area (please mark with X where applicable):
Expected behavior:
I can successfully run dapr applications in my cluster
Steps to reproduce the bug (as precisely as possible):
Install dapr with helm, install OSM.
Deploy anything with the
dapr.io/enabled: "true"
annotation and the pods will start crashing.How was OSM installed?:
osm install
.Anything else we need to know?:
It looks like that when envoy is injected, the dapr sidecar fails health checks.
If I remove OSM, everything works fine.
Environment:
osm version
): v0.1.0kubectl version
): 1.16.10The text was updated successfully, but these errors were encountered: