已关闭此问题为not about programming or software development。它目前不接受回答。
这个问题似乎不是关于a specific programming problem, a software algorithm, or software tools primarily used by programmers的。如果你认为这个问题与another Stack Exchange site的主题有关,你可以留下评论,解释在哪里可以回答这个问题。
18天前关闭
Improve this question
我在kOps的帮助下在AWS上创建了Kubernetes集群,我想在上面安装LoadBalancer,所以我运行命令
kubectl create -f https://raw.githubusercontent.com/kubernetes/kops/master/addons/ingress-nginx/v1.6.0.yaml
并得到以下错误:
namespace/kube-ingress created
serviceaccount/nginx-ingress-controller created
service/nginx-default-backend created
deployment.apps/nginx-default-backend created
configmap/ingress-nginx created
service/ingress-nginx created
deployment.apps/ingress-nginx created
unable to recognize "https://raw.githubusercontent.com/kubernetes/kops/master/addons/ingress-nginx/v1.6.0.yaml": no matches for kind "ClusterRole" in version "rbac.authorization.k8s.io/v1beta1"
unable to recognize "https://raw.githubusercontent.com/kubernetes/kops/master/addons/ingress-nginx/v1.6.0.yaml": no matches for kind "Role" in version "rbac.authorization.k8s.io/v1beta1"
unable to recognize "https://raw.githubusercontent.com/kubernetes/kops/master/addons/ingress-nginx/v1.6.0.yaml": no matches for kind "ClusterRoleBinding" in version "rbac.authorization.k8s.io/v1beta1"
unable to recognize "https://raw.githubusercontent.com/kubernetes/kops/master/addons/ingress-nginx/v1.6.0.yaml": no matches for kind "RoleBinding" in version "rbac.authorization.k8s.io/v1beta1"
我尝试通过添加以下内容来编辑群集,以便支持v1 beta1 API
apiVersion: kops.k8s.io/v1alpha2
kind: Cluster
//ommited
spec:
//ommited
kubeAPIServer:
runtimeConfig:
rbac.authorization.k8s.io/v1beta1: "true"
//ommited
但我总是得到同样的错误
附加信息,以下命令的输出
kubectl version
看起来像这样
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.7", GitCommit:"1dd5338295409edcfff11505e7bb246f0d325d15", GitTreeState:"clean", BuildDate:"2021-01-13T13:23:52Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.2", GitCommit:"8b5a19147530eaac9476b0ab82980b4088bbc1b2", GitTreeState:"clean", BuildDate:"2021-09-15T21:32:41Z", GoVersion:"go1.16.8", Compiler:"gc", Platform:"linux/amd64"}
1条答案
按热度按时间8cdiaqws1#
试着应用这个。
k apply -f
我在apiVersion中使用了v1,所以你需要根据需要对所有资源进行修改,以适应你的k8s版本。