问题描述
我正在尝试在主节点上安装法兰绒并遇到错误.
I am trying install flannel on master node and getting below error.
无法识别" https://raw.githubusercontent.com/coreos/flannel/bc79dd1505b0c8681ece4de4c0d86c5cd2643275/Documentation/kube-flannel.yml :在版本" extensions/v1beta1中没有与类型" DaemonSet匹配的
unable to recognize "https://raw.githubusercontent.com/coreos/flannel/bc79dd1505b0c8681ece4de4c0d86c5cd2643275/Documentation/kube-flannel.yml": no matches for kind "DaemonSet" in version "extensions/v1beta1"
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/bc79dd1505b0c8681ece4de4c0d86c5cd2643275/Documentation/kube-flannel.yml
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/bc79dd1505b0c8681ece4de4c0d86c5cd2643275/Documentation/kube-flannel.yml
Conf文件:
apiVersion:kubeadm.k8s.io/v1beta1种类:ClusterConfiguration联网:podSubnet:10.244.0.0/16apiServerExtraArgs:服务节点端口范围:8000-31274〜
apiVersion: kubeadm.k8s.io/v1beta1kind: ClusterConfigurationnetworking: podSubnet: 10.244.0.0/16apiServerExtraArgs: service-node-port-range: 8000-31274~
推荐答案
您必须使用Kubernetes版本> = 1.16.扩展名/v1beta1中的DaemonSet已弃用..
You must be using Kubernetes version >=1.16. DaemonSet in extensions/v1beta1 is deprecated..
改为使用 apps/v1
api组.
尝试使用 https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml .
这篇关于没有与"DaemonSet"类型匹配的内容在版本“扩展/v1beta1"中,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!