Error from server (Forbidden): Forbidden (user=sys

报错

Error from server (Forbidden): Forbidden (user=system:anonymous, verb=get, resource=nodes, subresource=proxy)

暂时解决办法

绑定一个cluster-admin的权限。

kubectl create clusterrolebinding system:anonymous   --clusterrole=cluster-admin   --user=system:anonymous

转载于:https://blog.51cto.com/hequan/2327975

[root@165e4e351455 nginx]# tail -f 10 error.log tail: cannot open '10' for reading: No such file or directory ==> error.log <== 2025/06/24 05:54:00 [notice] 1738#1738: signal process started 2025/06/24 05:54:05 [error] 1739#1739: *3 directory index of "/usr/share/nginx/html/" is forbidden, client: 10.0.0.1, server: localhost, request: "GET / HTTP/1.1", host: "10.0.0.12" 2025/06/24 05:54:06 [error] 1739#1739: *3 directory index of "/usr/share/nginx/html/" is forbidden, client: 10.0.0.1, server: localhost, request: "GET / HTTP/1.1", host: "10.0.0.12" 2025/06/24 05:54:28 [error] 1739#1739: *3 directory index of "/usr/share/nginx/html/" is forbidden, client: 10.0.0.1, server: localhost, request: "GET / HTTP/1.1", host: "10.0.0.12" 2025/06/24 05:54:41 [error] 1739#1739: *3 open() "/usr/share/nginx/html/index.php" failed (2: No such file or directory), client: 10.0.0.1, server: localhost, request: "GET /index.php HTTP/1.1", host: "10.0.0.12" 2025/06/24 05:58:20 [notice] 1744#1744: signal process started 2025/06/24 05:58:35 [error] 1745#1745: *4 directory index of "/usr/share/nginx/html/" is forbidden, client: 10.0.0.1, server: localhost, request: "GET / HTTP/1.1", host: "10.0.0.12" 2025/06/24 05:58:37 [error] 1745#1745: *4 directory index of "/usr/share/nginx/html/" is forbidden, client: 10.0.0.1, server: localhost, request: "GET / HTTP/1.1", host: "10.0.0.12" 2025/06/24 05:58:37 [error] 1745#1745: *4 directory index of "/usr/share/nginx/html/" is forbidden, client: 10.0.0.1, server: localhost, request: "GET / HTTP/1.1", host: "10.0.0.12" 2025/06/24 05:58:37 [error] 1745#1745: *4 directory index of "/usr/share/nginx/html/" is forbidden, client: 10.0.0.1, server: localhost, request: "GET / HTTP/1.1", host: "10.0.0.12"
最新发布
06-25
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值