That's a versioning issue with the DaemonSet and your kubernetes cluster.
(这是DaemonSet和您的kubernetes集群的版本控制问题。)
You are using extensions/v1beta1
, but DaemonSets
have been promoted to apps/v1
. (您正在使用extensions/v1beta1
,但DaemonSets
已提升为apps/v1
。)
If you already have api-server
running, try kubectl explain daemonset
, and it will tell you what should be the apiVersion
for the DaemonSets
.
(如果您已经在运行api-server
,请尝试kubectl explain daemonset
,它将告诉您apiVersion
的DaemonSets
应该是什么。)
If not, just download the flannel file, edit it, change the apiVersion: extensions/v1beta1
, by apiVersion: apps/v1
, and it should work.
(如果不是,只需下载绒布文件,对其进行编辑, apiVersion: extensions/v1beta1
通过apiVersion: apps/v1
更改apiVersion: extensions/v1beta1
,它应该可以工作。)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…