I am setting up Kubernetes cluster network configuration through calico and while performing 'kubectl apply -f calico.yaml', I get the following error
error: error parsing calico.yaml: error converting YAML to JSON: yaml: line 182: did not find expected '-' indicator
I am using default yaml file as specified in https://docs.projectcalico.org/manifests/calico.yaml
Have anyone come across this and resolved. Any other suggestions please.
You can apply this yaml with no need to save it locally. As peterzinho16 said just run:
Then all resources will be created.