Home > Blockchain >  Install Calico on Kubernetes with docker-desktop on Windows
Install Calico on Kubernetes with docker-desktop on Windows

Time:12-27

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.

CodePudding user response:

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

CodePudding user response:

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.

  • Related