執行 kubectl create -f filebeat.yml
error: unable to recognize "filebeat.yml": no matches for kind "DaemonSet" in version "extensions/v1beta1"
將yml配置文件內的api接口修改成 apps/v1 ,致使緣由爲之間使用的kubernetes 版本是1.14.x版本,1.16.x 版本放棄部分API支持!git
https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.16.md#deprecations-and-removals API The following APIs are no longer served by default: All resources under apps/v1beta1 and apps/v1beta2 - use apps/v1 instead daemonsets, deployments, replicasets resources under extensions/v1beta1 - use apps/v1 instead networkpolicies resources under extensions/v1beta1 - use networking.k8s.io/v1 instead podsecuritypolicies resources under extensions/v1beta1 - use policy/v1beta1 instead Serving these resources can be temporarily re-enabled using the --runtime-config apiserver flag.