Kubectl create Service report no matches versio
Failure phenomenon: execute kubectl create-f filebeat.yml to report an error as follows: error: unable to recognize "filebeat.yml": no matches for kind "DaemonSet" in version "extensions/v1beta1" solution:
Modify the api interface in the yml configuration file to apps/v1, because the version of kubernetes used between them is version 1.14.x, and version 1.16.x gives up some API support!
Reference address: https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.16.md#deprecations-and-removalsAPIThe following APIs are no longer served by default:All resources under apps/v1beta1 and apps/v1beta2-use apps/v1 insteaddaemonsets, deployments, replicasets resources under extensions/v1beta1-use apps/v1 insteadnetworkpolicies resources under extensions/v1beta1-use networking.k8s.io/v1 insteadpodsecuritypolicies resources under extensions/v1beta1-use policy/v1beta1 insteadServing these resources can be temporarily re-enabled using the-- runtime-config apiserver flag.