-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
BUG: create cluster with ipv6 fails #1257
Comments
make sure your kubectl is at least 1.16 or better 1.17.
what are the logs if you pass e.g. |
Kubectl on the host shouldn't matter during create. Does docker on the host have IPv6 enabled for containers? |
ok, so after upgrading to
and making sure /etc/docker/daemon.json:
here's the log:
seems like I'll have to supply my own ip address? |
@yuvalk the problem is that docker docs are not ok, you need to add another field to the daemon.json to specify the ipv6 subnet of docker.
then restart your docker daemon and try to create the cluster again: |
I did that, but that wasnt enough"
as you can see, the error is with the bind address. I think it might be related to this: |
your docker daemon is not using ipv6
it has to show 3 addresses in that entry, is missing the IPv6 global address, can you try this?
and check that your eth0 has an IPv6 global address? EDIT |
TNX, but you might wanna mention this on your end (ie make sure first docker is properly configured for ipv6 networking, or something of the kind) |
ok, problem is, this now succeed for a single node, but fails with the following kind.yaml:
here's the full (and lengthy) log:
|
Try without
this config is tested in the CI, if this doesn't work we should try to see if there is something environmental that is breaking the multinode (iptables, ...) |
this also fails, with same error
kubectl v1.17.1 |
ok, it seems like firewall indeed. it seems docker is trying to configure iptables WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w10 -t nat -A DOCKER -p tcp -d ::1 --dport 32781 -j DNAT --to-destination 172.17.0.4:6443 ! -i docker0' failed: iptables v1.8.3 (legacy): host/network `::1' not found |
🤔 from where is that command snippet? it can't use |
it's from fedora firewalld log once I disable firewall I can get a running ipv6 enabled cluster. |
/close |
@aojea: Closing this issue. In response to this:
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. |
What happened:
config.yaml:
*exactly as in https://kind.sigs.k8s.io/docs/user/configuration/
$ kind create cluster --config=config.yaml
Creating cluster "kind" ...
✓ Ensuring node image (kindest/node:v1.17.0) 🖼
✓ Preparing nodes 📦
✓ Writing configuration 📜
✗ Starting control-plane 🕹️
ERROR: failed to create cluster: failed to init node with kubeadm: command "docker exec --privileged kind-control-plane kubeadm init --ignore-preflight-errors=all --config=/kind/kubeadm.conf --skip-token-print --v=6" failed with error: exit status 1
Environment:
$ kind version
kind v0.7.0 go1.13.5 linux/amd64
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"15+", GitVersion:"v1.15.8-beta.0", GitCommit:"6c143d35bb11d74970e7bc0b6c45b6bfdffc0bd4", GitTreeState:"archive", BuildDate:"2020-01-02T00:00:00Z", GoVersion:"go1.13.5", Compiler:"gc", Platform:"linux/amd64"}
$ docker info
Containers: 6
Running: 0
Paused: 0
Stopped: 6
Images: 7
Server Version: 18.09.8
Storage Driver: overlay2
Backing Filesystem: xfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: journald
Cgroup Driver: systemd
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: /usr/libexec/docker/docker-init
containerd version:
runc version: ce97911e3cd37a5ce3ef98f7f1d4add21a3ac162
init version: v0.18.0 (expected: fec3683b971d9c3ef73f284f176672c44b448662)
Security Options:
seccomp
Profile: default
selinux
Kernel Version: 5.3.16-300.fc31.x86_64
Operating System: Fedora 31 (Workstation Edition)
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 62.6GiB
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: true
The text was updated successfully, but these errors were encountered: