This means either your kubernetes version is too old or RBAC API is not enabled in your cluster.
You can check <apiserver_ip>:<apiserver_port>/apis
endpoint. If you use kubectl proxy
then check http://localhost:8001/apis
. It should list enabled apis and their versions. You can use that information to adjust deploy yaml.
If RBAC API is not enabled you need to enable it and the process depends on how you installed the cluster.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…