Hi all, i need some help with somethink i cant understand. i tried in my machine, using minikube to setup a pod that runs the docker daemon in order to build images here is the pod definition:
---
apiVersion: v1
data:
daemon.json: |
{
"bip": "10.66.35.10/24",
"dns": [
"172.20.8.2",
"172.20.8.3"
],
"hosts": [
"tcp://0.0.0.0:2375",
"unix:///var/run/docker.sock"
],
"insecure-registries": [
"some.registry.com"
],
"ipv6": false,
"oom-score-adjust": -1000
}
kind: ConfigMap
metadata:
name: dind-config
---
apiVersion: v1
kind: Pod
metadata:
name: dind
spec:
containers:
- name: docker-cmds
image: docker:stable
command: ['/bin/sh', '-c', 'tail -F /var/log/messages']
resources:
env:
- name: DOCKER_HOST
value: tcp://localhost:2375
- name: dind-daemon
image: docker:stable-dind
command: ['/bin/sh', '-c', 'mkdir -p /etc/docker && ln -s /etc/config/daemon.json /etc/docker/daemon.json && dockerd-entrypoint.sh dockerd']
securityContext:
privileged: true
resources:
requests:
cpu: 2000m
memory: 2048Mi
volumeMounts:
- name: config-volume
mountPath: /etc/config
volumes:
- name: config-volume
configMap:
# Provide the name of the ConfigMap containing the files you want
# to add to the container
name: dind-config
This, works on minikube, and it have not problems…
i have also “staging cluster” with 3 hosts, the cluster was created using kubeadm and uses flannel for networking, in this cluster, if i start a centos:7 container, and run curl, it just hung indefinetily…
i saw nothing weird on logs, the only aditional information i have is a tcpdump capture on the host where the pod was runing
No. Time Source Destination Protocol Length Info
283 4 172.16.11.104 200.144.183.235 TCP 74 37748 > http [SYN] Seq=0 Win=29200 Len=0 MSS=1460 SACK_PERM=1 TSval=253885270 TSecr=0 WS=128
288 4 200.144.183.235 172.16.11.104 TCP 74 http > 37748 [SYN, ACK] Seq=0 Ack=1 Win=5792 Len=0 MSS=1460 SACK_PERM=1 TSval=430561646 TSecr=253885270 WS=128
289 4 172.16.11.104 200.144.183.235 TCP 66 37748 > http [ACK] Seq=1 Ack=1 Win=29312 Len=0 TSval=253885298 TSecr=430561646
290 4 172.16.11.104 200.144.183.235 HTTP 188 GET /CentOS/7.5.1804/os/x86_64/repodata/repomd.xml HTTP/1.1
295 4 200.144.183.235 172.16.11.104 TCP 66 http > 37748 [ACK] Seq=1 Ack=123 Win=5888 Len=0 TSval=430561653 TSecr=253885299
297 4 200.144.183.235 172.16.11.104 TCP 350 [TCP segment of a reassembled PDU]
298 4 172.16.11.104 200.144.183.235 TCP 66 37748 > http [ACK] Seq=123 Ack=285 Win=30336 Len=0 TSval=253885346 TSecr=430561658
299 4 200.144.183.235 172.16.11.104 TCP 2962 [TCP segment of a reassembled PDU]
300 4 172.16.11.104 200.144.183.235 ICMP 590 Destination unreachable (Fragmentation needed)
305 4 200.144.183.235 172.16.11.104 HTTP/XML 906 HTTP/1.1 200 OK
306 4 172.16.11.104 200.144.183.235 TCP 78 [TCP Window Update] 37748 > http [ACK] Seq=123 Ack=285 Win=32000 Len=0 TSval=253885375 TSecr=430561658 SLE=3181 SRE=4021
311 4 200.144.183.235 172.16.11.104 TCP 1514 [TCP Retransmission] http > 37748 [ACK] Seq=285 Ack=123 Win=5888 Len=1448 TSval=430561722 TSecr=253885375[Reassembly error, protocol TCP: New fragment overlaps old data (retransmission?)]
312 4 172.16.11.104 200.144.183.235 ICMP 590 Destination unreachable (Fragmentation needed)
367 5 200.144.183.235 172.16.11.104 TCP 1514 [TCP Retransmission] http > 37748 [ACK] Seq=285 Ack=123 Win=5888 Len=1448 TSval=430561836 TSecr=253885375[Reassembly error, protocol TCP: New fragment overlaps old data (retransmission?)]
368 5 172.16.11.104 200.144.183.235 ICMP 590 Destination unreachable (Fragmentation needed)
401 6 200.144.183.235 172.16.11.104 TCP 1514 [TCP Retransmission] http > 37748 [ACK] Seq=285 Ack=123 Win=5888 Len=1448 TSval=430562065 TSecr=253885375[Reassembly error, protocol TCP: New fragment overlaps old data (retransmission?)]
402 6 172.16.11.104 200.144.183.235 ICMP 590 Destination unreachable (Fragmentation needed)
536 7 200.144.183.235 172.16.11.104 TCP 1514 [TCP Retransmission] http > 37748 [ACK] Seq=285 Ack=123 Win=5888 Len=1448 TSval=430562521 TSecr=253885375[Reassembly error, protocol TCP: New fragment overlaps old data (retransmission?)]
537 7 172.16.11.104 200.144.183.235 ICMP 590 Destination unreachable (Fragmentation needed)
713 11 200.144.183.235 172.16.11.104 TCP 1514 [TCP Retransmission] http > 37748 [ACK] Seq=285 Ack=123 Win=5888 Len=1448 TSval=430563433 TSecr=253885375[Reassembly error, protocol TCP: New fragment overlaps old data (retransmission?)]
714 11 172.16.11.104 200.144.183.235 ICMP 590 Destination unreachable (Fragmentation needed)
841 13 172.16.11.104 200.144.183.235 TCP 78 37748 > http [FIN, ACK] Seq=123 Ack=285 Win=32000 Len=0 TSval=253894071 TSecr=430561658 SLE=3181 SRE=4021
849 13 200.144.183.235 172.16.11.104 TCP 66 http > 37748 [FIN, ACK] Seq=4021 Ack=124 Win=5888 Len=0 TSval=430563846 TSecr=253894071
850 13 172.16.11.104 200.144.183.235 TCP 54 37748 > http [RST] Seq=124 Win=0 Len=0
well, thats it, i hope that some can help me… i am really stuck with this…