You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/04/09 10:12:58 UTC
[GitHub] [apisix-ingress-controller] wjx8382 opened a new issue #356: request help: KubeSphere setup
wjx8382 opened a new issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356
### Issue description
When I try to test the connection on KubeSphere following the practice example:
https://apisix.apache.org/docs/ingress-controller/practices/proxy-the-httpbin-service-with-ingress
```
# httpbin-ingress.yaml
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: httpserver-ingress
annotations:
kubernetes.io/ingress.class: apisix
spec:
rules:
- host: local.httpbin.org
http:
paths:
- backend:
serviceName: httpbin-85d57ddd75-wtmwh
servicePort: 80
path: /
```
![image](https://user-images.githubusercontent.com/6300935/114163610-f87e4d80-995c-11eb-9af4-d9fb8a5bd857.png)
When I access `httpbin` through the `NodePort` of `httpbin`, I can get a successful page(http://local.httpbin.org:30469/)
But when accessing `httpbin` through `NodePort` of `apisix-ingress-controller`, display `error 404 page not found`(http://local.httpbin.org:30984/)
Is it my configuration wrong?
### Environment
* your apisix-ingress-controller version (0.4.0);
* your Kubernetes cluster version (Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.7", GitCommit:"be3d344ed06bff7a4fc60656200a93c74f31f9a4", GitTreeState:"clean", BuildDate:"2020-02-11T19:34:02Z", GoVersion:"go1.13.6", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.7", GitCommit:"be3d344ed06bff7a4fc60656200a93c74f31f9a4", GitTreeState:"clean", BuildDate:"2020-02-11T19:24:46Z", GoVersion:"go1.13.6", Compiler:"gc", Platform:"linux/amd64"});
* if you run apisix-ingress-controller in Bare-metal environment, also show your OS version (Linux ks-allinone 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux).
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] WinSuperStar commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
WinSuperStar commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-834966401
I got the error message like this:
2021-05-07T22:29:45+08:00 error controller/endpoint.go:141 failed to get upstream {"upstream": "dev-httpbin_httpbin_80", "cluster": "name=; base_url=http://apisix-admin:9180/apisix/admin", "error": "Get http://apisix-admin:9180/apisix/admin/upstreams/d18cbca1: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"}
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-834242577
> when I run in kubeSphere,I got some warn message like this:
>
> 2021-05-07T17:45:11+08:00 warn controller/endpoint.go:93 service kube-system/kube-scheduler was deleted
> 2021-05-07T17:45:11+08:00 warn controller/endpoint.go:93 service default/ceph.com-rbd was deleted
> 2021-05-07T17:45:11+08:00 warn controller/endpoint.go:93 service default/ceph.com-cephfs was deleted
> 2021-05-07T17:45:12+08:00 warn controller/endpoint.go:93 service kube-system/kube-controller-manager was deleted
> 2021-05-07T17:45:13+08:00 warn controller/endpoint.go:93 service kube-system/kube-scheduler was deleted
> 2021-05-07T17:45:13+08:00 warn controller/endpoint.go:93 service default/ceph.com-rbd was deleted
> 2021-05-07T17:45:13+08:00 warn controller/endpoint.go:93 service default/ceph.com-cephfs was deleted
> 2021-05-07T17:45:14+08:00 warn controller/endpoint.go:93 service kube-system/kube-controller-manager was deleted
>
> and also I found that no route was published to the apisix-gateway!
>
> this is bug of apisix ingress controller?
These logs are redundant but harmless, also, You don't give any useful contexts, I cannot judge whether this is a bug.
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-834242867
> > when I run in kubeSphere,I got some warn message like this:
> > 2021-05-07T17:45:11+08:00 warn controller/endpoint.go:93 service kube-system/kube-scheduler was deleted
> > 2021-05-07T17:45:11+08:00 warn controller/endpoint.go:93 service default/ceph.com-rbd was deleted
> > 2021-05-07T17:45:11+08:00 warn controller/endpoint.go:93 service default/ceph.com-cephfs was deleted
> > 2021-05-07T17:45:12+08:00 warn controller/endpoint.go:93 service kube-system/kube-controller-manager was deleted
> > 2021-05-07T17:45:13+08:00 warn controller/endpoint.go:93 service kube-system/kube-scheduler was deleted
> > 2021-05-07T17:45:13+08:00 warn controller/endpoint.go:93 service default/ceph.com-rbd was deleted
> > 2021-05-07T17:45:13+08:00 warn controller/endpoint.go:93 service default/ceph.com-cephfs was deleted
> > 2021-05-07T17:45:14+08:00 warn controller/endpoint.go:93 service kube-system/kube-controller-manager was deleted
> > and also I found that no route was published to the apisix-gateway!
> > this is bug of apisix ingress controller?
>
> These logs are redundant but harmless, also, You don't give any useful contexts, I cannot judge whether this is a bug.
If you want to report your problem in detail, please create another issue, thanks!
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] wjx8382 commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
wjx8382 commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-818479508
> I found these routes were created by apisix-dashboard, just do not mix the use of apisix-ingress-controller and manual configurations from apisix-dashboard.
>
> Also, the route you pasted doesn't contain the one in the YAML configuration:
>
> ```yaml
> # httpbin-route.yaml
> apiVersion: apisix.apache.org/v2alpha1
> kind: ApisixRoute
> metadata:
> name: httpserver-route
> spec:
> http:
> - name: rule1
> match:
> hosts:
> - local.httpbin.org
> paths:
> - /*
> backend:
> serviceName: httpbin-85d57ddd75-wtmwh
> servicePort: 80
> ```
I deleted those routes created by apisix-dashboard,then running`kubectl apply -f httpbin-route.yaml -n tools`,routes still doesn't contain this route.
```{"node":{"key":"\/apisix\/routes","nodes":{},"dir":true},"action":"get","count":"1"}```
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-818648270
Maybe there are some internal bugs, could you paste the error log of apisix-ingress-controller.
Just paste the result of `kubectl logs -f {apisix-ingress-controller pod name}`.
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-825400637
> @tokers And why APISIX logs many upstream 404 request?
>
> ```
> 10.233.99.187 - - [23/Apr/2021:03:31:13 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/152e4f9e HTTP/1.1" 404 39 0.002 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
> 10.233.99.187 - - [23/Apr/2021:03:31:13 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/606b3be0 HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
> 10.233.99.187 - - [23/Apr/2021:03:31:13 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/76a75cec HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
> 10.233.99.187 - - [23/Apr/2021:03:31:13 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/76a75cec HTTP/1.1" 404 39 0.002 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
> 10.233.99.187 - - [23/Apr/2021:03:31:13 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/857c0d11 HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
> 10.233.99.187 - - [23/Apr/2021:03:31:13 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/fcd5c4d6 HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
> 10.233.99.187 - - [23/Apr/2021:03:31:13 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/5b9e2a1 HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
> 10.233.99.187 - - [23/Apr/2021:03:31:13 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/10986d9 HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
> 10.233.99.187 - - [23/Apr/2021:03:31:13 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/5b6fae7c HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
> 10.233.99.187 - - [23/Apr/2021:03:31:13 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/5e521191 HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
> 10.233.99.187 - - [23/Apr/2021:03:31:13 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/7abcf232 HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
> ```
The endpoints controller inside apisix-ingress-controller will try to fetch the Upstream object so it can apply the newest endpoints set to upstream node, if the object not found, it means the endpoints/service is not related with any ApisixRoute objects, and endpoints controller will ignore it.
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-821056240
@wjx8382 Could you please paste the `config-default.yaml` and `config.yaml` in the APISIX pod?
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] WinSuperStar removed a comment on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
WinSuperStar removed a comment on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-834966401
I got the error message like this:
2021-05-07T22:29:45+08:00 error controller/endpoint.go:141 failed to get upstream {"upstream": "dev-httpbin_httpbin_80", "cluster": "name=; base_url=http://apisix-admin:9180/apisix/admin", "error": "Get http://apisix-admin:9180/apisix/admin/upstreams/d18cbca1: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"}
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] wjx8382 commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
wjx8382 commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-823721227
> > > From the configuration snippet the `allow_admin` was rendered correctly, so it should work, would you like to try the `0.5.0` version, it was released few days ago.
> >
> >
> > After using the `0.5.0` version,apisix-ingress-controller logs
> > ```
> > 2021-04-20T15:26:34+08:00 warn controller/apisix_route.go:205 sync ApisixRoute failed, will retry {"object": {"Type":1,"Object":{"Key":"tools/httpserver-route","OldObject":null,"GroupVersion":"apisix.apache.org/v2alpha1"},"Tombstone":null}, "error": "2 errors occurred:\n\t* object missing primary index\n\t* object missing primary index\n\n"}
> > ```
> >
> >
> > In addition, why `helm install apisix` will also generate apisix-ingress-controller, but its version is `0.4.0`, `helm install apisix-ingress-controller` will generate apisix-ingress-controller which version is `0.5.0`, which should I use?
>
> The error `object missing primary index` occurred basically due to you wrote some route on apisix-dashboard. It's **NOT** a recommended way.
>
> > In addition, why helm install apisix will also generate apisix-ingress-controller, but its version is 0.4.0, helm install apisix-ingress-controller will generate apisix-ingress-controller which version is 0.5.0, which should I use?
>
> We recommend you to use the `0.5.0` release.
I did not write anything on apisix-dashboard.After I installed APISIX and apisix-ingress-controller,i just running `kubectl apply -f httpbin-route.yaml -n tools`
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers edited a comment on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
tokers edited a comment on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-830995674
> But when I entry apisix pod request my http server is connect. see ...
>
> ```
> [root@k8smaster01 ~]# kubectl -n ws get pods -owide
> NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
> apisix-gw-deployment-7bf998c895-ckprd 1/1 Running 0 85d 10.244.1.3 k8snode04 <none> <none>
> apisix-ingress-controller-fb9fc6579-prlzk 1/1 Running 0 99m 10.244.12.24 k8snode07 <none> <none>
> myhttp-794dc65cdc-ph2f9 1/1 Running 0 136d 10.244.4.198 k8snode02 <none> <none>
> test-network-776895fdbd-8xb7p 1/1 Running 0 54d 10.244.3.75 k8snode01 <none> <none>
> [root@k8smaster01 ~]# kubectl -n ws exec -it apisix-gw-deployment-7bf998c895-ckprd -- curl http://myhttp-svc:9527
> Hello world ,The runtime os is [ linux ], Now member is [ myhttp-794dc65cdc-ph2f9 ]
> [root@k8smaster01 ~]# kubectl -n ws exec -it apisix-gw-deployment-7bf998c895-ckprd -- curl http://myhttp-svc:9527/dbsecurity
> Hello world ,The runtime os is [ linux ], Now member is [ myhttp-794dc65cdc-ph2f9 ]
> [root@k8smaster01 ~]# ls
> anaconda-ks.cfg dd.txt epel-release-latest-7.noarch.rpm sudo-1.9.5-3.el6.x86_64.rpm test.sh xengine-dev-configmap.yaml
> [root@k8smaster01 ~]# kubectl -n ws exec -it apisix-gw-deployment-7bf998c895-ckprd -- curl http://10.244.4.198:9527
> Hello world ,The runtime os is [ linux ], Now member is [ myhttp-794dc65cdc-ph2f9 ]
> [root@k8smaster01 ~]#
> ```
>
> And apisix pod have some error log .
>
> ```
> 10.244.12.24 - - [02/May/2021:15:08:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/fe7b69e0 HTTP/1.1" 404 39 0.002 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> 10.244.12.24 - - [02/May/2021:15:08:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/4157840a HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> 10.244.12.24 - - [02/May/2021:15:08:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/313d7085 HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> 10.244.12.24 - - [02/May/2021:15:11:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/fe7b69e0 HTTP/1.1" 404 39 0.002 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> 10.244.12.24 - - [02/May/2021:15:11:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/4157840a HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> 10.244.12.24 - - [02/May/2021:15:11:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/313d7085 HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> 10.244.12.24 - - [02/May/2021:15:14:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/fe7b69e0 HTTP/1.1" 404 39 0.002 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> 10.244.12.24 - - [02/May/2021:15:14:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/4157840a HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> 10.244.12.24 - - [02/May/2021:15:14:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/313d7085 HTTP/1.1" 404 39 0.004 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> 10.244.12.24 - - [02/May/2021:15:17:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/fe7b69e0 HTTP/1.1" 404 39 0.003 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> 10.244.12.24 - - [02/May/2021:15:17:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/4157840a HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> 10.244.12.24 - - [02/May/2021:15:17:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/313d7085 HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb
> ```
>
> my ApisixRoute :
>
> ```yaml
> apiVersion: apisix.apache.org/v1
> kind: ApisixRoute
> metadata:
> name: myhttp
> spec:
> rules:
> - host: storm.myhttp.io
> http:
> paths:
> - backend:
> serviceName: myhttp-svc
> servicePort: 9527
> path: /*
> ```
>
> my server information:
>
> ```
> # deployment
> Name: myhttp
> Namespace: ws
> CreationTimestamp: Thu, 19 Nov 2020 14:37:32 +0800
> Labels: app=myhttp
> Annotations: deployment.kubernetes.io/revision: 8
> Selector: app=myhttp
> Replicas: 1 desired | 1 updated | 1 total | 1 available | 0 unavailable
> StrategyType: RollingUpdate
> MinReadySeconds: 0
> RollingUpdateStrategy: 25% max unavailable, 25% max surge
> Pod Template:
> Labels: app=myhttp
> Annotations: cattle.io/timestamp: 2020-11-27T09:33:34Z
> field.cattle.io/ports:
> [[{"containerPort":9527,"dnsName":"myhttp","hostPort":0,"kind":"ClusterIP","name":"9527tcp02","protocol":"TCP","sourcePort":0}]]
> Service Account: apisix-view-serviceaccount
> Containers:
> myhttp:
> Image: registry.storm.io/ops/myhttp:v0.1
> Port: 9527/TCP
> Host Port: 0/TCP
> Command:
> /test
> Limits:
> cpu: 500m
> memory: 512Mi
> Requests:
> cpu: 100m
> memory: 128Mi
> Environment: <none>
> Mounts: <none>
> Volumes: <none>
> Conditions:
> Type Status Reason
> ---- ------ ------
> Progressing True NewReplicaSetAvailable
> Available True MinimumReplicasAvailable
> OldReplicaSets: <none>
> NewReplicaSet: myhttp-794dc65cdc (1/1 replicas created)
> Events: <none>
>
> -----------------------------
> # svc
> Name: myhttp-svc
> Namespace: ws
> Labels: <none>
> Annotations: Selector: app=myhttp
> Type: ClusterIP
> IP: 10.1.186.3
> Port: http 9527/TCP
> TargetPort: 9527/TCP
> Endpoints: 10.244.4.198:9527
> Session Affinity: None
> Events: <none>
> ```
What is your problem? And if it's not related to this issue, please enroll your problem by creating another issue.
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-823299160
> > From the configuration snippet the `allow_admin` was rendered correctly, so it should work, would you like to try the `0.5.0` version, it was released few days ago.
>
> After using the `0.5.0` version,apisix-ingress-controller logs
>
> ```
> 2021-04-20T15:26:34+08:00 warn controller/apisix_route.go:205 sync ApisixRoute failed, will retry {"object": {"Type":1,"Object":{"Key":"tools/httpserver-route","OldObject":null,"GroupVersion":"apisix.apache.org/v2alpha1"},"Tombstone":null}, "error": "2 errors occurred:\n\t* object missing primary index\n\t* object missing primary index\n\n"}
> ```
>
> In addition, why `helm install apisix` will also generate apisix-ingress-controller, but its version is `0.4.0`, `helm install apisix-ingress-controller` will generate apisix-ingress-controller which version is `0.5.0`, which should I use?
The error `object missing primary index` occurred basically due to you wrote some route on apisix-dashboard. It's **NOT** a recommended way.
> In addition, why helm install apisix will also generate apisix-ingress-controller, but its version is 0.4.0, helm install apisix-ingress-controller will generate apisix-ingress-controller which version is 0.5.0, which should I use?
We recommend you to use the `0.5.0` release.
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] sober-wang commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
sober-wang commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-830765132
But when I entry apisix pod request my http server is connect. see ...
```
[root@k8smaster01 ~]# kubectl -n ws get pods -owide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
apisix-gw-deployment-7bf998c895-ckprd 1/1 Running 0 85d 10.244.1.3 k8snode04 <none> <none>
apisix-ingress-controller-fb9fc6579-prlzk 1/1 Running 0 99m 10.244.12.24 k8snode07 <none> <none>
myhttp-794dc65cdc-ph2f9 1/1 Running 0 136d 10.244.4.198 k8snode02 <none> <none>
test-network-776895fdbd-8xb7p 1/1 Running 0 54d 10.244.3.75 k8snode01 <none> <none>
[root@k8smaster01 ~]# kubectl -n ws exec -it apisix-gw-deployment-7bf998c895-ckprd -- curl http://myhttp-svc:9527
Hello world ,The runtime os is [ linux ], Now member is [ myhttp-794dc65cdc-ph2f9 ]
[root@k8smaster01 ~]# kubectl -n ws exec -it apisix-gw-deployment-7bf998c895-ckprd -- curl http://myhttp-svc:9527/dbsecurity
Hello world ,The runtime os is [ linux ], Now member is [ myhttp-794dc65cdc-ph2f9 ]
[root@k8smaster01 ~]# ls
anaconda-ks.cfg dd.txt epel-release-latest-7.noarch.rpm sudo-1.9.5-3.el6.x86_64.rpm test.sh xengine-dev-configmap.yaml
[root@k8smaster01 ~]# kubectl -n ws exec -it apisix-gw-deployment-7bf998c895-ckprd -- curl http://10.244.4.198:9527
Hello world ,The runtime os is [ linux ], Now member is [ myhttp-794dc65cdc-ph2f9 ]
[root@k8smaster01 ~]#
```
And apisix pod have some error log .
```
10.244.12.24 - - [02/May/2021:15:08:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/fe7b69e0 HTTP/1.1" 404 39 0.002 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
10.244.12.24 - - [02/May/2021:15:08:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/4157840a HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
10.244.12.24 - - [02/May/2021:15:08:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/313d7085 HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
10.244.12.24 - - [02/May/2021:15:11:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/fe7b69e0 HTTP/1.1" 404 39 0.002 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
10.244.12.24 - - [02/May/2021:15:11:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/4157840a HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
10.244.12.24 - - [02/May/2021:15:11:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/313d7085 HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
10.244.12.24 - - [02/May/2021:15:14:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/fe7b69e0 HTTP/1.1" 404 39 0.002 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
10.244.12.24 - - [02/May/2021:15:14:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/4157840a HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
10.244.12.24 - - [02/May/2021:15:14:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/313d7085 HTTP/1.1" 404 39 0.004 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
10.244.12.24 - - [02/May/2021:15:17:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/fe7b69e0 HTTP/1.1" 404 39 0.003 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
10.244.12.24 - - [02/May/2021:15:17:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/4157840a HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
10.244.12.24 - - [02/May/2021:15:17:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/313d7085 HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb
```
my ApisixRoute :
```yaml
apiVersion: apisix.apache.org/v1
kind: ApisixRoute
metadata:
name: myhttp
spec:
rules:
- host: storm.myhttp.io
http:
paths:
- backend:
serviceName: myhttp-svc
servicePort: 9527
path: /*
```
my server information:
```
# deployment
Name: myhttp
Namespace: ws
CreationTimestamp: Thu, 19 Nov 2020 14:37:32 +0800
Labels: app=myhttp
Annotations: deployment.kubernetes.io/revision: 8
Selector: app=myhttp
Replicas: 1 desired | 1 updated | 1 total | 1 available | 0 unavailable
StrategyType: RollingUpdate
MinReadySeconds: 0
RollingUpdateStrategy: 25% max unavailable, 25% max surge
Pod Template:
Labels: app=myhttp
Annotations: cattle.io/timestamp: 2020-11-27T09:33:34Z
field.cattle.io/ports:
[[{"containerPort":9527,"dnsName":"myhttp","hostPort":0,"kind":"ClusterIP","name":"9527tcp02","protocol":"TCP","sourcePort":0}]]
Service Account: apisix-view-serviceaccount
Containers:
myhttp:
Image: registry.storm.io/ops/myhttp:v0.1
Port: 9527/TCP
Host Port: 0/TCP
Command:
/test
Limits:
cpu: 500m
memory: 512Mi
Requests:
cpu: 100m
memory: 128Mi
Environment: <none>
Mounts: <none>
Volumes: <none>
Conditions:
Type Status Reason
---- ------ ------
Progressing True NewReplicaSetAvailable
Available True MinimumReplicasAvailable
OldReplicaSets: <none>
NewReplicaSet: myhttp-794dc65cdc (1/1 replicas created)
Events: <none>
-----------------------------
# svc
Name: myhttp-svc
Namespace: ws
Labels: <none>
Annotations: Selector: app=myhttp
Type: ClusterIP
IP: 10.1.186.3
Port: http 9527/TCP
TargetPort: 9527/TCP
Endpoints: 10.244.4.198:9527
Session Affinity: None
Events: <none>
```
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] wjx8382 commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
wjx8382 commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-825362843
> @wjx8382 Have you ever seen how many routes are there in APISIX?
```
{"node":{"dir":true,"key":"\/apisix\/routes","nodes":{}},"action":"get","count":"1"}
```
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-817075481
apisix-ingress-controller itself is not the proxy component but the controller to control the proxy plane (APISIX), you should acesss APISIX instead. By the way, have you installed APISIX?
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-817686675
> I have installed APISIX, how can I access httpbin through apisix
>
> > > > apisix-ingress-controller itself is not the proxy component but the controller to control the proxy plane (APISIX), you should access APISIX instead. By the way, did you install APISIX?
> > >
> > >
> > > Our service is client-->nginx-->ingress-nginx-->service-->pod. I want to replace ingress-nginx with apisix. Should I use APISIX instead of apisix-ingress-controller? (I have installed APISIX:2.3-alpine)
> >
> >
> > No, you need both the apisix-ingress-controller and APISIX. Just as I said above, apisix-ingress-controller is the control plane and APISIX is the data plane that processes the traffic. Even in ingress-nginx, there are two components, the one is nginx (DP) and the other is the controller (CP).
>
> I have installed APISIX, how can I access httpbin through apisix?
See http://apisix.apache.org/docs/ingress-controller/practices/proxy-the-httpbin-service for details.
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] sober-wang commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
sober-wang commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-831100552
>
>
> > But when I entry apisix pod request my http server is connect. see ...
> > ```
> > [root@k8smaster01 ~]# kubectl -n ws get pods -owide
> > NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
> > apisix-gw-deployment-7bf998c895-ckprd 1/1 Running 0 85d 10.244.1.3 k8snode04 <none> <none>
> > apisix-ingress-controller-fb9fc6579-prlzk 1/1 Running 0 99m 10.244.12.24 k8snode07 <none> <none>
> > myhttp-794dc65cdc-ph2f9 1/1 Running 0 136d 10.244.4.198 k8snode02 <none> <none>
> > test-network-776895fdbd-8xb7p 1/1 Running 0 54d 10.244.3.75 k8snode01 <none> <none>
> > [root@k8smaster01 ~]# kubectl -n ws exec -it apisix-gw-deployment-7bf998c895-ckprd -- curl http://myhttp-svc:9527
> > Hello world ,The runtime os is [ linux ], Now member is [ myhttp-794dc65cdc-ph2f9 ]
> > [root@k8smaster01 ~]# kubectl -n ws exec -it apisix-gw-deployment-7bf998c895-ckprd -- curl http://myhttp-svc:9527/dbsecurity
> > Hello world ,The runtime os is [ linux ], Now member is [ myhttp-794dc65cdc-ph2f9 ]
> > [root@k8smaster01 ~]# ls
> > anaconda-ks.cfg dd.txt epel-release-latest-7.noarch.rpm sudo-1.9.5-3.el6.x86_64.rpm test.sh xengine-dev-configmap.yaml
> > [root@k8smaster01 ~]# kubectl -n ws exec -it apisix-gw-deployment-7bf998c895-ckprd -- curl http://10.244.4.198:9527
> > Hello world ,The runtime os is [ linux ], Now member is [ myhttp-794dc65cdc-ph2f9 ]
> > [root@k8smaster01 ~]#
> > ```
> >
> >
> > And apisix pod have some error log .
> > ```
> > 10.244.12.24 - - [02/May/2021:15:08:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/fe7b69e0 HTTP/1.1" 404 39 0.002 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> > 10.244.12.24 - - [02/May/2021:15:08:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/4157840a HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> > 10.244.12.24 - - [02/May/2021:15:08:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/313d7085 HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> > 10.244.12.24 - - [02/May/2021:15:11:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/fe7b69e0 HTTP/1.1" 404 39 0.002 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> > 10.244.12.24 - - [02/May/2021:15:11:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/4157840a HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> > 10.244.12.24 - - [02/May/2021:15:11:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/313d7085 HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> > 10.244.12.24 - - [02/May/2021:15:14:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/fe7b69e0 HTTP/1.1" 404 39 0.002 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> > 10.244.12.24 - - [02/May/2021:15:14:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/4157840a HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> > 10.244.12.24 - - [02/May/2021:15:14:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/313d7085 HTTP/1.1" 404 39 0.004 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> > 10.244.12.24 - - [02/May/2021:15:17:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/fe7b69e0 HTTP/1.1" 404 39 0.003 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> > 10.244.12.24 - - [02/May/2021:15:17:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/4157840a HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> > 10.244.12.24 - - [02/May/2021:15:17:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/313d7085 HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb
> > ```
> >
> >
> > my ApisixRoute :
> > ```yaml
> > apiVersion: apisix.apache.org/v1
> > kind: ApisixRoute
> > metadata:
> > name: myhttp
> > spec:
> > rules:
> > - host: storm.myhttp.io
> > http:
> > paths:
> > - backend:
> > serviceName: myhttp-svc
> > servicePort: 9527
> > path: /*
> > ```
> >
> >
> > my server information:
> > ```
> > # deployment
> > Name: myhttp
> > Namespace: ws
> > CreationTimestamp: Thu, 19 Nov 2020 14:37:32 +0800
> > Labels: app=myhttp
> > Annotations: deployment.kubernetes.io/revision: 8
> > Selector: app=myhttp
> > Replicas: 1 desired | 1 updated | 1 total | 1 available | 0 unavailable
> > StrategyType: RollingUpdate
> > MinReadySeconds: 0
> > RollingUpdateStrategy: 25% max unavailable, 25% max surge
> > Pod Template:
> > Labels: app=myhttp
> > Annotations: cattle.io/timestamp: 2020-11-27T09:33:34Z
> > field.cattle.io/ports:
> > [[{"containerPort":9527,"dnsName":"myhttp","hostPort":0,"kind":"ClusterIP","name":"9527tcp02","protocol":"TCP","sourcePort":0}]]
> > Service Account: apisix-view-serviceaccount
> > Containers:
> > myhttp:
> > Image: registry.storm.io/ops/myhttp:v0.1
> > Port: 9527/TCP
> > Host Port: 0/TCP
> > Command:
> > /test
> > Limits:
> > cpu: 500m
> > memory: 512Mi
> > Requests:
> > cpu: 100m
> > memory: 128Mi
> > Environment: <none>
> > Mounts: <none>
> > Volumes: <none>
> > Conditions:
> > Type Status Reason
> > ---- ------ ------
> > Progressing True NewReplicaSetAvailable
> > Available True MinimumReplicasAvailable
> > OldReplicaSets: <none>
> > NewReplicaSet: myhttp-794dc65cdc (1/1 replicas created)
> > Events: <none>
> >
> > -----------------------------
> > # svc
> > Name: myhttp-svc
> > Namespace: ws
> > Labels: <none>
> > Annotations: Selector: app=myhttp
> > Type: ClusterIP
> > IP: 10.1.186.3
> > Port: http 9527/TCP
> > TargetPort: 9527/TCP
> > Endpoints: 10.244.4.198:9527
> > Session Affinity: None
> > Events: <none>
> > ```
>
> What is your problem? And if it's not related to this issue, please enroll your problem by creating another issue.
Can't passbay the apisxi connecet the server.
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers closed issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
tokers closed issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] wjx8382 commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
wjx8382 commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-825364797
@tokers And why APISIX logs many upstream 404 request?
```
10.233.99.187 - - [23/Apr/2021:03:31:13 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/152e4f9e HTTP/1.1" 404 39 0.002 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
10.233.99.187 - - [23/Apr/2021:03:31:13 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/606b3be0 HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
10.233.99.187 - - [23/Apr/2021:03:31:13 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/76a75cec HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
10.233.99.187 - - [23/Apr/2021:03:31:13 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/76a75cec HTTP/1.1" 404 39 0.002 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
10.233.99.187 - - [23/Apr/2021:03:31:13 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/857c0d11 HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
10.233.99.187 - - [23/Apr/2021:03:31:13 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/fcd5c4d6 HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
10.233.99.187 - - [23/Apr/2021:03:31:13 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/5b9e2a1 HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
10.233.99.187 - - [23/Apr/2021:03:31:13 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/10986d9 HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
10.233.99.187 - - [23/Apr/2021:03:31:13 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/5b6fae7c HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
10.233.99.187 - - [23/Apr/2021:03:31:13 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/5e521191 HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
10.233.99.187 - - [23/Apr/2021:03:31:13 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/7abcf232 HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
```
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] wjx8382 commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
wjx8382 commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-818384772
> > @tokers Why does `kubectl exec -it -n tools apisix-7987b5b7f-tmrk7 -- curl http://127.0.0.1:9080/headers -H 'Host: local.httpbin.org'` returns `{"error_msg":"404 Route Not Found"}`
> > ```
> > # httpbin-route.yaml
> > apiVersion: apisix.apache.org/v2alpha1
> > kind: ApisixRoute
> > metadata:
> > name: httpserver-route
> > spec:
> > http:
> > - name: rule1
> > match:
> > hosts:
> > - local.httpbin.org
> > paths:
> > - /*
> > backend:
> > serviceName: httpbin-85d57ddd75-wtmwh
> > servicePort: 80
> > ```
>
> Could you access the apisix admin API by
>
> ```
> kubectl exec -it -n tools apisix-7987b5b7f-tmrk7 -- curl http://127.0.0.1:9180/apisix/admin/routes
> ```
>
> To see the routes?
It returns
```
<html>
<head><title>401 Authorization Required</title></head>
<body>
<center><h1>401 Authorization Required</h1></center>
<hr><center>openresty</center>
</body>
</html>
```
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-817495354
> > apisix-ingress-controller itself is not the proxy component but the controller to control the proxy plane (APISIX), you should access APISIX instead. By the way, did you install APISIX?
>
> Our service is client-->nginx-->ingress-nginx-->service-->pod. I want to replace ingress-nginx with apisix. Should I use APISIX instead of apisix-ingress-controller? (I have installed APISIX:2.3-alpine)
No, you need both the apisix-ingress-controller and APISIX. Just as I said above, apisix-ingress-controller is the control plane and APISIX is the data plane that processes the traffic. Even in ingress-nginx, there are two components, the one is nginx (DP) and the other is the controller (CP).
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-818440741
I found these routes were created by apisix-dashboard, just do not mix the use of apisix-ingress-controller and manual dashboard confiugration.
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers edited a comment on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
tokers edited a comment on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-817075481
apisix-ingress-controller itself is not the proxy component but the controller to control the proxy plane (APISIX), you should access APISIX instead. By the way, did you install APISIX?
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-821022251
> @tokers After I tweak the `allow.ipList` in `apisix-helm-chart/charts/apisix/values.yaml`,there are still errors.
>
> ```
> allow:
> # The ip range for allowing access to Apache APISIX
> ipList:
> - 127.0.0.1/24
> - 172.16.110.186
> - 10.233.99.249
> ```
>
> apisix-ingress-controller logs
>
> ```
> 2021-04-16T14:31:58+08:00 warn apisix/upstream.go:113 upstream not found{"fullname": "tools_httpbin-85d57ddd75-wtmwh_80", "url": "http://apisix-admin:9180/apisix/admin/upstreams/5e521191", "cluster": ""}
> 2021-04-16T14:31:58+08:00 error state/builder.go:191 failed to create upstream tools_httpbin-85d57ddd75-wtmwh_80: unexpected status code 403; error message: <html>
> <head><title>403 Forbidden</title></head>
> <body>
> <center><h1>403 Forbidden</h1></center>
> <hr><center>openresty</center>
> </body>
> </html>
> ```
>
> APISIX logs
>
> ```
> 10.233.99.249 - - [16/Apr/2021:06:31:45 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/5e521191 HTTP/1.1" 404 39 0.000 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
> 10.233.99.249 - - [16/Apr/2021:06:31:58 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/5e521191 HTTP/1.1" 404 39 0.002 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
> ```
Are you sure the IP of apisix-ingress-controller is configured correctly?
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] wjx8382 commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
wjx8382 commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-823055957
> From the configuration snippet the `allow_admin` was rendered correctly, so it should work, would you like to try the `0.5.0` version, it was released few days ago.
After using the `0.5.0` version,apisix-ingress-controller logs
```
2021-04-20T15:26:34+08:00 warn controller/apisix_route.go:205 sync ApisixRoute failed, will retry {"object": {"Type":1,"Object":{"Key":"tools/httpserver-route","OldObject":null,"GroupVersion":"apisix.apache.org/v2alpha1"},"Tombstone":null}, "error": "2 errors occurred:\n\t* object missing primary index\n\t* object missing primary index\n\n"}
```
In addition, why `helm install apisix` will also generate apisix-ingress-controller, but its version is `0.4.0`, `helm install apisix-ingress-controller` will generate apisix-ingress-controller which version is `0.5.0`, which should I use?
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] wjx8382 commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
wjx8382 commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-835002006
@tokers The above my errors are caused by not setting config.apisix.baseURL when installing apisix-ingress-controller by helm. Now I set the local url to reinstall apisix-ingress-controller. It’s all right now, thanks!
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-823969789
@wjx8382 Have you ever seen how many routes are there in APISIX?
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] wjx8382 commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
wjx8382 commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-820950898
@tokers After I tweak the ```allow.ipList``` in ```apisix-helm-chart/charts/apisix/values.yaml```,there are still errors.
```
allow:
# The ip range for allowing access to Apache APISIX
ipList:
- 127.0.0.1/24
- 172.16.110.186
- 10.233.99.249
```
apisix-ingress-controller logs
```
2021-04-16T14:31:58+08:00 warn apisix/upstream.go:113 upstream not found{"fullname": "tools_httpbin-85d57ddd75-wtmwh_80", "url": "http://apisix-admin:9180/apisix/admin/upstreams/5e521191", "cluster": ""}
2021-04-16T14:31:58+08:00 error state/builder.go:191 failed to create upstream tools_httpbin-85d57ddd75-wtmwh_80: unexpected status code 403; error message: <html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>openresty</center>
</body>
</html>
```
APISIX logs
```
10.233.99.249 - - [16/Apr/2021:06:31:45 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/5e521191 HTTP/1.1" 404 39 0.000 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
10.233.99.249 - - [16/Apr/2021:06:31:58 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/5e521191 HTTP/1.1" 404 39 0.002 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
```
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] wjx8382 commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
wjx8382 commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-825359611
@tokers I reinstalled APISIX again,and now logs this error
```
2021-04-23T11:12:25+08:00 warn controller/apisix_route.go:205 sync ApisixRoute failed, will retry {"object": {"Type":1,"Object":{"Key":"tools/httpserver-route","OldObject":null,"GroupVersion":"apisix.apache.org/v2alpha1"},"Tombstone":null}, "error": "2 errors occurred:\n\t* Get http://apisix-admin:9180/apisix/admin/routes: dial tcp: lookup apisix-admin on 169.254.25.10:53: no such host\n\t* Get http://apisix-admin:9180/apisix/admin/routes: dial tcp: lookup apisix-admin on 169.254.25.10:53: no such host\n\n"}
```
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers edited a comment on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
tokers edited a comment on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-818440741
I found these routes were created by apisix-dashboard, just do not mix the use of apisix-ingress-controller and manual configurations from apisix-dashboard.
Also, the route you pasted doesn't contain the one in the YAML configuration:
```yaml
# httpbin-route.yaml
apiVersion: apisix.apache.org/v2alpha1
kind: ApisixRoute
metadata:
name: httpserver-route
spec:
http:
- name: rule1
match:
hosts:
- local.httpbin.org
paths:
- /*
backend:
serviceName: httpbin-85d57ddd75-wtmwh
servicePort: 80
```
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] wjx8382 commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
wjx8382 commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-817440406
> apisix-ingress-controller itself is not the proxy component but the controller to control the proxy plane (APISIX), you should access APISIX instead. By the way, did you install APISIX?
Our service is client-->nginx-->ingress-nginx-->service-->pod. I want to replace ingress-nginx with apisix. Should I use APISIX instead of apisix-ingress-controller? (I have installed APISIX:2.3-alpine)
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-822434727
From the configuration snippet the `allow_admin` was rendered correctly, so it should work, would you like to try the `0.5.0` version, it was released few days ago.
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] wjx8382 commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
wjx8382 commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-818383007
@tokers Why does `kubectl exec -it -n tools apisix-7987b5b7f-tmrk7 -- curl http://127.0.0.1:9080/headers -H 'Host: local.httpbin.org'` returns `{"error_msg":"404 Route Not Found"}`
```
# httpbin-route.yaml
apiVersion: apisix.apache.org/v2alpha1
kind: ApisixRoute
metadata:
name: httpserver-route
spec:
http:
- name: rule1
match:
hosts:
- local.httpbin.org
paths:
- /*
backend:
serviceName: httpbin-85d57ddd75-wtmwh
servicePort: 80
```
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-819178628
@wjx8382 You should change the log level, you can set it to `debug` by adding a `--set` option when using helm install.
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] wjx8382 commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
wjx8382 commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-817562226
I have installed APISIX, how can I access httpbin through apisix
> > > apisix-ingress-controller itself is not the proxy component but the controller to control the proxy plane (APISIX), you should access APISIX instead. By the way, did you install APISIX?
> >
> >
> > Our service is client-->nginx-->ingress-nginx-->service-->pod. I want to replace ingress-nginx with apisix. Should I use APISIX instead of apisix-ingress-controller? (I have installed APISIX:2.3-alpine)
>
> No, you need both the apisix-ingress-controller and APISIX. Just as I said above, apisix-ingress-controller is the control plane and APISIX is the data plane that processes the traffic. Even in ingress-nginx, there are two components, the one is nginx (DP) and the other is the controller (CP).
I have installed APISIX, how can I access httpbin through apisix?
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-819276970
@wjx8382 Your APISIX Admin API doesn't allow apisix-ingress-controller to access it. Please tweak the `allow.ipList` option, https://github.com/apache/apisix-helm-chart/blob/master/charts/apisix/values.yaml#L124.
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] wjx8382 commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
wjx8382 commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-819170124
> Maybe there are some internal bugs, could you paste the error log of apisix-ingress-controller.
>
> Just paste the result of `kubectl logs -f {apisix-ingress-controller pod name}`.
No error log,only
```[GIN] 2021/04/14 - 10:06:19 | 200 | 56.195µs | 172.16.110.186 | GET "/healthz"```
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-818383744
> @tokers Why does `kubectl exec -it -n tools apisix-7987b5b7f-tmrk7 -- curl http://127.0.0.1:9080/headers -H 'Host: local.httpbin.org'` returns `{"error_msg":"404 Route Not Found"}`
>
> ```
> # httpbin-route.yaml
> apiVersion: apisix.apache.org/v2alpha1
> kind: ApisixRoute
> metadata:
> name: httpserver-route
> spec:
> http:
> - name: rule1
> match:
> hosts:
> - local.httpbin.org
> paths:
> - /*
> backend:
> serviceName: httpbin-85d57ddd75-wtmwh
> servicePort: 80
> ```
Could you access the apisix admin API by
```
kubectl exec -it -n tools apisix-7987b5b7f-tmrk7 -- curl http://127.0.0.1:9180/apisix/admin/routes
```
To see the routes?
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] wjx8382 commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
wjx8382 commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-818391921
> > @tokers Why does `kubectl exec -it -n tools apisix-7987b5b7f-tmrk7 -- curl http://127.0.0.1:9080/headers -H 'Host: local.httpbin.org'` returns `{"error_msg":"404 Route Not Found"}`
> > ```
> > # httpbin-route.yaml
> > apiVersion: apisix.apache.org/v2alpha1
> > kind: ApisixRoute
> > metadata:
> > name: httpserver-route
> > spec:
> > http:
> > - name: rule1
> > match:
> > hosts:
> > - local.httpbin.org
> > paths:
> > - /*
> > backend:
> > serviceName: httpbin-85d57ddd75-wtmwh
> > servicePort: 80
> > ```
>
> Could you access the apisix admin API by
>
> ```
> kubectl exec -it -n tools apisix-7987b5b7f-tmrk7 -- curl http://127.0.0.1:9180/apisix/admin/routes
> ```
>
> To see the routes?
`kubectl exec -it -n tools apisix-7987b5b7f-tmrk7 -- curl http://127.0.0.1:9180/apisix/admin/routes -H 'X-API-Key: edd1c9f034335f136f87ad84b625c8f1'` returns
```
{"node":{"key":"\/apisix\/routes","nodes":[{"value":{"update_time":1615967207,"uris":["\/hello"],"id":"1","status":1,"create_time":1615797004,"name":"hello","upstream_id":"346344795876098996","plugins":{"fault-injection":{"disable":true,"delay":{"duration":3}},"proxy-rewrite":{"disable":false,"scheme":"https","regex_uri":["^\/samplePrefix\/get(.*)","\/hello$1"]}},"vars":{}},"key":"\/apisix\/routes\/1","modifiedIndex":1902,"createdIndex":39},{"value":{"priority":0,"uri":"\/grpctest","methods":["GET"],"status":1,"create_time":1615878242,"update_time":1615878242,"upstream":{"pass_host":"pass","nodes":{"127.0.0.1:50051":1},"hash_on":"vars","type":"roundrobin"},"plugins":{"grpc-transcode":{"deadline":0,"service":"helloworld.Greeter","proto_id":"1","method":"SayHello"}},"id":"111"},"key":"\/apisix\/routes\/111","modifiedIndex":1350,"createdIndex":1350},{"value":{"update_time":1618212271,"uris":["\/httpbin"],"id":"350111307409654788","methods":["GET","HEAD","POST","PUT","DELETE","OPTIONS
","PATCH"],"status":1,"hosts":["local.httpbin.org"],"create_time":1618212201,"name":"httpbin","upstream_id":"350111087426798596","vars":{}},"key":"\/apisix\/routes\/350111307409654788","modifiedIndex":18185,"createdIndex":18182},{"value":{"update_time":1618210980,"uris":["\/get"],"id":"5","status":1,"create_time":1615789201,"name":"test","upstream_id":"50","plugins":{"http-logger":{"uri":"http:\/\/127.0.0.1:80\/postendpoint?param=1","disable":false},"limit-conn":{"rejected_code":503,"conn":1,"burst":0,"disable":true,"key":"remote_addr","default_conn_delay":0.1},"basic-auth":{"disable":true},"fault-injection":{"disable":true,"abort":{"http_status":403,"body":"Fault Injection!\n","vars":[[["arg_name","==","jack"]]]}},"proxy-rewrite":{"scheme":"https","disable":false},"authz-keycloak":{"token_endpoint":"http:\/\/127.0.0.1:8090\/auth\/realms\/{client_id}\/protocol\/openid-connect\/token","disable":true,"audience":"Client ID","permissions":["resource name#scope name"]},"ip-restriction":{
"whitelist":["172.16.110.186","127.0.0.1"],"disable":false},"serverless-pre-function":{"phase":"rewrite","functions":["return function() ngx.log(ngx.ERR, \"serverless pre function\"); end"],"disable":false},"limit-count":{"rejected_code":503,"key":"remote_addr","count":2,"disable":true,"time_window":60},"batch-requests":{"disable":false},"cors":{"disable":false},"uri-blocker":{"block_rules":["get"],"disable":true},"key-auth":{"disable":true},"serverless-post-function":{"phase":"rewrite","functions":["return function() ngx.log(ngx.ERR, \"serverless post function\"); end"],"disable":false},"request-id":{"include_in_response":true,"disable":false},"prometheus":{"disable":false},"limit-req":{"rate":1,"key":"remote_addr","burst":2,"disable":true,"rejected_code":503},"request-validation":{"disable":true,"body_schema":{"required":["required_payload"],"type":"object","properties":{"required_payload":{"type":"string"},"boolean_payload":{"type":"boolean"}}}},"jwt-auth":{"disable":true}},"vars
":{}},"key":"\/apisix\/routes\/5","modifiedIndex":18159,"createdIndex":16}],"dir":true},"action":"get","count":"5"}
```
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] WinSuperStar commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
WinSuperStar commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-834237173
when I run in kubeSphere,I got some warn message like this:
2021-05-07T17:45:11+08:00 warn controller/endpoint.go:93 service kube-system/kube-scheduler was deleted
2021-05-07T17:45:11+08:00 warn controller/endpoint.go:93 service default/ceph.com-rbd was deleted
2021-05-07T17:45:11+08:00 warn controller/endpoint.go:93 service default/ceph.com-cephfs was deleted
2021-05-07T17:45:12+08:00 warn controller/endpoint.go:93 service kube-system/kube-controller-manager was deleted
2021-05-07T17:45:13+08:00 warn controller/endpoint.go:93 service kube-system/kube-scheduler was deleted
2021-05-07T17:45:13+08:00 warn controller/endpoint.go:93 service default/ceph.com-rbd was deleted
2021-05-07T17:45:13+08:00 warn controller/endpoint.go:93 service default/ceph.com-cephfs was deleted
2021-05-07T17:45:14+08:00 warn controller/endpoint.go:93 service kube-system/kube-controller-manager was deleted
and also I found that no route was published to the apisix-gateway!
this is bug of apisix ingress controller?
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] wjx8382 commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
wjx8382 commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-819198021
> Maybe there are some internal bugs, could you paste the error log of apisix-ingress-controller.
>
> Just paste the result of `kubectl logs -f {apisix-ingress-controller pod name}`.
```
2021-04-14T11:00:29+08:00 error apisix/upstream.go:119 failed to get upstream from APISIX {"fullname": "tools_httpbin-85d57ddd75-wtmwh_80", "url": "http://apisix-admin:9180/apisix/admin/upstreams/5e521191", "cluster": "", "error": "unexpected status code 403; error message: <html>\r\n<head><title>403 Forbidden</title></head>\r\n<body>\r\n<center><h1>403 Forbidden</h1></center>\r\n<hr><center>openresty</center>\r\n</body>\r\n</html>\r\n", "errorCauses": [{"error": "unexpected status code 403"}, {"error": "error message: <html>\r\n<head><title>403 Forbidden</title></head>\r\n<body>\r\n<center><h1>403 Forbidden</h1></center>\r\n<hr><center>openresty</center>\r\n</body>\r\n</html>\r\n"}]}
2021-04-14T11:00:29+08:00 error state/builder.go:174 failed to find upstream tools_httpbin-85d57ddd75-wtmwh_80: unexpected status code 403; error message: <html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>openresty</center>
</body>
</html>
2021-04-14T11:00:29+08:00 info controller/apisix_route.go:193 sync ApisixRoute failed, will retry {"object": {"Type":1,"Object":{"Key":"tools/httpserver-route","OldObject":null,"GroupVersion":"apisix.apache.org/v2alpha1"},"Tombstone":null}}
```
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-835276611
Got it.
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] wjx8382 commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
wjx8382 commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-822263319
> @wjx8382 Could you please paste the `config-default.yaml` and `config.yaml` in the APISIX pod?
```
kind: ConfigMap
apiVersion: v1
metadata:
name: apisix
namespace: tools
labels:
app.kubernetes.io/managed-by: Helm
annotations:
meta.helm.sh/release-name: apisix
meta.helm.sh/release-namespace: tools
data:
config.yaml: >-
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
apisix:
node_listen: 9080 # APISIX listening port
enable_heartbeat: true
enable_admin: true
enable_admin_cors: true
enable_debug: false
enable_dev_mode: false # Sets nginx worker_processes to 1 if set to true
enable_reuseport: true # Enable nginx SO_REUSEPORT switch if set to true.
enable_ipv6: true
config_center: etcd # etcd: use etcd to store the config value
# yaml: fetch the config value from local yaml file `/your_path/conf/apisix.yaml`
#proxy_protocol: # Proxy Protocol configuration
# listen_http_port: 9181 # The port with proxy protocol for http, it differs from node_listen and port_admin.
# This port can only receive http request with proxy protocol, but node_listen & port_admin
# can only receive http request. If you enable proxy protocol, you must use this port to
# receive http request with proxy protocol
# listen_https_port: 9182 # The port with proxy protocol for https
# enable_tcp_pp: true # Enable the proxy protocol for tcp proxy, it works for stream_proxy.tcp option
# enable_tcp_pp_to_upstream: true # Enables the proxy protocol to the upstream server
proxy_cache: # Proxy Caching configuration
cache_ttl: 10s # The default caching time if the upstream does not specify the cache time
zones: # The parameters of a cache
- name: disk_cache_one # The name of the cache, administrator can be specify
# which cache to use by name in the admin api
memory_size: 50m # The size of shared memory, it's used to store the cache index
disk_size: 1G # The size of disk, it's used to store the cache data
disk_path: "/tmp/disk_cache_one" # The path to store the cache data
cache_levels: "1:2" # The hierarchy levels of a cache
# - name: disk_cache_two
# memory_size: 50m
# disk_size: 1G
# disk_path: "/tmp/disk_cache_two"
# cache_levels: "1:2"
allow_admin: # http://nginx.org/en/docs/http/ngx_http_access_module.html#allow
- 127.0.0.1/24
- 172.16.110.186
- 10.233.99.249
# - "::/64"
port_admin: 9180
# Default token when use API to call for Admin API.
# *NOTE*: Highly recommended to modify this value to protect APISIX's Admin API.
# Disabling this configuration item means that the Admin API does not
# require any authentication.
admin_key:
# admin: can everything for configuration data
- name: "admin"
key: edd1c9f034335f136f87ad84b625c8f1
role: admin
# viewer: only can view configuration data
- name: "viewer"
key: 4054f7cf07e344346cd3f287985e76a2
role: viewer
router:
http: 'radixtree_uri' # radixtree_uri: match route by uri(base on radixtree)
# radixtree_host_uri: match route by host + uri(base on radixtree)
ssl: 'radixtree_sni' # radixtree_sni: match route by SNI(base on radixtree)
# stream_proxy: # TCP/UDP proxy
# tcp: # TCP proxy port list
# - 9100
# - 9101
# udp: # UDP proxy port list
# - 9200
# - 9211
# dns_resolver:
#
# - 127.0.0.1
#
# - 172.20.0.10
#
# - 114.114.114.114
#
# - 223.5.5.5
#
# - 1.1.1.1
#
# - 8.8.8.8
#
dns_resolver_valid: 30
resolver_timeout: 5
ssl:
enable: false
enable_http2: true
listen_port: 9443
ssl_protocols: "TLSv1 TLSv1.1 TLSv1.2 TLSv1.3"
ssl_ciphers: "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA256:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA"
nginx_config: # config for render the template to
genarate nginx.conf
error_log: "/dev/stderr"
error_log_level: "warn" # warn,error
worker_rlimit_nofile: 20480 # the number of files a worker process can open, should be larger than worker_connections
event:
worker_connections: 10620
http:
access_log: "/dev/stdout"
keepalive_timeout: 60s # timeout during which a keep-alive client connection will stay open on the server side.
client_header_timeout: 60s # timeout for reading client request header, then 408 (Request Time-out) error is returned to the client
client_body_timeout: 60s # timeout for reading client request body, then 408 (Request Time-out) error is returned to the client
send_timeout: 10s # timeout for transmitting a response to the client.then the connection is closed
underscores_in_headers: "on" # default enables the use of underscores in client request header fields
real_ip_header: "X-Real-IP" # http://nginx.org/en/docs/http/ngx_http_realip_module.html#real_ip_header
real_ip_from: # http://nginx.org/en/docs/http/ngx_http_realip_module.html#set_real_ip_from
- 127.0.0.1
- 'unix:'
#lua_shared_dicts: # add custom shared cache to nginx.conf
# ipc_shared_dict: 100m # custom shared cache, format: `cache-key: cache-size`
etcd:
host: # it's possible to define multiple etcd hosts addresses of the same etcd cluster.
- "http://apisix-etcd.tools.svc.cluster.local:2379"
prefix: "/apisix" # apisix configurations prefix
timeout: 30 # 30 seconds
plugins: # plugin list
- api-breaker
- authz-keycloak
- basic-auth
- batch-requests
- consumer-restriction
- cors
- echo
- fault-injection
- grpc-transcode
- hmac-auth
- http-logger
- ip-restriction
- jwt-auth
- kafka-logger
- key-auth
- limit-conn
- limit-count
- limit-req
- node-status
- openid-connect
- prometheus
- proxy-cache
- proxy-mirror
- proxy-rewrite
- redirect
- referer-restriction
- request-id
- request-validation
- response-rewrite
- serverless-post-function
- serverless-pre-function
- sls-logger
- syslog
- tcp-logger
- udp-logger
- uri-blocker
- wolf-rbac
- zipkin
- server-info
stream_plugins:
- mqtt-proxy
```
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] wjx8382 commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
wjx8382 commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-821036181
> > @tokers After I tweak the `allow.ipList` in `apisix-helm-chart/charts/apisix/values.yaml`,there are still errors.
> > ```
> > allow:
> > # The ip range for allowing access to Apache APISIX
> > ipList:
> > - 127.0.0.1/24
> > - 172.16.110.186
> > - 10.233.99.249
> > ```
> >
> >
> > apisix-ingress-controller logs
> > ```
> > 2021-04-16T14:31:58+08:00 warn apisix/upstream.go:113 upstream not found{"fullname": "tools_httpbin-85d57ddd75-wtmwh_80", "url": "http://apisix-admin:9180/apisix/admin/upstreams/5e521191", "cluster": ""}
> > 2021-04-16T14:31:58+08:00 error state/builder.go:191 failed to create upstream tools_httpbin-85d57ddd75-wtmwh_80: unexpected status code 403; error message: <html>
> > <head><title>403 Forbidden</title></head>
> > <body>
> > <center><h1>403 Forbidden</h1></center>
> > <hr><center>openresty</center>
> > </body>
> > </html>
> > ```
> >
> >
> > APISIX logs
> > ```
> > 10.233.99.249 - - [16/Apr/2021:06:31:45 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/5e521191 HTTP/1.1" 404 39 0.000 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
> > 10.233.99.249 - - [16/Apr/2021:06:31:58 +0000] apisix-admin:9180 "GET /apisix/admin/upstreams/5e521191 HTTP/1.1" 404 39 0.002 "-" "Go-http-client/1.1" - - - "http://apisix-admin:9180"
> > ```
>
> Are you sure the IP of apisix-ingress-controller is configured correctly?
I see that the IP in the APISIX log is the IP that I configured,and the error before and after configuration is different.
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-818440525
It seems that there are some other routes in your APISIX cluster? How are they created?
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] wjx8382 commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
wjx8382 commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-819337168
> @wjx8382 Your APISIX Admin API doesn't allow apisix-ingress-controller to access it. Please tweak the `allow.ipList` option, https://github.com/apache/apisix-helm-chart/blob/master/charts/apisix/values.yaml#L124.
Now logs
```
2021-04-14T16:22:38+08:00 warn apisix/upstream.go:113 upstream not found {"fullname": "tools_httpbin-85d57ddd75-wtmwh_80", "url": "http://apisix-admin:9180/apisix/admin/upstreams/5e521191", "cluster": ""}
2021-04-14T16:22:38+08:00 error state/builder.go:191 failed to create upstream tools_httpbin-85d57ddd75-wtmwh_80: unexpected status code 403; error message: <html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>openresty</center>
</body>
</html>
```
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] wjx8382 removed a comment on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
wjx8382 removed a comment on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-825359611
@tokers I reinstalled APISIX again,and now logs this error
```
2021-04-23T11:12:25+08:00 warn controller/apisix_route.go:205 sync ApisixRoute failed, will retry {"object": {"Type":1,"Object":{"Key":"tools/httpserver-route","OldObject":null,"GroupVersion":"apisix.apache.org/v2alpha1"},"Tombstone":null}, "error": "2 errors occurred:\n\t* Get http://apisix-admin:9180/apisix/admin/routes: dial tcp: lookup apisix-admin on 169.254.25.10:53: no such host\n\t* Get http://apisix-admin:9180/apisix/admin/routes: dial tcp: lookup apisix-admin on 169.254.25.10:53: no such host\n\n"}
```
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #356: request help: KubeSphere setup
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #356:
URL: https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-830995674
> But when I entry apisix pod request my http server is connect. see ...
>
> ```
> [root@k8smaster01 ~]# kubectl -n ws get pods -owide
> NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
> apisix-gw-deployment-7bf998c895-ckprd 1/1 Running 0 85d 10.244.1.3 k8snode04 <none> <none>
> apisix-ingress-controller-fb9fc6579-prlzk 1/1 Running 0 99m 10.244.12.24 k8snode07 <none> <none>
> myhttp-794dc65cdc-ph2f9 1/1 Running 0 136d 10.244.4.198 k8snode02 <none> <none>
> test-network-776895fdbd-8xb7p 1/1 Running 0 54d 10.244.3.75 k8snode01 <none> <none>
> [root@k8smaster01 ~]# kubectl -n ws exec -it apisix-gw-deployment-7bf998c895-ckprd -- curl http://myhttp-svc:9527
> Hello world ,The runtime os is [ linux ], Now member is [ myhttp-794dc65cdc-ph2f9 ]
> [root@k8smaster01 ~]# kubectl -n ws exec -it apisix-gw-deployment-7bf998c895-ckprd -- curl http://myhttp-svc:9527/dbsecurity
> Hello world ,The runtime os is [ linux ], Now member is [ myhttp-794dc65cdc-ph2f9 ]
> [root@k8smaster01 ~]# ls
> anaconda-ks.cfg dd.txt epel-release-latest-7.noarch.rpm sudo-1.9.5-3.el6.x86_64.rpm test.sh xengine-dev-configmap.yaml
> [root@k8smaster01 ~]# kubectl -n ws exec -it apisix-gw-deployment-7bf998c895-ckprd -- curl http://10.244.4.198:9527
> Hello world ,The runtime os is [ linux ], Now member is [ myhttp-794dc65cdc-ph2f9 ]
> [root@k8smaster01 ~]#
> ```
>
> And apisix pod have some error log .
>
> ```
> 10.244.12.24 - - [02/May/2021:15:08:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/fe7b69e0 HTTP/1.1" 404 39 0.002 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> 10.244.12.24 - - [02/May/2021:15:08:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/4157840a HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> 10.244.12.24 - - [02/May/2021:15:08:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/313d7085 HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> 10.244.12.24 - - [02/May/2021:15:11:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/fe7b69e0 HTTP/1.1" 404 39 0.002 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> 10.244.12.24 - - [02/May/2021:15:11:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/4157840a HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> 10.244.12.24 - - [02/May/2021:15:11:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/313d7085 HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> 10.244.12.24 - - [02/May/2021:15:14:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/fe7b69e0 HTTP/1.1" 404 39 0.002 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> 10.244.12.24 - - [02/May/2021:15:14:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/4157840a HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> 10.244.12.24 - - [02/May/2021:15:14:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/313d7085 HTTP/1.1" 404 39 0.004 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> 10.244.12.24 - - [02/May/2021:15:17:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/fe7b69e0 HTTP/1.1" 404 39 0.003 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> 10.244.12.24 - - [02/May/2021:15:17:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/4157840a HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb"
> 10.244.12.24 - - [02/May/2021:15:17:53 +0800] apisix-gw-lb:9080 "GET /apisix/admin/upstreams/313d7085 HTTP/1.1" 404 39 0.001 "-" "Go-http-client/1.1" - - - "http://apisix-gw-lb
> ```
>
> my ApisixRoute :
>
> ```yaml
> apiVersion: apisix.apache.org/v1
> kind: ApisixRoute
> metadata:
> name: myhttp
> spec:
> rules:
> - host: storm.myhttp.io
> http:
> paths:
> - backend:
> serviceName: myhttp-svc
> servicePort: 9527
> path: /*
> ```
>
> my server information:
>
> ```
> # deployment
> Name: myhttp
> Namespace: ws
> CreationTimestamp: Thu, 19 Nov 2020 14:37:32 +0800
> Labels: app=myhttp
> Annotations: deployment.kubernetes.io/revision: 8
> Selector: app=myhttp
> Replicas: 1 desired | 1 updated | 1 total | 1 available | 0 unavailable
> StrategyType: RollingUpdate
> MinReadySeconds: 0
> RollingUpdateStrategy: 25% max unavailable, 25% max surge
> Pod Template:
> Labels: app=myhttp
> Annotations: cattle.io/timestamp: 2020-11-27T09:33:34Z
> field.cattle.io/ports:
> [[{"containerPort":9527,"dnsName":"myhttp","hostPort":0,"kind":"ClusterIP","name":"9527tcp02","protocol":"TCP","sourcePort":0}]]
> Service Account: apisix-view-serviceaccount
> Containers:
> myhttp:
> Image: registry.storm.io/ops/myhttp:v0.1
> Port: 9527/TCP
> Host Port: 0/TCP
> Command:
> /test
> Limits:
> cpu: 500m
> memory: 512Mi
> Requests:
> cpu: 100m
> memory: 128Mi
> Environment: <none>
> Mounts: <none>
> Volumes: <none>
> Conditions:
> Type Status Reason
> ---- ------ ------
> Progressing True NewReplicaSetAvailable
> Available True MinimumReplicasAvailable
> OldReplicaSets: <none>
> NewReplicaSet: myhttp-794dc65cdc (1/1 replicas created)
> Events: <none>
>
> -----------------------------
> # svc
> Name: myhttp-svc
> Namespace: ws
> Labels: <none>
> Annotations: Selector: app=myhttp
> Type: ClusterIP
> IP: 10.1.186.3
> Port: http 9527/TCP
> TargetPort: 9527/TCP
> Endpoints: 10.244.4.198:9527
> Session Affinity: None
> Events: <none>
> ```
What is your problem? And if it's not related to this issue, please address your problem by creating another issue.
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org