无法识别 "https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-rbac.yml":没有匹配项

unable to recognize "https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-rbac.yml": no matches for

需要帮助。

我必须按照说明安装 Exchange Listener https://community.terrasoft.ru/articles/1-realnyy-primer-po-razvertyvaniyu-servisa-exchange-listener-s-ispolzovaniem-kubernetes 几个月前我做了,但现在我看到了错误

adminka@l-test:~$ kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-rbac.yml 无法识别“https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-rbac.yml”:版本“rbac.authorization.k8s.io/v1beta1”中种类“ClusterRole”没有匹配项 无法识别“https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-rbac.yml”:版本“rbac.authorization.k8s.io/v1beta1”中没有与“ClusterRoleBinding”类型匹配的“[=15” =]

需要做什么?

adminka@l-test:~$ kubectl -n kube-system get pods --all-namespaces NAMESPACE NAME READY STATUS
RESTARTS AGE kube-system coredns-78fcd69978-mrb58 1/1
Running 0 2d12h kube-system coredns-78fcd69978-pwp2n
1/1 Running 0 2d12h kube-system etcd-l-test
1/1 Running 0 2d12h kube-system kube-apiserver-l-test 1/1 Running 0 2d12h kube-system
kube-controller-manager-l-test 1/1 Running 0 2d12h kube-system kube-flannel-ds-kx9sm 1/1 Running 0
2d12h kube-system kube-proxy-v2f9q 1/1 Running
0 2d12h kube-system kube-scheduler-l-test 1/1
Running 0 2d12h

> adminka@l-test:~$ kubectl describe pod kube-flannel-ds-kx9sm -n
> kube-system Name:                 kube-flannel-ds-kx9sm Namespace:    
> kube-system Priority:             2000001000 Priority Class Name: 
> system-node-critical Node:                 l-test/192.168.0.71 Start
> Time:           Sat, 18 Sep 2021 00:36:50 +0300 Labels:              
> app=flannel
>                       controller-revision-hash=7fb8b954f9
>                       pod-template-generation=1
>                       tier=node Annotations:          <none> Status:               Running IP:                   192.168.0.71 IPs:   IP:          
> 192.168.0.71 Controlled By:  DaemonSet/kube-flannel-ds Init Containers:   install-cni:
>     Container ID:  docker://01da25d6de8d2b679c9035d25fcd10de432388875fd90b23756c6e1b8392af21
>     Image:         quay.io/coreos/flannel:v0.14.0
>     Image ID:      docker-pullable://quay.io/coreos/flannel@sha256:4a330b2f2e74046e493b2edc30d61fdebbdddaaedcb32d62736f25be8d3c64d5
>     Port:          <none>
>     Host Port:     <none>
>     Command:
>       cp
>     Args:
>       -f
>       /etc/kube-flannel/cni-conf.json
>       /etc/cni/net.d/10-flannel.conflist
>     State:          Terminated
>       Reason:       Completed
>       Exit Code:    0
>       Started:      Sat, 18 Sep 2021 00:36:56 +0300
>       Finished:     Sat, 18 Sep 2021 00:36:56 +0300
>     Ready:          True
>     Restart Count:  0
>     Environment:    <none>
>     Mounts:
>       /etc/cni/net.d from cni (rw)
>       /etc/kube-flannel/ from flannel-cfg (rw)
>       /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-28x6l (ro) Containers:   kube-flannel:
>     Container ID:  docker://b109519d917ceb9d05c19421e5e65ece948977ce6b98d1e638f005250ddc9814
>     Image:         quay.io/coreos/flannel:v0.14.0
>     Image ID:      docker-pullable://quay.io/coreos/flannel@sha256:4a330b2f2e74046e493b2edc30d61fdebbdddaaedcb32d62736f25be8d3c64d5
>     Port:          <none>
>     Host Port:     <none>
>     Command:
>       /opt/bin/flanneld
>     Args:
>       --ip-masq
>       --kube-subnet-mgr
>     State:          Running
>       Started:      Sat, 18 Sep 2021 00:36:57 +0300
>     Ready:          True
>     Restart Count:  0
>     Limits:
>       cpu:     100m
>       memory:  50Mi
>     Requests:
>       cpu:     100m
>       memory:  50Mi
>     Environment:
>       POD_NAME:       kube-flannel-ds-kx9sm (v1:metadata.name)
>       POD_NAMESPACE:  kube-system (v1:metadata.namespace)
>     Mounts:
>       /etc/kube-flannel/ from flannel-cfg (rw)
>       /run/flannel from run (rw)
>       /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-28x6l (ro) Conditions:   Type              Status  
> Initialized       True   Ready             True   ContainersReady  
> True   PodScheduled      True Volumes:   run:
>     Type:          HostPath (bare host directory volume)
>     Path:          /run/flannel
>     HostPathType:   cni:
>     Type:          HostPath (bare host directory volume)
>     Path:          /etc/cni/net.d
>     HostPathType:   flannel-cfg:
>     Type:      ConfigMap (a volume populated by a ConfigMap)
>     Name:      kube-flannel-cfg
>     Optional:  false   kube-api-access-28x6l:
>     Type:                    Projected (a volume that contains injected data from multiple sources)
>     TokenExpirationSeconds:  3607
>     ConfigMapName:           kube-root-ca.crt
>     ConfigMapOptional:       <nil>
>     DownwardAPI:             true QoS Class:                   Burstable Node-Selectors:              <none> Tolerations:            
> :NoSchedule op=Exists
>                              node.kubernetes.io/disk-pressure:NoSchedule op=Exists
>                              node.kubernetes.io/memory-pressure:NoSchedule op=Exists
>                              node.kubernetes.io/network-unavailable:NoSchedule op=Exists
>                              node.kubernetes.io/not-ready:NoExecute op=Exists
>                              node.kubernetes.io/pid-pressure:NoSchedule op=Exists
>                              node.kubernetes.io/unreachable:NoExecute op=Exists
>                              node.kubernetes.io/unschedulable:NoSchedule op=Exists Events:         
> <none> adminka@l-test:~$
rbac.authorization.k8s.io/v1beta1

v1beta1 与您的集群版本不兼容。请改用 v1。