Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to install kind cluster wsl2 ubuntu #3592

Open
tppalani opened this issue Apr 28, 2024 · 2 comments
Open

Not able to install kind cluster wsl2 ubuntu #3592

tppalani opened this issue Apr 28, 2024 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@tppalani
Copy link

What happened:

Not able to install kind cluster in wsl2

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • kind version: kind v0.20.0 go1.20.4 linux/amd64
  • Runtime info: (WARN[0000] Error validating CNI config file /etc/cni/net.d/kind.conflist: [plugin bridge does not support config version "1.0.0" plugin portmap does not support config version "1.0.0" plugin firewall does not support config version "1.0.0" plugin tuning does not support config version "1.0.0"]
    host:
    arch: amd64
    buildahVersion: 1.23.1
    cgroupControllers:
    • cpuset
    • cpu
    • cpuacct
    • blkio
    • memory
    • devices
    • freezer
    • net_cls
    • perf_event
    • net_prio
    • hugetlb
    • pids
    • rdma
    • misc
      cgroupManager: systemd
      cgroupVersion: v1
      conmon:
      package: 'conmon: /usr/libexec/podman/conmon'
      path: /usr/libexec/podman/conmon
      version: 'conmon version 2.1.2, commit: '
      cpus: 4
      distribution:
      codename: jammy
      distribution: ubuntu
      version: "22.04"
      eventLogger: journald
      hostname: DESKTOP-1OOLTMI
      idMappings:
      gidmap: null
      uidmap: null
      kernel: 5.15.133.1-microsoft-standard-WSL2
      linkmode: dynamic
      logDriver: journald
      memFree: 5776732160
      memTotal: 8276209664
      ociRuntime:
      name: crun
      package: 'crun: /usr/bin/crun'
      path: /usr/bin/crun
      version: |-
      crun version UNKNOWN
      commit: ea1fe3938eefa14eb707f1d22adff4db670645d6
      spec: 1.0.0
      +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +YAJL
      os: linux
      remoteSocket:
      exists: true
      path: /run/podman/podman.sock
      security:
      apparmorEnabled: false
      capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
      rootless: false
      seccompEnabled: true
      seccompProfilePath: /usr/share/containers/seccomp.json
      selinuxEnabled: false
      serviceIsRemote: false
      slirp4netns:
      executable: /usr/bin/slirp4netns
      package: 'slirp4netns: /usr/bin/slirp4netns'
      version: |-
      slirp4netns version 1.1.8
      commit: unknown
      libslirp: 4.3.1-git
      SLIRP_CONFIG_VERSION_MAX: 3
      libseccomp: 2.5.3
      swapFree: 2147483648
      swapTotal: 2147483648
      uptime: 1h 54m 16.02s (Approximately 0.04 days)
      plugins:
      log:
    • k8s-file
    • none
    • journald
      network:
    • bridge
    • macvlan
      volume:
    • local
      registries:
      search:
    • docker.io
      store:
      configFile: /etc/containers/storage.conf
      containerStore:
      number: 0
      paused: 0
      running: 0
      stopped: 0
      graphDriverName: overlay
      graphOptions: {}
      graphRoot: /var/lib/containers/storage
      graphStatus:
      Backing Filesystem: extfs
      Native Overlay Diff: "true"
      Supports d_type: "true"
      Using metacopy: "false"
      imageStore:
      number: 1
      runRoot: /run/containers/storage
      volumePath: /var/lib/containers/storage/volumes
      version:
      APIVersion: 3.4.4
      Built: 0
      BuiltTime: Thu Jan 1 05:30:00 1970
      GitCommit: ""
      GoVersion: go1.18.1
      OsArch: linux/amd64
      Version: 3.4.4`):
  • OS (e.g. from PRETTY_NAME="Ubuntu 22.04.3 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.3 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=jammy):
  • Kubernetes version: (Client Version: v1.29.3-eks-ae9a62a Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3):
  • Any proxies or other special environment settings?:
@tppalani tppalani added the kind/bug Categorizes issue or PR as related to a bug. label Apr 28, 2024
@stmcginnis
Copy link
Contributor

Please provide more details as to what you are doing and what happens.

If you are trying to create the cluster and it fails at some point, try running kind create cluster --retain, then kind export logs to get all of the logs. Somewhere in there should be a clue as to what is going on.

Also, since you mentioned WSL, make sure you have read through https://kind.sigs.k8s.io/docs/user/using-wsl2/

@BenTheElder
Copy link
Member

BenTheElder commented Apr 29, 2024

Note: WSL2 support is user-contributed as we lack windows CI #1529 and the maintainers use Linux+macOS locally. So far user contributions have focused on docker on WSL2, not podman on WSL2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants