Get the App
SLTechnology News&Howtos  ›  Servers  › 

Kubectl create Service report no matches versio

Shulou Source: shulou.com Published: 2022-06-03 08:48:05 12月06日 Update

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.

Tags: Version between method reason address interface fault file phenomenon part reference support configuration service Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft MariaDB NVidia Docker MySQL