skip to Main Content

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.

2

Answers


  1. 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
    
    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search