环境为:m1、m2为主节点,s1、s2为worker节点,s1运行着harbor,s2没有运行harbor,释放了80端口,为了能够运行ingress-nginx。
现在问题是在m1上apply了ingress-demo.yaml之后,tomcat-demo运行正常,ingress-nginx也运行正常,无法访问tomcat-demo,,,不过看了下dashboard上,发现tomcat-demo报Forbidden(403),报:
pods “tomcat-demo-6bc7d5b6f4-tkwp7” is forbidden: User “system:serviceaccount:kube-system:attachdetach-controller” cannot get resource “pods” in API group “” in the namespace “default”