lianghao208 commented on issue #211:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/211#issuecomment-768007123


   @tokers I change the admin port to 9180, the controller log show 403:
   ```bash
   [root@VM-187-41-centos ~]# kc logs ingress-controller-79dbd87678-7qzwb  -n 
ingress-apisix
   2021-01-27T11:59:03+08:00    info    ingress/ingress.go:81   apisix ingress 
controller started
   2021-01-27T11:59:03+08:00    info    ingress/ingress.go:87   use 
configuration
   {
        "log_level": "info",
        "log_output": "stderr",
        "http_listen": ":8080",
        "enable_profiling": true,
        "kubernetes": {
                "kubeconfig": "",
                "resync_interval": "6h0m0s"
        },
        "apisix": {
                "base_url": "http://192.168.10.8:9180/apisix/admin";,
                "admin_key": ""
        }
   }
   ERROR: logging before flag.Parse: E0127 11:59:15.227299       1 
upstream.go:27] list upstreams in etcd failed, group: , err: http get failed, 
url: http://192.168.10.8:9180/apisix/admin/upstreams, err: status: 403, body: 
<html>
   <head><title>403 Forbidden</title></head>
   <body>
   <center><h1>403 Forbidden</h1></center>
   <hr><center>openresty</center>
   </body>
   </html>
   ERROR: logging before flag.Parse: E0127 11:59:15.227325       1 
builder.go:154] solver upstream failed, find upstream from etcd failed, 
upstream: &{ID:<nil> FullName:0xc000158140 Group:0xc0001580b0 
ResourceVersion:0xc0001580c0 Name:0xc000158110 Type:0xc000158150 HashOn:<nil> 
Key:<nil> Nodes:[0xc0004c2740] FromKind:<nil>}, err: list upstreams failed, 
err: http get failed, url: http://192.168.10.8:9180/apisix/admin/upstreams, 
err: status: 403, body: <html>
   <head><title>403 Forbidden</title></head>
   <body>
   <center><h1>403 Forbidden</h1></center>
   <hr><center>openresty</center>
   </body>
   </html>
   ERROR: logging before flag.Parse: E0127 11:59:15.227494       1 
upstream.go:27] list upstreams in etcd failed, group: , err: http get failed, 
url: http://192.168.10.8:9180/apisix/admin/upstreams, err: status: 403, body: 
<html>
   <head><title>403 Forbidden</title></head>
   <body>
   <center><h1>403 Forbidden</h1></center>
   <hr><center>openresty</center>
   </body>
   </html>
   ERROR: logging before flag.Parse: E0127 11:59:15.227510       1 
builder.go:154] solver upstream failed, find upstream from etcd failed, 
upstream: &{ID:<nil> FullName:0xc000158220 Group:0xc000158190 
ResourceVersion:0xc0001581a0 Name:0xc0001581f0 Type:0xc000158230 HashOn:<nil> 
Key:<nil> Nodes:[0xc0004c29e0] FromKind:<nil>}, err: list upstreams failed, 
err: http get failed, url: http://192.168.10.8:9180/apisix/admin/upstreams, 
err: status: 403, body: <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:
[email protected]


Reply via email to