Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to recognize "calico.yaml": no matches for kind "Deployment" in version "apps/v1beta1"

I receive the following error when i try to download calico.yaml files for the pod network

unable to recognize "calico.yaml": no matches for kind "Deployment" in version "apps/v1beta1" unable to recognize "calico.yaml": no matches for kind "DaemonSet" in version "extensions/v1beta1"

here is the full output when i run "kubectl apply -f calico.yaml"

'configmap/calico-config created service/calico-typha created poddisruptionbudget.policy/calico-typha created serviceaccount/calico-node created customresourcedefinition.apiextensions.k8s.io/felixconfigurations.crd.projectcalico.org created customresourcedefinition.apiextensions.k8s.io/bgppeers.crd.projectcalico.org created customresourcedefinition.apiextensions.k8s.io/bgpconfigurations.crd.projectcalico.org created customresourcedefinition.apiextensions.k8s.io/ippools.crd.projectcalico.org created customresourcedefinition.apiextensions.k8s.io/hostendpoints.crd.projectcalico.org created customresourcedefinition.apiextensions.k8s.io/clusterinformations.crd.projectcalico.org created customresourcedefinition.apiextensions.k8s.io/globalnetworkpolicies.crd.projectcalico.org created customresourcedefinition.apiextensions.k8s.io/globalnetworksets.crd.projectcalico.org created customresourcedefinition.apiextensions.k8s.io/networkpolicies.crd.projectcalico.org created unable to recognize "calico.yaml": no matches for kind "Deployment" in version "apps/v1beta1" unable to recognize "calico.yaml": no matches for kind "DaemonSet" in version "extensions/v1beta1"'

like image 531
parrot_boy Avatar asked Dec 10 '25 13:12

parrot_boy


1 Answers

If you are using the latest version Kubernetes, API versions of few resources have been changed. Try converting calico.yaml to use updated API by using kubectl convert command to update API versions

like image 74
Praveen Avatar answered Dec 12 '25 10:12

Praveen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!