dynasafe / SCDF-Knative-workflow

A example workflow that combine SCDF and Knative
0 stars 0 forks source link

EndpointsNotReady : Waiting for Envoys to receive Endpoints data. #3

Open tsunejui opened 2 years ago

tsunejui commented 2 years ago

looks like this is an issue about ingress error:

image

https://github.com/knative-sandbox/net-contour/blob/main/pkg/reconciler/contour/contour_test.go

image

please take a look contour setting:

https://knative.dev/v1.3-docs/install/yaml-install/serving/install-serving-with-yaml/#install-a-networking-layer

checking contour-external service:

kc get service -n contour-external
tsunejui commented 2 years ago

net-contour repo:

https://github.com/knative-sandbox/net-contour

config-network.yaml:

    # Note that changing the Ingress class of an existing Route

    # will result in undefined behavior.  Therefore it is best to only

    # update this value during the setup of Knative, to avoid getting

    # undefined behavior.

    ingress-class: "istio.ingress.networking.knative.dev"

Please take a look the field ingress-class by the following command:

kc describe configmaps -n knative-serving | grep 'ingress-class'

It should be contour.ingress.networking.knative.dev:

kubectl patch configmap/config-network \
  --namespace knative-serving \
  --type merge \
  --patch '{"data":{"ingress-class":"contour.ingress.networking.knative.dev"}}'
tsunejui commented 2 years ago

knative-contour-external:

image

net-contour.yaml:

image

Fetch the External IP address or CNAME by running the command:

kubectl --namespace contour-external get service envoy
tsunejui commented 2 years ago

https://projectcontour.io/docs/v1.18.0/architecture/

{"severity":"ERROR","timestamp":"2022-08-04T06:10:06.136918285Z","logger":"net-contour-controller","caller":"status/status.go:403","message":"Probing of http://kafka-producer-00001.gen-1.kafka-producer.knative-serving.net-contour.invalid/ failed, IP: 10.76.181.217:8080, ready: false, error: error roundtripping http://kafka-producer-00001.gen-1.kafka-producer.knative-serving.net-contour.invalid/healthz: context deadline exceeded (depth: 0)","commit":"d83d3ed","knative.dev/controller":"knative.dev.net-contour.pkg.reconciler.contour.Reconciler","knative.dev/kind":"networking.internal.knative.dev.Ingress","knative.dev/traceid":"31ef952b-d81d-4519-8a47-77ae98602a46","knative.dev/key":"knative-serving/kafka-producer--ep","stacktrace":"knative.dev/networking/pkg/status.(*Prober).processWorkItem\n\tknative.dev/networking@v0.0.0-20220302134042-e8b2eb995165/pkg/status/status.go:403\nknative.dev/networking/pkg/status.(*Prober).Start.func1\n\tknative.dev/networking@v0.0.0-20220302134042-e8b2eb995165/pkg/status/status.go:288"}
{"severity":"ERROR","timestamp":"2022-08-04T06:10:06.137013399Z","logger":"net-contour-controller","caller":"status/status.go:403","message":"Probing of http://kafka-producer-00001.gen-1.kafka-producer.knative-serving.net-contour.invalid/ failed, IP: 10.79.69.177:8080, ready: false, error: error roundtripping http://kafka-producer-00001.gen-1.kafka-producer.knative-serving.net-contour.invalid/healthz: dial tcp 10.79.69.177:8080: i/o timeout (depth: 0)","commit":"d83d3ed","knative.dev/controller":"knative.dev.net-contour.pkg.reconciler.contour.Reconciler","knative.dev/kind":"networking.internal.knative.dev.Ingress","knative.dev/traceid":"31ef952b-d81d-4519-8a47-77ae98602a46","knative.dev/key":"knative-serving/kafka-producer--ep","stacktrace":"knative.dev/networking/pkg/status.(*Prober).processWorkItem\n\tknative.dev/networking@v0.0.0-20220302134042-e8b2eb995165/pkg/status/status.go:403\nknative.dev/networking/pkg/status.(*Prober).Start.func1\n\tknative.dev/networking@v0.0.0-20220302134042-e8b2eb995165/pkg/status/status.go:288"}
{"severity":"ERROR","timestamp":"2022-08-04T06:10:06.138138519Z","logger":"net-contour-controller","caller":"status/status.go:403","message":"Probing of http://kafka-producer-00001.gen-1.kafka-producer.knative-serving.net-contour.invalid/ failed, IP: 10.79.69.178:8080, ready: false, error: error roundtripping http://kafka-producer-00001.gen-1.kafka-producer.knative-serving.net-contour.invalid/healthz: context deadline exceeded (depth: 0)","commit":"d83d3ed","knative.dev/controller":"knative.dev.net-contour.pkg.reconciler.contour.Reconciler","knative.dev/kind":"networking.internal.knative.dev.Ingress","knative.dev/traceid":"31ef952b-d81d-4519-8a47-77ae98602a46","knative.dev/key":"knative-serving/kafka-producer--ep","stacktrace":"knative.dev/networking/pkg/status.(*Prober).processWorkItem\n\tknative.dev/networking@v0.0.0-20220302134042-e8b2eb995165/pkg/status/status.go:403\nknative.dev/networking/pkg/status.(*Prober).Start.func1\n\tknative.dev/networking@v0.0.0-20220302134042-e8b2eb995165/pkg/status/status.go:288"}