DokiDoki1103 commented on issue #2057:
URL:
https://github.com/apache/apisix-ingress-controller/issues/2057#issuecomment-1820384612
这是 logs
I will add some logs and change the logging level of the ingress control to
debug
```
2023-11-21T15:38:55+08:00 debug providers/controller.go:603
success check health for default cluster
2023-11-21T15:38:59+08:00 debug apisix/apisix_route.go:506
ApisixRoute add event arrived {"key": "rbd-system/tcp-route", "object":
{"metadata":{"name":"tcp-route","namespace":"rbd-system","uid":"fef15baf-91fe-4aeb-968a-4395b1a7abdc","resourceVersion":"384135","generation":1,"creationTimestamp":"2023-11-21T07:38:59Z","annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"apisix.apache.org/v2\",\"kind\":\"ApisixRoute\",\"metadata\":{\"annotations\":{},\"name\":\"tcp-route\",\"namespace\":\"rbd-system\"},\"spec\":{\"stream\":[{\"backend\":{\"serviceName\":\"rbd-app-ui\",\"servicePort\":7070},\"match\":{\"ingressPort\":7070},\"name\":\"rbd-app-ui\",\"protocol\":\"TCP\"}]}}\n"},"managedFields":[{"manager":"kubectl-client-side-apply","operation":"Update","apiVersion":"apisix.apache.org/v2","time":"2023-11-21T07:38:59Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:kubectl.kubernetes.io/last-applied-configuration
":{}}},"f:spec":{".":{},"f:stream":{}}}}]},"spec":{"stream":[{"name":"rbd-app-ui","protocol":"TCP","match":{"ingressPort":7070},"backend":{"serviceName":"rbd-app-ui","servicePort":7070}}]},"status":{}}}
2023-11-21T15:38:59+08:00 debug apisix/apisix_route.go:334
translated ApisixRoute {"routes": null, "upstreams":
[{"id":"d791841c","name":"rbd-system_rbd-app-ui_7070","desc":"Created by
apisix-ingress-controller, DO NOT modify it
manually","labels":{"managed-by":"apisix-ingress-controller"},"type":"roundrobin","nodes":[{"host":"10.42.0.112","port":7070,"weight":100}],"scheme":"http"}],
"apisix_route":
{"Object":{"metadata":{"name":"tcp-route","namespace":"rbd-system","uid":"fef15baf-91fe-4aeb-968a-4395b1a7abdc","resourceVersion":"384135","generation":1,"creationTimestamp":"2023-11-21T07:38:59Z","annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"apisix.apache.org/v2\",\"kind\":\"ApisixRoute\",\"metadata\":{\"annotations\":{},\"name\":\"tcp-route\",\"namespace\":\"rbd-system\"},\"spec\":{\"stream\":[{\"backend\":{\"serviceName\":\"rbd-app-ui\",\"servicePort\":7070},\"match\":{\"ingressPort\":7070},\"name\":\"rbd-app-ui\",\"protocol\":\"
TCP\"}]}}\n"},"managedFields":[{"manager":"kubectl-client-side-apply","operation":"Update","apiVersion":"apisix.apache.org/v2","time":"2023-11-21T07:38:59Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:kubectl.kubernetes.io/last-applied-configuration":{}}},"f:spec":{".":{},"f:stream":{}}}}]},"spec":{"stream":[{"name":"rbd-app-ui","protocol":"TCP","match":{"ingressPort":7070},"backend":{"serviceName":"rbd-app-ui","servicePort":7070}}]},"status":{}}},
"pluginConfigs": null}
2023-11-21T15:38:59+08:00 debug apisix/apisix_route.go:372 sync
ApisixRoute to cluster {"event_type": "add", "add":
{"Routes":null,"Upstreams":[{"id":"d791841c","name":"rbd-system_rbd-app-ui_7070","desc":"Created
by apisix-ingress-controller, DO NOT modify it
manually","labels":{"managed-by":"apisix-ingress-controller"},"type":"roundrobin","nodes":[{"host":"10.42.0.112","port":7070,"weight":100}],"scheme":"http"}],"StreamRoutes":[{"id":"935d8ec8","desc":"Created
by apisix-ingress-controller, DO NOT modify it
manually","labels":{"managed-by":"apisix-ingress-controller"},"server_port":7070,"upstream_id":"d791841c"}],"SSLs":null,"PluginConfigs":null,"PluginMetadatas":null,"GlobalRules":null},
"update": null, "delete": null}
2023-11-21T15:38:59+08:00 debug apisix/upstreamservicerelation.go:91
try to create upstreamService in cache {"cluster": "default"}
2023-11-21T15:38:59+08:00 debug apisix/upstreamservicerelation.go:47
try to get upstreamService in cache {"service_name":
"rbd-system_rbd-app-ui", "cluster": "default"}
2023-11-21T15:38:59+08:00 debug apisix/cluster.go:1225 push event
to adapter {"event": "create", "key": "/apisix/upstreams/d791841c", "value":
"{\"id\":\"d791841c\",\"name\":\"rbd-system_rbd-app-ui_7070\",\"desc\":\"Created
by apisix-ingress-controller, DO NOT modify it
manually\",\"labels\":{\"managed-by\":\"apisix-ingress-controller\"},\"type\":\"roundrobin\",\"nodes\":[{\"host\":\"10.42.0.112\",\"port\":7070,\"weight\":100}],\"scheme\":\"http\"}"}
2023-11-21T15:38:59+08:00 debug apisix/cluster.go:1225 push event
to adapter {"event": "create", "key": "/apisix/stream_routes/935d8ec8",
"value": "{\"id\":\"935d8ec8\",\"desc\":\"Created by apisix-ingress-controller,
DO NOT modify it
manually\",\"labels\":{\"managed-by\":\"apisix-ingress-controller\"},\"server_port\":7070,\"upstream_id\":\"d791841c\"}"}
2023-11-21T15:38:59+08:00 info adapter/etcd.go:147 created
object{revision 11 23 <nil>} {key 15 0 /apisix/upstreams/d791841c <nil>}
2023-11-21T15:38:59+08:00 info adapter/etcd.go:147 created
object{revision 11 24 <nil>} {key 15 0 /apisix/stream_routes/935d8ec8 <nil>}
2023-11-21T15:39:00+08:00 debug providers/controller.go:603
success check health for default cluster
2023-11-21T15:39:05+08:00 debug providers/controller.go:603
success check health for default cluster
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]