Hi I was following this guide
and noticed that
kubectl apply -f https://docs.projectcalico.org/manifests/calico.yaml
is broken as they have moved resources around.
I think from the instructions listed here or here we can achive the same result.
install operator
kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.25.0/manifests/tigera-operator.yaml
and then download resources
curl https://raw.githubusercontent.com/projectcalico/calico/v3.25.0/manifests/custom-resources.yaml -O
if we want to firther customise: generate custom-resources.yaml
so you can do the necessary overriding with
kubectl create -f custom-resources.yaml
then install and configure calico with these steps.
Install calicoctl as a binary on a single host
- download (to a location in your search path)
curl -L https://github.com/projectcalico/calico/releases/latest/download/calicoctl-linux-amd64 -o calicoctl
- make executable
chmod +x ./calicoctl
Install calicoctl as a kubectl plugin on a single host
curl -L https://github.com/projectcalico/calico/releases/latest/download/calicoctl-linux-amd64 -o kubectl-calico
make executable
chmod +x kubectl-calico
- (optional) if the download is not in your search path add the directory to the search path (let’s say you downloaded into /home/g/calico)
add the following line to the .bashrc or the .bash_profile
export PATH="$PATH:/home/g/calico"
check if it works
kubectl calico -h
Please do correct me if I have done this incorrectly.
Cheers,
Ganindu.