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

Can't create cluster on OSX with podman #2583

Closed
lavcraft opened this issue Jan 9, 2022 · 2 comments
Closed

Can't create cluster on OSX with podman #2583

lavcraft opened this issue Jan 9, 2022 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@lavcraft
Copy link

lavcraft commented Jan 9, 2022

What happened:
Error while creating new cluster by command kind create cluster

What you expected to happen:
New cluster are available

How to reproduce it (as minimally and precisely as possible):
I made next actions:

  1. install kind via brew - brew install kind
  2. run kind create cluster
    Obtain next error: failed to create cluster: podman run error

Full log:

 ➜  k8s kind create cluster
enabling experimental podman provider
Cgroup controller detection is not implemented for Podman. If you see cgroup-related errors, you might need to set systemd property "Delegate=yes", see https://kind.sigs.k8s.io/docs/user/rootless/
Creating cluster "kind" ...
 ✓ Ensuring node image (kindest/node:v1.21.1) 🖼
 ✗ Preparing nodes 📦
ERROR: failed to create cluster: podman run error: command "podman run --hostname kind-control-plane --name kind-control-plane --label io.x-k8s.kind.role=control-plane --privileged --tmpfs /tmp --tmpfs /run --volume b4a6ccd5d8a69b5312c2315773a7c970a0e144aeb5eac3a41da2eba95eefabaa:/var:suid,exec,dev --volume /lib/modules:/lib/modules:ro --detach --tty --net kind --label io.x-k8s.kind.cluster=kind -e container=podman --publish=127.0.0.1:53960:6443/tcp -e KUBECONFIG=/etc/kubernetes/admin.conf kindest/node@sha256:69860bda5563ac81e3c0057d654b5253219618a22ec3a346306239bba8cfa1a6" failed with error: exit status 126
Command Output: Error: error configuring network namespace for container 5818a1cbc04b5f58808058a28b67515a6045b1a5f1f57bdb12b187f53a97d81a: error adding pod kind-control-plane_kind-control-plane to CNI network "kind": failed to list chains: running [/usr/sbin/ip6tables -t nat -S --wait]: exit status 3: modprobe: ERROR: could not insert 'ip6_tables': Operation not permitted
ip6tables v1.8.7 (legacy): can't initialize ip6tables table `nat': Table does not exist (do you need to insmod?)
Perhaps ip6tables or your kernel needs to be upgraded.

Anything else we need to know?:

Environment:

  • kind version: kind v0.11.1 go1.17.2 darwin/amd64
  • Kubernetes version: 1.21 trying to install
  • Docker version: podman 3.4.4
  • OS (e.g. from /etc/os-release): OSX Monterey 12.1
@lavcraft lavcraft added the kind/bug Categorizes issue or PR as related to a bug. label Jan 9, 2022
@aojea
Copy link
Contributor

aojea commented Jan 9, 2022

this was reported several times, podman machine should have the ip6tables modules loaded.
There was another issue related with podman forwarding ports that was fixed by podman in

containers/podman#11528
#2537

/close

@k8s-ci-robot
Copy link
Contributor

@aojea: Closing this issue.

In response to this:

this was reported several times, podman machine should have the ip6tables modules loaded.
There was another issue related with podman forwarding ports that was fixed by podman in

containers/podman#11528
#2537

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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