klvchen opened a new issue, #10503:
URL: https://github.com/apache/apisix/issues/10503

   ### Description
   
   我使用下面配置
   ```
   cat my-values.yaml
   
   hostNetwork: true
   service:
     http:
       containerPort: 80
   apisix:
     ssl:
       containerPort: 443
       enabled: true
   nodeSelector:
     kubernetes.io/hostname: k8s-node-2
   timezone: "Asia/Shanghai"
   etcd:
     global:
       storageClass: "nfs-client"
     persistence:
       size: 6Gi
   dashboard:
     enabled: true
   ingress-controller:
     enabled: true
     config:
       apisix:
         serviceNamespace: apisix
   
   helm -n apisix install apisix -f my-values.yaml ./apisix
   ```
   运行报错
   ```
   Defaulted container "apisix" out of: apisix, wait-etcd (init)
   /usr/local/openresty//luajit/bin/luajit ./apisix/cli/apisix.lua init
   
   WARNING: using fixed Admin API token has security risk.
   Please modify "admin_key" in conf/config.yaml .
   
   
   /usr/local/openresty//luajit/bin/luajit ./apisix/cli/apisix.lua init_etcd
   2023/11/16 15:21:12 [warn] 1#1: low address bits of 127.0.0.1/24 are 
meaningless in /usr/local/apisix/conf/nginx.conf:223
   nginx: [warn] low address bits of 127.0.0.1/24 are meaningless in 
/usr/local/apisix/conf/nginx.conf:223
   2023/11/16 15:21:12 [emerg] 1#1: bind() to 0.0.0.0:80 failed (13: Permission 
denied)
   nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
   ```
   但是如果我把端口改成其他,容器能正常起来,例如
   ```
   service:
     http:
       containerPort: 8080
   apisix:
     ssl:
       containerPort: 7443
       enabled: true
   ```
   我该如何配置,才能使用 80 和 443 端口?谢谢~
   
   ### Environment
   
   - APISIX version (run `apisix version`):
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   
   我部署的环境是 
   K8S v1.24.1 with containerd://1.6.8
   
   [root@k8s-master-1 apisix]# helm version
   version.BuildInfo{Version:"v3.10.0", 
GitCommit:"ce66412a723e4d89555dc67217607c6579ffcb21", GitTreeState:"clean", 
GoVersion:"go1.18.6"}
   
   helm chart 版本是 apisix/apisix 2.3.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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to