Open kriswuollett opened 1 month ago
Someone reported something similar the other day with podman, I think the errors comes from
If you can perform the docker inspect command manually to understand why it does not detect two ips it will help to debug
Control Plane:
# nerdctl inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}},{{.GlobalIPv6Address}}{{end}}' 0c1ccb1a9660
10.4.1.2,fc00:f853:ccd:e793::210.244.0.1,10.244.0.1,10.244.0.1,
Workers example:
# nerdctl inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}},{{.GlobalIPv6Address}}{{end}}' 78cb379f8a11
10.4.1.3,fc00:f853:ccd:e793::310.244.1.1,10.244.1.1,10.244.1.1,
# nerdctl inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}},{{.GlobalIPv6Address}}{{end}}' 8cc8716a4db6
10.4.1.4,fc00:f853:ccd:e793::410.244.3.1,10.244.3.1,10.244.3.1,
# nerdctl inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}},{{.GlobalIPv6Address}}{{end}}' e3e427961af0
10.4.1.5,fc00:f853:ccd:e793::510.244.2.1,10.244.2.1,
kind.yaml
:
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
name: nyc3-shared
nodes:
- role: control-plane
- role: worker
- role: worker
- role: worker
Started with:
kind create cluster --config /usr/local/etc/kind.yaml --wait 5m
I noticed that one of the workers had a different number of network settings than the others. It was not a copy and paste error on my part as far as I could tell. Here are all of the processes to match up with the inspect commands above:
# nerdctl ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0c1ccb1a9660 docker.io/kindest/node@sha256:53df588e04085fd41ae12de0c3fe4c72f7013bba32a20e7325357a1ac94ba865 "/usr/local/bin/entr…" 13 hours ago Up 127.0.0.1:34487->6443/tcp nyc3-shared-control-plane
78cb379f8a11 docker.io/kindest/node@sha256:53df588e04085fd41ae12de0c3fe4c72f7013bba32a20e7325357a1ac94ba865 "/usr/local/bin/entr…" 13 hours ago Up nyc3-shared-worker
8cc8716a4db6 docker.io/kindest/node@sha256:53df588e04085fd41ae12de0c3fe4c72f7013bba32a20e7325357a1ac94ba865 "/usr/local/bin/entr…" 13 hours ago Up nyc3-shared-worker2
e3e427961af0 docker.io/kindest/node@sha256:53df588e04085fd41ae12de0c3fe4c72f7013bba32a20e7325357a1ac94ba865 "/usr/local/bin/entr…" 13 hours ago Up nyc3-shared-worker3
can you paste the entire inspect without the format statement? I'm curious about what has change to report so many IPs in a container cc: @BenTheElder , the logic to parse ips is the same as in kind
I'm assuming there shouldn't be errors for a task like getting unexpected amount of metadata?
Logs:
Environment: