Fix broken link in kubernets install pior to TAO API setup

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

  1. download (to a location in your search path)
curl -L https://github.com/projectcalico/calico/releases/latest/download/calicoctl-linux-amd64 -o calicoctl
  1. 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
  1. (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.

Other form is use the new Tigera Helm repo.

helm repo add projectcalico https://docs.tigera.io/calico/charts 
helm repo update
helm upgrade -i calico projectcalico/tigera-operator --namespace tigera-operator --create-namespace --version v3.25.1
1 Like

Yup! Helm is much more easier!

Forgot up update here but I’ve summarised my findings in these writeups below. please feel free to correct if you run into any troubles by following that.

Cheers,
Ganindu.

1 Like