superwjc commented on issue #676:
URL:
https://github.com/apache/apisix-ingress-controller/issues/676#issuecomment-917425511
> Ofcourse not 😂, APISIX Dashboard is a management component of APISIX.
Indeed you don't require it as the APISIX Ingress Controller already acts as
the manager of APISIX cluster. You should send requests to APISIX cluster, i.e.
the `apisix-gateway` service.
I send the request to the apisix-gateway, but returns 404.
1. apisix-gateway is avaliable and the NodePort is in listening state:
```
[root@k8s-master-1 ~]# ns="default"; kubectl -n "${ns}" get svc | grep
gateway
apisix-gateway NodePort 10.111.90.162 <none>
80:32632/TCP 72m
[root@k8s-master-1 ~]#
[root@k8s-master-1 ~]#
[root@k8s-master-1 ~]# ss -atn | grep :32632
LISTEN 0 128 *:32632 *:*
```
2. the apisixroute rule is exists, with no errors.
```
# **curl -fsSL 10.108.12.42:9180/apisix/admin/upstreams -H 'X-API-KEY:
edd1c9f034335f136f87ad84b625c8f1' | jq**
{
"action": "get",
"node": {
"nodes": [
{
"modifiedIndex": 14,
"value": {
"scheme": "http",
"desc": "Created by apisix-ingress-controller, DO NOT modify it
manually",
"create_time": 1631369108,
"type": "roundrobin",
"id": "5ce57b8e",
"update_time": 1631369108,
"labels": {
"managed-by": "apisix-ingress-controller"
},
"hash_on": "vars",
"nodes": [
{
"weight": 100,
"host": "10.244.196.4",
"priority": 0,
"port": 80
}
],
"pass_host": "pass",
"name": "default_httpbin_80"
},
"createdIndex": 13,
"key": "/apisix/upstreams/5ce57b8e"
}
],
"dir": true,
"key": "/apisix/upstreams"
},
"count": 1
}
# **curl -fsSL 10.108.12.42:9180/apisix/admin/routes -H 'X-API-KEY:
edd1c9f034335f136f87ad84b625c8f1' | jq**
{
"action": "get",
"node": {
"nodes": [
{
"modifiedIndex": 15,
"value": {
"labels": {
"managed-by": "apisix-ingress-controller"
},
"desc": "Created by apisix-ingress-controller, DO NOT modify it
manually",
"create_time": 1631369108,
"upstream_id": "5ce57b8e",
"id": "add8e28c",
"update_time": 1631369108,
"name": "default_httpserver-route_rule1",
"uris": [
"/httpbin/*"
],
"priority": 0,
"status": 1,
"hosts": [
"local.httpbin.org"
]
},
"createdIndex": 15,
"key": "/apisix/routes/add8e28c"
}
],
"dir": true,
"key": "/apisix/routes"
},
"count": 1
}
# ns="default"; kubectl -n "${ns}" get apisixroute
Warning: apisix.apache.org/v1 ApisixRoute is deprecated
NAME HOSTS URIS AGE
httpserver-route ["local.httpbin.org"] ["/httpbin/*"] 4h42m
```
3. the "local.httpbin.org" host is reachable
```
# ping -c 1 local.httpbin.org
PING local.httpbin.org (172.16.100.101) 56(84) bytes of data.
64 bytes from k8s-master-1 (172.16.100.101): icmp_seq=1 ttl=64 time=0.059 ms
--- local.httpbin.org ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.059/0.059/0.059/0.000 ms
```
4. the "httpbin" service is accessable, by ClusterIP:Port
```
# ns="default"; kubectl get svc | grep httpbin
httpbin ClusterIP 10.102.62.126 <none> 80/TCP
4h57m
#
#
#
# curl -sSL -D - 10.102.62.126 -o /dev/null
HTTP/1.1 200 OK
Server: gunicorn/19.9.0
Date: Sat, 11 Sep 2021 15:26:51 GMT
Connection: keep-alive
Content-Type: text/html; charset=utf-8
Content-Length: 9593
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
```
5. access to apisix-gateway NodeIP:NodePort with the path "httpbin", 404
returns.
```
# curl -sSL -D - local.httpbin.org:32632/httpbin -o /dev/null
HTTP/1.1 404 Not Found
Date: Sat, 11 Sep 2021 15:29:17 GMT
Content-Type: text/plain; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Server: APISIX/2.7
#
# curl -sSL -D - local.httpbin.org:32632/httpbin/ -o /dev/null
HTTP/1.1 404 NOT FOUND
Content-Type: text/html; charset=utf-8
Content-Length: 233
Connection: keep-alive
Date: Sat, 11 Sep 2021 15:29:22 GMT
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Server: APISIX/2.7
```
--
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]