I am trying to set up a kubernetes cluster on centos, and installing calico is one of the steps.
My control plane is ready, but coredns
are still pending.
From the internet, i got the below command to install calico on the network
curl https://docs.projectcalico.org/manifests/calico.yaml -O
But when i open the file, it says Redirecting to https://docs.tigera.io/calico/latest/manifests/calico.yaml
then i ran curl https://docs.tigera.io/calico/latest/manifests/calico.yaml -O
This downloaded a file, but when i run kubectl apply -f calico.yaml
I get the below error
error: error parsing calico.yaml: error converting YAML to JSON: yaml: line 19: mapping values are not allowed in this context
so i pasted the calico file from this link https://docs.projectcalico.org/manifests/calico.yaml
and ran kubectl apply -f calico.yaml
and got this error
error: resource mapping not found for name: "calico-kube-controllers" namespace: "kube-system" from "calico.yaml": no matches for kind "PodDisruptionBudget" in version "policy/v1beta1"
ensure CRDs are installed first
From where and how can i get the correct calico file.