Unable to install CNI by using KodeKloud Multinode Ubuntu 20.4 playground

I am practising setting up 3 node Kubernetes Cluster set up using KodeKloud Multinode Ubuntu 20.0 Playground.
On the control plane , When I try to install CNI plugin either Calico or Flannel using below step
curl -Lo tigera-operator.yaml https://raw.githubusercontent.com
OR
kubectl apply -f https://github.com

Its not able to connect github.com or raw.githubusercontent.com.
I tried to add below

How have you installed the cluster?
Have you installed all the prerequisites for the k8s cluster?

I am able to complete below steps -

  1. Adding all 3 IP addresses as Master , worker1 and worker2 in /etc/host file
    2.Disable swap
    3.Enable Kernel Modules and Configure Networking
    4.Install Container Runtime (Run on ALL Nodes)
  2. Add Docker’s official GPG key and repository to grab containerd
  3. Install Kubernetes Packages (Run on ALL Nodes)
    Add the Kubernetes package repository
  4. Initialize the Control Plane

and next step is to install Cluster Networking .

Are you using these links in the Calico guide?

If you could share the error screenshot or paste it in a code block using the </> button in the editor ribbon, it would help us assist you better.

Edit: You should use kubectl create instead of kubectl apply while installing Calico CRDs.

Since its not able to connect to server I am neither able to create nor apply

Try fetching the CRDs with wget or curl and then apply with kubectl create -f