superwjc commented on issue #676:
URL:
https://github.com/apache/apisix-ingress-controller/issues/676#issuecomment-917417795
I reinstalled except apisix-dashboard, and changed the default service type
of apisix-ingress-controller from "ClusterIP" to "NodePort", in the
"apisix-ingress-controller/templates/service.yaml" file. Without
apisix-dashboard, request directly to httpbin by ClusterIP:Port was still as
intended, but returned 404 by apisixroute.
The remaining settings kept unchanged.
```
helm list
NAME NAMESPACE REVISION UPDATED
STATUS CHART APP
VERSION
apisix default 1 2021-09-11
22:03:14.353396758 +0800 CST deployed apisix-0.4.0
2.7.0
apisix-ingress-controller default 1 2021-09-11
22:04:48.211454527 +0800 CST deployed apisix-ingress-controller-0.7.0
1.2.0
```
```
# ns="default"; kubectl get po,svc -n "${ns}"
NAME READY STATUS RESTARTS
AGE
pod/apisix-66cc75967c-ftxpz 1/1 Running 0
26m
pod/apisix-etcd-0 1/1 Running 0
26m
pod/apisix-etcd-1 1/1 Running 0
26m
pod/apisix-etcd-2 1/1 Running 0
26m
pod/apisix-ingress-controller-698c9cc86-dwl9m 1/1 Running 0
24m
pod/apisix-ingress-controller-698c9cc86-mtgmr 1/1 Running 0
24m
pod/httpbin 1/1 Running 0
4h
NAME TYPE CLUSTER-IP EXTERNAL-IP
PORT(S) AGE
service/apisix-admin ClusterIP 10.108.12.42 <none>
9180/TCP 26m
service/apisix-etcd ClusterIP 10.97.244.157 <none>
2379/TCP,2380/TCP 26m
service/apisix-etcd-headless ClusterIP None <none>
2379/TCP,2380/TCP 26m
service/apisix-gateway NodePort 10.111.90.162 <none>
80:32632/TCP 26m
**service/apisix-ingress-controller NodePort 10.96.121.41 <none>
80:31332/TCP 24m**
**service/httpbin ClusterIP 10.102.62.126 <none>
80/TCP 4h**
service/kubernetes ClusterIP 10.96.0.1 <none>
443/TCP 5h14m
```
```
# 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 14:30:12 GMT
Connection: keep-alive
Content-Type: text/html; charset=utf-8
Content-Length: 9593
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
```
```
# curl -sSL -D - local.httpbin.org:31332/httpbin/ -o /dev/null
**HTTP/1.1 404 Not Found**
Content-Type: text/plain
Date: Sat, 11 Sep 2021 14:32:11 GMT
Content-Length: 18
# curl -sSL -D - local.httpbin.org:31332/httpbin -o /dev/null
**HTTP/1.1 404 Not Found**
Content-Type: text/plain
Date: Sat, 11 Sep 2021 14:32:18 GMT
Content-Length: 18
#
# curl -sSL -D - local.httpbin.org:31332 -o /dev/null
**HTTP/1.1 404 Not Found**
Content-Type: text/plain
Date: Sat, 11 Sep 2021 14:32:25 GMT
Content-Length: 18
```
Anyone has solution or suggestions?
--
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]