Issue: bind() to 0.0.0.0:80 failed(13: Permission denied)

NGINX Ingress controller version:0.24.1
KubeSphere version:2.1.1
OS: Ubuntu 18.4

问题情况:
设置了路由后无法访问,查看路由容器有异常log :bind() to 0.0.0.0:80 failed(13: Permission denied)
处理方法:
在 kubesphere-controls-system项目的部署中找到 kubesphere-router-xxxx,编辑配置文件

containers:
  - name: ...
    image: ...
    securityContext:
      runAsUser: 0

这样可以使容器以root用户运行。
0指root用户的uid。

参考:
https://github.com/kubernetes/ingress-nginx/issues/3858
https://blog.csdn.net/triThirty/article/details/95457368