0

I'm trying to install calico locally (for development/testing) on Kubernetes with docker-desktop (Windows with WSL2). I want to install it to test network policies.

I'm following the following quickstart guide: https://projectcalico.docs.tigera.io/getting-started/kubernetes/quickstart

I don't see any pods in the calico-system namespace (Step 3 in the "Install Calico" section), nor do I see any calico pods in any namespace. I'd appreciate any help.

Karthik
  • 129
  • 11

2 Answers2

0

Dockerdesktop ist not suitable for your tutorial. To use kubeadmin, you need a linux machine. While Kubernetes on Docker-Desktop is already intalled.

I would try using Multipass, which you can use also on Windows.

https://multipass.run/docs/installing-on-windows

Then start an instance:

multipass launch --name mynodename

multipass shell mynodename

Inside install your cluster as described in the tutorial.

You have to look which ipaddress is assigned to your multipass instance.

If your local network starts with 192.x.x.x then use

sudo kubeadm init --pod-network-cidr=10.10.0.0/16
Ralle Mc Black
  • 1,065
  • 1
  • 8
  • 16
0

Calico for Windows is a hybrid implementation that requires Windows nodes for Windows workloads and a Linux cluster for Calico components and Linux workloads.

And you are following the quickstart which will get you a single-host Kubernetes cluster with Calico, it will be different from the calico for windows.

For calico for windows follow this guide, Before you begin check requirements.

Sai Chandra Gadde
  • 2,242
  • 1
  • 3
  • 15
  • I do not want to run windows workloads. Docker desktop uses WSL to create a linux node. And I already have a single host kubernetes cluster up with docker desktop. – Karthik Dec 26 '22 at 13:46
  • Here is the [doc](https://phoenixnap.com/kb/calico-kubernetes) how to install Calico on a Kubernetes cluster with docker. – Sai Chandra Gadde Dec 28 '22 at 10:59